Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using mmRADComboBox as a Custom Filter Column in mmRADGrid
Message
From
26/01/2009 00:08:58
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Using mmRADComboBox as a Custom Filter Column in mmRADGrid
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01376961
Message ID:
01376961
Views:
83
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
Next
Reply
Map
View

Click here to load this message in the networking platform