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

gridView selected item

4 Answers 195 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 04 May 2010, 11:05 AM
Hi.
After load data from WebService (radGridView.ItemsSource = e.Result), SelectedItems.Count is equal 1. This is always first element in grid. It is selected in code behind, but on UI grid is no selected.

Fix on now:
radGridView.ItemsSource = e.Result;
radGridView.SelectedItems.Clear();

Regards,
Marcin



4 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 04 May 2010, 11:55 AM
Hi Marcin,

You can set IsSynchronizedWithCurrentItem property of RadGridView false to disable the default item selection.


Greetings,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kavi
Top achievements
Rank 1
answered on 01 Jun 2010, 07:10 AM
Hi Milan,

Your suggestion worked as expected. But on initial click of a row in the grid the selection seems to appear and vanish immediately, from second instance of click the selected row is highlighted.

Please letme know what could be the issue.

Thanks
 
0
Milan
Telerik team
answered on 01 Jun 2010, 07:44 AM
Hi Kavi,

Could you please send us a sample project where this behavior can be observed.


Best wishes,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kavi
Top achievements
Rank 1
answered on 02 Jun 2010, 10:01 AM
Hi,

I've two grids in my page and based on the selected row of the first grid i'm populating the second grid.
The problem is that, i've selected a row and the corresponding data is populated in the second grid, now i click on datapager or grouping  or sorting the second grid data remains but the selection  (highlighter) is not seen in the first grid.

Could you please let me what is the issue
Thanks.
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Milan
Telerik team
Kavi
Top achievements
Rank 1
Share this question
or