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

Dropdown in Command Item Template with different SQLDataSource

4 Answers 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
briankb
Top achievements
Rank 2
briankb asked on 21 Aug 2008, 04:11 PM
I have a page with a RAD DropDown and a RADGrid (both Q2 2008 Ajax).

There are two SQLDataSource items as well one for the drop down which provides a categoryID for the second SQLDataSource and filters the results accordingly.

I moved the DropDown into the RadGrid CommandItemTemplate I get an error that the CategoryID is not available.

Is there something else I need to do to make it work?

4 Answers, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 21 Aug 2008, 07:19 PM
Briankb,

Why don't you implement the built-in filtering of RadGrid through ComboBox? There are nice demos live which you can directly use:

Filtering Template Columns (ComboBox)
Google Like Filtering

Hope you like those!
~Leon
0
briankb
Top achievements
Rank 2
answered on 21 Aug 2008, 07:29 PM
That first one is good, thanks.

I was trying to put it in the command item area on the right side.

Split it in a table with two columns.

Add New and Refresh on the left, aligned left. and the drop down on the right aligned right.

Thanks again for the links, that will get me going.
0
Accepted
Kiara
Top achievements
Rank 1
answered on 22 Aug 2008, 02:20 PM
You may also find worthwhile taking a look at this online demo with dropdown filter in the command item:

http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/WebMailGrid/DefaultCS.aspx

Kiara
0
briankb
Top achievements
Rank 2
answered on 22 Aug 2008, 02:40 PM
Thanks Kiara. That was exactly what I wanted to do.
Tags
Grid
Asked by
briankb
Top achievements
Rank 2
Answers by
Leon
Top achievements
Rank 1
briankb
Top achievements
Rank 2
Kiara
Top achievements
Rank 1
Share this question
or