This is a migrated thread and some comments may be shown as answers.

MyCustomFilteringColumn DataSource

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
alo
Top achievements
Rank 1
alo asked on 27 Jan 2009, 08:56 PM
I've searched through the forum postings and documentation looking for an alternative place to bind the RadComboBox when it is used a filtering control assigned in the MyCustomFilteringColumn class.  The examples I've seen usually bind the data to the combo box in the SetupFilterControls method of the MyCustomFilteringColumn class.  I am trying to use my business objects and the data binding framework used throughout my application to perform the data binding for the filtering control on my web page.

I can successfully bind my filtering control in the page_load handler the first time the page is displayed, however, any other action on the RadGrid losses my data in the RadComboBox.

I was wondering if there is an event handler for RadGrid where I could get an instance of the actual RadComboBox used as the filter control that is created in the SetupFilterControls method?

1 Answer, 1 is accepted

Sort by
0
alo
Top achievements
Rank 1
answered on 29 Jan 2009, 07:03 PM
I just got an answer from support that I thought I would update here.

You can get a reference to the filter ComboBox in RadGrid's ItemCreated event for example. To get the reference, use the following code:

           if (e.Item is GridFilteringItem)     
            {     
                RadComboBox filterCombo = e.Item.FindControl("filterComboId"as RadComboBox;     
            }    
 
Tags
Grid
Asked by
alo
Top achievements
Rank 1
Answers by
alo
Top achievements
Rank 1
Share this question
or