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

[Solved] RadGrid Row Selection

3 Answers 205 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nagi
Top achievements
Rank 1
nagi asked on 24 Apr 2008, 01:16 PM
Greetings All,
 
We got a problem with RowSelection in RadGrid. We are using version 5.1 of RadGrid.
 
Problem:
 
I have a check box in the first column and other columns are non editable text only.
 
At the time of selecting more than one row by clicking on the row instead of check box, the above selection is going away.
 
We have seen few instruction like, we should hold "Ctrl" key or Draging for more than one row selection [Link is given below].
 
 

 But If we need to select more than one row just by clicking on row can't we accomplish the same? Pls help me out. Its urgent.


awaiting for your reply
Nagireddy T

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Apr 2008, 01:41 PM
Hi Nagireddy,

You can implement multiple row select on mouse clicks without holding the Ctrl key by using the following technique:

ASPX / ASCX

<telerik:RadGrid> 
   <ClientSettings> 
      <ClientEvents OnRowDeselecting="rowDeselecting" /> 
   </ClientSettings> 
</telerik:RadGrid> 


Javascript

function rowDeselecting(sender, eventargs) 
   eventargs.set_cancel(true)
 


OnRowDeselecting help article

However, please note that in this case the users will not be able to deselect rows on mouse click, unless you provide a special means to do that, e.g. a button.


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
nagi
Top achievements
Rank 1
answered on 25 Apr 2008, 02:28 PM
hi Dimo,
I tried this but its not satisfying my requirement. Now i want to try it in a different way, I will add a check box for the templete column for the rad grid . Can u help me our in applying a color for the row checked

Thanks in advance
Nagireddy .
0
Princy
Top achievements
Rank 2
answered on 28 Apr 2008, 12:53 PM
Hi,

Check out the link below to  set the background color of the row:
http://www.telerik.com/community/forums/thread/b311D-hagte.aspx

Thanks,
Princy
Tags
Grid
Asked by
nagi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
nagi
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or