Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Using mmRADComboBox as a Custom Filter Column in mmRADGrid
Versions des environnements
Bear with me as I attempt to explain my challenge trying to implement a mmRADComboBox as a custom filter column in an AJAX enabled mmRADGrid using MM.NET BOs to populate the combo box.
Telerik's recommended approach to using a combo box as a filter column is to extend their GridBoundColumn class and override the SetupFilterControls so that the standard text box filter column is replaced with the combo box. Then you need to also define the datasource and bind the control in this method. Telerik obviously doesn't have any specific recommendations to doing this with MM.NET, but I would like to figure out a was so that my drop down lists in the grid filter are populated using my MM.NET BOs.
Calling DataBind() on the control in the SetupFilterControls method does not seem to work. I've successfully set the Binding Source, BindingSourceDisplayMember, and BindingSourceValueMember. If I call this.DataBind() from the Page Load Handler, the mmRADComboBox is populated as desired the first time the page is displayed. However, any subsequent activity on the grid (e.g., paging, sorting) does not rebind the mmRADComboBox custom filter column.
Basically, I'm not sure how to properly bind the mmRADComboBox in this scenario. Should it be done in the extended GridBoundColumn class or in the MM Web Page? I've tried everything and nothing seems to work except for the first time the page is displayed. Any suggestions would be greatly appreciated.
Thanks,
Al
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement