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

RadGridView looses highlighting

0 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yuriy
Top achievements
Rank 1
Yuriy asked on 28 May 2012, 01:01 PM
Hello,

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'.

Steps
- 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
Tags
GridView
Asked by
Yuriy
Top achievements
Rank 1
Share this question
or