Dropdown in Command Item Template with different SQLDataSource

5 posts, 1 answers
  1. briankb
    briankb avatar
    88 posts
    Member since:
    Feb 2004

    Posted 21 Aug 2008 Link to this post

    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?
  2. Leon
    Leon avatar
    373 posts
    Member since:
    Apr 2007

    Posted 21 Aug 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. briankb
    briankb avatar
    88 posts
    Member since:
    Feb 2004

    Posted 21 Aug 2008 Link to this post

    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.
  5. Answer
    Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 22 Aug 2008 Link to this post

    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
  6. briankb
    briankb avatar
    88 posts
    Member since:
    Feb 2004

    Posted 22 Aug 2008 Link to this post

    Thanks Kiara. That was exactly what I wanted to do.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017