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

Selecting multirow without ctrl key

6 Answers 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dank
Top achievements
Rank 1
dank asked on 04 Sep 2009, 08:19 AM
Hi i use radgirid
with row select property in clientsettings as showen below

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

 

 

</ClientSettings>
and i have a  gridselectcoloumn in grid
<telerik:GridClientSelectColumn UniqueName="Selection">  <HeaderStyle Width="22px"></HeaderStyle>  <ItemStyle HorizontalAlign="Center" Width="22px"></ItemStyle> </telerik:GridClientSelectColumn>

my problem  starts here ;
radgrid supports multirowselect if only Ctrl key pressed
if ctrl key is not pressed earlier selected row goes to unselected.
i want to select rows by click on it with the earlier selected row keeped.
(is there a configuration parameter for that on radgrid?)
how to accomplish this task?
tahnks

 

 

 

 

 

 

 

 

 

 

 

6 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Sep 2009, 09:29 AM
Hello Dank,

To achieve the desired functionality, please refer to the following code library:
How to Select Multiple Items Without Holding the Ctrl Key

I hope this helps.

Greetings,

Pavlina
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.
0
dank
Top achievements
Rank 1
answered on 04 Sep 2009, 11:53 AM
Hi
this not fits that needed

as your example multi row can be selected but  when a selected row is clicked
it's state is not changed
I want when i click the selected row it 's state change to deselected.
0
dank
Top achievements
Rank 1
answered on 14 Sep 2009, 06:34 AM
Hi this is not fits  what i want
May you sen a sample like that sceniro
selecting multiple row by clicking rows
and deselecting row if it was selected before
 

thanks
0
Suresh K
Top achievements
Rank 1
answered on 14 Sep 2009, 07:13 AM
hi dank.,
Can u try this...

<telerik:RadGrid ID="RadGrid1" AllowMultiRowSelection="true"
            runat="server" AllowSorting="True" GridLines="None">
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
        </telerik:RadGrid>


And also see this Demo Solution.,
http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx
0
Dan Pettersson
Top achievements
Rank 1
answered on 17 Sep 2013, 12:15 PM
With this solution rows can't be unselected by clicking on them again (when they're selected). How could I accomplish that?

/Dan
0
Pavlina
Telerik team
answered on 20 Sep 2013, 06:20 PM
Hi Dan,

I am not sure if I understand what you are trying to do. Can you please examine the first grid in Client-Side Row Selection demo and let me know what you would like to change in the way selection is working there?

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
dank
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
dank
Top achievements
Rank 1
Suresh K
Top achievements
Rank 1
Dan Pettersson
Top achievements
Rank 1
Share this question
or