i have checkbox column as below
<grid:GridClientSelectColumn HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="5%" UniqueName="cbxPortfolioTermMap" HeaderText="" HeaderStyle-CssClass="columnheader"/>
if i click on any row the check box is checking out.. and if i click any other row other than the one seleted the checked one is unchecked and the selected is checking ..
if i particularly select /deselect check box alone it works fine.. but it is checking out when i click on the row of any column
how to remove the control on the row selection
please help
thanks
-krishna
12 Answers, 1 is accepted
If you want to allow row selection only by clicking on the checkbox of the GridClientSelectColumn and not by clicking on the row then you can refer to the following code library submission which illustrates on how to select grid rows only when a GridClientSelectColumn checkbox is clicked.
ClientSideSelectColumn - Disallow other selection
Thanks
Princy.
that property is already set to grid.. may be i should explain it properly.
when i select any row on any column the check box is checked.. and if i select other row then the selected one deselects by unchecking the checkbox and checks out the current selected row's check box..
if i click on only check box square area (not even on the checkbox column) i am able to select the multiple check boxes.
after selecting 10 check boxes (tha means 10 rows are selected now) and trying to check the 11th one ..and mistakenly my mouse just clicked ...out of the check box square area all other 10 checke/selected rows are deselecting and 11th one is checked and selected.
my goal is to select/deselect only the clicked row withought effecting all other previously selected ones
Thanks
-krishna
I am having the same problem, 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>
Unfortunately the client select column and the overall client selection of the gird cannot be easily altered due to two major reasons:
- It would be difficult to implement cross-browser solution which to cover your requirements and being stable at the same time.
- Such significant change will break the previous client selection behavior and many of our clients which are used to it will not be happy with the result.
I hope that you understand our position on this subject and relying on Ctrl + mouse click as shown on this demo to ensure that the grid rows will be selected as expected is feasible workaround for you.
Kind regards,Sebastian
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.
We do not have immediate plans for changing the current client selection behavior because of the important reasons explained in my previous message. I hope that using the Ctrl + mouse click combination or dragging a region for multi-row selection (and including user-friendly message to notify that this is required when not using the GridClientSelectColumn checkboxes) is doable solution for your case.
Note that the current behavior matches that of Windows Explorer and it is considered as the most intuitive by the majority of our clients/community members. I truly hope that you understand our point of view and appreciate sharing your thoughts with us.
Kind regards,
Sebastian
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.
Thanks for the link. That seems to have fixed it.
Bob
I checked both projects from the code library thread linked by Princy and they worked as expected (no rows become selected/deselected when you click on area outside of the client select checkbox). Am I missing something obvious? I will appreciate if you specify exact steps which can help me replicate the abnormality locally.
Regarding your proposal:
I will forward it to our developers for further consideration. However, I cannot guarantee that your request can be fulfilled due to the complexity of the grid client multi-select feature and its various aspects/cross-browser support. Furthermore, changing the client selection behavior will introduce a breaking change which may not be accepted positively by some of our existing customers. I hope that the current solution from the code library entry is doable for you.
Kind regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I'm happy to inform you that our developers has addressed you request. A new property, named UseClientSelectColumnOnly, of Grid's ClientSettings Selection object has been added.
This feature will be officially available with SP1 of Q3 2009 release of RadControls for ASP.NET AJAX. Also you can also check next internal builds for a preview version.
Greetings,
Rosen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.