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

strange behavior with GridView inside an row details expansion

1 Answer 11 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Maddux
Top achievements
Rank 1
Michael Maddux asked on 12 May 2010, 08:28 PM
I.E. A "grid within a grid".

I'm using a RadGridView in a row details expansion panel to simulate a listbox with checkboxes.  It seems to have developed some strange behaviors with recent versions of Telerik for Silverlight 4.

Here is the definition of the GridView in question:

 

 

 

<controls:PmcGridView Margin="5,10,5,5" x:Name="rolesDataGrid" AutoGenerateColumns="False" Width="Auto" RowLoaded="rolesDataGrid_RowLoaded"

 

 

 

EnableColumnVirtualization="False" SelectionMode="Multiple" ShowColumnFooters="False" ShowColumnHeaders="False"

 

 

 

AllowDrop="False" CanUserReorderColumns="False" CanUserSortColumns="False" ShowGroupPanel="False"

 

 

 

ShowInsertRow="False" GridLinesVisibility="None" CanUserFreezeColumns="False" SelectionChanged="rolesDataGrid_SelectionChanged"

 

 

 

RowIndicatorVisibility="Collapsed">

 

 

 

 

.
.
.
</
controls:PmcGridView>

 


In addition we set the RowIndicatorVisibility in code-behind to Collapsed.

There are two problems:

1) The system always selects the first item in the grid right after it is loaded.  Not good for us since it gives everyone the Admin role.

2) Selections that are made in code, as well as the selection by the system referred to in item 1, are not displayed in the grid, even though the "ItemsSelect" collection will contain those selected items.

Needless to say this is all very unworkable. 

Any ideas?

Thanks,

Mike Maddux

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 13 May 2010, 11:30 AM
Hello Michael Maddux,

Setting IsSynchronizedWithCurrentItem to false will take care of the issue where the first row is always selected. 

May I ask you to send us a sample application which will allow us to observe the problem with out selection mechanism.

All the best,
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.
Tags
GridView
Asked by
Michael Maddux
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or