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

[Solved] GridBoundColumn 'SetupFilterControls' event not fired

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon F
Top achievements
Rank 1
Jon F asked on 30 Sep 2009, 08:22 PM
I have extended the GridBoundColumn and am adding a DropDownList in the 'SetupFilterControls' method.  The 'OnSelectedIndexChanged' event is never fired.  What should I be checking?

        protected override void SetupFilterControls(TableCell cell)  
        {  
            base.SetupFilterControls(cell);  
            cell.Controls.RemoveAt(0);  
 
            DropDownList ddl = new DropDownList();  
            ddl.AutoPostBack = true;  
            ddl.ID = "fltr" + DataField;  
            ddl.SelectedIndexChanged += new EventHandler(junk_SelectedIndexChanged);  
 
            cell.Controls.AddAt(0, ddl);  
            cell.Controls.RemoveAt(1);  
 
            ddl.DataSource = Owner.DataSource;  
            ddl.DataTextField = DataField;  
            ddl.DataValueField = DataField;  
            ddl.DataBind();  
        } 

The 'junk_SelectedIndexChanged' never gets called...

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Oct 2009, 10:08 AM
Hi Jon,

I suggest you examine the following help article, which elaborates on this subject and see if it helps.
Filtering with MS DropDownList instead of textbox
Do not hesitate to contact us if you need additional assistance.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Jon F
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or