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

select row only by checkbox

2 Answers 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 05 Dec 2008, 12:43 AM
Is it possible only to allow client side selection of a grid row by ticking off the checkbox?

I have the following grid:

<telerik:RadGrid ID="rg" runat="server" GridLines="None" AllowMultiRowSelection="true">
...
    <Columns>
      <telerik:GridTemplateColumn Groupable="false" UniqueName="Pictures">
        <HeaderStyle Width="16" />
        <ItemTemplate>
          <asp:Image runat="server" ID="iPictures" ImageUrl="~/Images/16/hourglass.gif" ToolTip="No report yet" />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
...
  <ClientSettings AllowDragToGroup="True">
    <Selecting AllowRowSelect="true" />
  </ClientSettings>
   
Right now a row gets selected when I click the imagebutton, click-drag the mouse over rows and tick off the checkbox. I only want the checkbox.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 05 Dec 2008, 04:10 AM
Hi Morten71,

Try setting EnableDragToSelectRows property to false to disable the row selection by dragging the mouse over the rows.  

ASPX:
   <ClientSettings> 
      <Selecting   AllowRowSelect="True" EnableDragToSelectRows="false" /> 
  </ClientSettings> 

Here is a code library submission which  demonstrates how to select grid rows only when a check box (part of GridClientSelectColumn) is clicked.
ClientSideSelectColumn - Disallow other selection

Thanks
Shinu
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 05 Dec 2008, 10:10 AM
thanks! just the property I was looking for
Tags
Grid
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Shinu
Top achievements
Rank 2
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or