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
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
0
Accepted
Hi Marcin,
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.
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
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
Hi Kavi,
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.
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.
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.