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

Row Selection very confusing

2 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 14 May 2009, 04:31 PM
 I believe Telerik should correct this issue. You should be able to click a row without it affecting the rest of the other rows.

If the row clicked is already selected, the it should deselect that row (only), and vice versa, if it's deselected already then it should select that row only.

I CAN'T STAND IT when I have selected 20 rows and then when I accidently click outside a checkbox, I loose all my selections. I have the following radgrid, please show me if there is a way, how to achieve this. I already tried the ToggleSelection.js solution, but I get alot of errors because it was not designed for Heirarchy Grid.

 

<telerik:RadGrid ID="rgChildObjects" AllowMultiRowSelection="true" AutoGenerateColumns="false" Width="295px" runat="server">

 

 

 

<MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="client" Name="ChildObjects" DataKeyNames="ReportingChildObjectID">

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView Name="Columns" Width="100%" ShowHeader="true" DataKeyNames="ReportingColumnID">

 

 

 

<Columns>

 

 

 

<telerik:GridClientSelectColumn />

 

 

 

<telerik:GridBoundColumn HeaderStyle-Font-Bold="true" itemstyle-wrap="false" UniqueName="DefaultDescription" DataField="DefaultDescription" HeaderText="Child Report Column(s)" />

 

 

 

</Columns>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn ItemStyle-font-bold="true" HeaderStyle-Font-Bold="true" HeaderStyle-wrap="false" UniqueName="ChildObjectName" DataField="ChildObjectName" HeaderText="Child Reports" />

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowExpandCollapse="true">

 

 

 

 

<Selecting EnableDragToSelectRows="false" AllowRowSelect="true" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 18 May 2009, 11:54 AM
Hi Andrew,

At present, you can alter this behavior by pressing Shift/Ctrl. Other than this, you can alter the behavior, by subscribing to the onRowSelecting/onRowDeselecting client side handlers, to make it more consistent with your requirements.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Felipe Saldana
Top achievements
Rank 1
answered on 19 Aug 2009, 11:22 PM
I agree this situation is very confusing and not consistent with an everyday browsing experience.

That being said, I did get it working using the onRowSelecting/onRowDeselecting events as described.

I vote to get this changed in a future release.


Thanks,


Felipe


Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Felipe Saldana
Top achievements
Rank 1
Share this question
or