Filtering/Paging/Finding

3 posts, 0 answers
  1. Scott
    Scott avatar
    10 posts
    Member since:
    Jul 2012

    Posted 22 Dec 2009 Link to this post

    I have the following elements on a page: RadComboBox, RadGrid, and an Edit/Insert form. The RadComboBox is used to filter the RadGrid and items selected from the RadGrid populate the edit form. One of the items on the form is the filter value from the RadComboBox.

    Scenario #1
    Filter the RadGrid
    Select an Item from the RadGrid
    Edit the item so the Current filter no longer applies.

    The result I want:
    Reset the RadComboBox to the updated filter value from the form.
    Select newly edit item in the RadGrid (Note: This NOT a problem until you add paging to the RadGrid)

    Scenario #2
    Using the insert form to add a new item

    The result I want:
    Set the RadComboBox to the newly inserted items filter value.
    Select the newly created item in the RadGrid (Note: Again this is NOT a problem until you add paging to the RadGrid)

    I guess my basic problem is how to find an item in a paged RadGrid when you don't know what page the item is on. Essentially I want to take an id find out what page it is on, set the correct page index, and select the correct row.

    I hope that made sense.

    Thanks,

    Scott
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Dec 2009 Link to this post

    Hi,

    Here is a code library thta you can took a look at. This will give you an idea on how to select an item when paging is enabled.
    Select Last Inserted Row in the RadGrid with both Paging and Sorting enabled.

    Do let me know if you need  more assistance.

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Scott
    Scott avatar
    10 posts
    Member since:
    Jul 2012

    Posted 28 Dec 2009 Link to this post

    Princy,

    Thanks for your help.

    Scott
Back to Top