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

GridViewSelectColumn is always selected by default

2 Answers 116 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.
Jan
Top achievements
Rank 1
Jan asked on 15 Jan 2013, 08:38 AM
Hi,

I'm using a GridViewSelectColumn on my RadGridView which is always selected for the first record. This is normally fine when the SelectionMode is Single because the user would correct the selection. But in cases where the SelectionMode is Multiple the first record is often included in the selection by mistake. Especially in cases where there is grouping involved and only the group header is visible. User are then not aware that there is already an initial selection made.

Is there anyway to prevent the default selection of the first record?

Thanks,
JJ

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 15 Jan 2013, 09:20 AM
Hello JJ,

The first (current) item will be selected when the SelectedItem is synchronized with the CurrentItem. That is why you should set the IsSynchronizedWithCurrectItem property of the GridView to False, in order to prevent the default selection of the first record.
 

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jan
Top achievements
Rank 1
answered on 15 Jan 2013, 09:57 AM
Great, thank you. Works like a charm.
Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jan
Top achievements
Rank 1
Share this question
or