Hi! I have a RadGrid which uses the FilterTemplate with a RadComboBox in GridBoundColumns. When the page initially loads all of the filter options in the RadComboBox are not listed, however, if the page is refreshed all the options appear in the filter.
Currently the SQL statement used to initially populate the filter is in the Page_Load method, and is outside of the 'IF Not IsPostBack' logic.
A method to refresh the combo boxes gets called in the RadGrid1_PreRender event handler. This method takes the original SQL statement and appends a where clause which contains the value selected in the combo box by the user, after which a call to RadGrid1.MasterTableView.Rebind() is made. The actual filtering does work as expected.
I was wondering if someone could provide some insight on how the filtering works in regards to a page initially loading, and if there is a better place to put the logic.
Thanks!
Currently the SQL statement used to initially populate the filter is in the Page_Load method, and is outside of the 'IF Not IsPostBack' logic.
A method to refresh the combo boxes gets called in the RadGrid1_PreRender event handler. This method takes the original SQL statement and appends a where clause which contains the value selected in the combo box by the user, after which a call to RadGrid1.MasterTableView.Rebind() is made. The actual filtering does work as expected.
I was wondering if someone could provide some insight on how the filtering works in regards to a page initially loading, and if there is a better place to put the logic.
Thanks!