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

using dropdownlist instead of filter

4 Answers 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 09 Mar 2009, 08:06 AM
Helo,

I'm using RadGrid and i need to use dropdownlist instead of the filter function.

Is there any way to insert an row into the grid wich contains dropdownlists instead of the filter? The dorpdownlists should contain the values which are in the column.

thanks

Christian

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 08:42 AM
Hi,

You can use the filter template to add  a dropdownlist to filter the grid instead of the normal textboxes . Check out the link below to know more on this:

http://www.telerik.com/help/aspnet-ajax/radgrid-filter-template.html

You can also refer the link below (which is another way of doing it)

http://www.telerik.com/help/aspnet/grid/grdfilteringwithdropdownlist.html

Thanks,
Princy
0
Christian
Top achievements
Rank 1
answered on 16 Mar 2009, 11:41 AM
Thanks, the second link was what I needed and it works fine.

I have now a second question:
I need to have in my dropdownlist a Value "show all items". How can I bind this function (clear filter) in the event list_SelectedIndexChanged?

thanks

Christian
0
Accepted
Sebastian
Telerik team
answered on 16 Mar 2009, 11:48 AM
Hello Christian,

To see how this can be done review the implementation from the following online demos of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx

Best,
Sebastian
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Christian
Top achievements
Rank 1
answered on 16 Mar 2009, 12:40 PM
Thanks,

now it works, I used:
 filterItem.FireCommandEvent("Filter"New Pair()) 
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Christian
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or