Selecting multirow without ctrl key

7 posts, 0 answers
  1. dank
    dank avatar
    12 posts
    Member since:
    Apr 2009

    Posted 04 Sep 2009 Link to this post

    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

     

     

     

     

     

     

     

     

     

     

     

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 04 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dank
    dank avatar
    12 posts
    Member since:
    Apr 2009

    Posted 04 Sep 2009 Link to this post

    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.
  5. dank
    dank avatar
    12 posts
    Member since:
    Apr 2009

    Posted 14 Sep 2009 Link to this post

    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
  6. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 14 Sep 2009 Link to this post

    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
  7. Dan Pettersson
    Dan Pettersson avatar
    20 posts
    Member since:
    Sep 2009

    Posted 17 Sep 2013 Link to this post

    With this solution rows can't be unselected by clicking on them again (when they're selected). How could I accomplish that?

    /Dan
  8. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 20 Sep 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017