RadGridView looses highlighting

1 posts, 0 answers
  1. Yuriy
    Yuriy avatar
    3 posts
    Member since:
    May 2012

    Posted 28 May 2012 Link to this post


    Please help me with the following problem.
    I've got a page with the toolbar and a RadGridView.
    The toolbar contains a focusable element (textbox) and a button 'Add entity'.
    RadGridView contains 2 sortable and editable GridViewDataColumns 'Name' and 'Type'.

    - run the page.
    - fill it with data
    - apply sorting by 'Name'
    - add a new entity by pressing the button
    Result: A new entity is added, highlighted and a Name field is ready for a new value.

    - enter a new name.

    Everything's still OK.

    - Move focus to the textbox inside the toolbar.
    Result: the row with the new entity moves somewhere because of sorting and looses highlighting.
    SelectedItem and SelectedCell now became null.

    A note: if I don't activate sorting, the row became highlighted.

    Could anyone help me understand what cleared the SelectedItem and how to restore highlighting?

    Best regards, Yuriy
Back to Top