Aug 13, 2009 12:17 PM|backwardshoop|LINK
When you click on an item in the filterbox, an AJAX callback is performed. You can see this by putting a breakpoint in the PageLoad event and see that it gets hit when you click a filter item. You can check the __EVENTTARGET and __EVENTARGUMENT keys of the
Page Request object to determine the cause of the postback. For this type of postback by the Spread, the __EVENTTARGET should be the id of the Spread control appended with the cell in the column header of the filter box and ch. The __EVENTARGUMENT would be
item chosen from the list.
Page.Request("__EVENTTARGET") = "FpSpread1$0,1,ch"
Page.Request("__EVENTARGUMENT") = "Test2"
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim t As WebControl = FpSpread1.FindControl("0,1,ch")
Dim s As String = t.Attributes("onchange")
t.Attributes.Add("onchange", "alert('test');" & s)