Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using mmRADComboBox as a Custom Filter Column in mmRADGr
Message
 
To
26/01/2009 00:08:58
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
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:
01377191
Views:
19
Al,

>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.

I haven't tried the specific scenario you're working with, but I recommend checking out the MM .NET Dev Guide topic "Telerik Rad Controls | mmRadGrid | In-Place Editing" to see if you glean something from the code samples listed there. It should just be a matter of creating a handler for the correct RadGrid event and placing code in that handler to rebind. You may be able to do something like this (where "this" is the web form):
this.BindControl(this.myGrid)
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform