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

[Solved] Multi-Select using the Ctrl Key does not work

3 Answers 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason Zam
Top achievements
Rank 1
Jason Zam asked on 03 Aug 2009, 03:34 PM

Hello,

I am trying to setup my Radgrid to select multiple rows.  After following the demo (http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx), everything works great with one exception.  I can not select or deselect rows using the Ctrl Key.  The Shift Key works as expected.

Here is my code:

 

<telerik:RadGrid ID="radgrdEvaluator" Skin="Vista" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True" ShowStatusBar="False" PageSize="10" GridLines="None" width="96%" HorizontalAlign="NotSet" Visible="False" runat="server">  
    <MasterTableView DataKeyNames="EvaluatorID">  
        <Columns> 
        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"></telerik:GridClientSelectColumn> 
        <telerik:GridButtonColumn ButtonType="LinkButton" DataTextField="EvaluatorID" HeaderText="EvaluatorID" CommandName="Select"></telerik:GridButtonColumn> 
        <telerik:GridBoundColumn DataField="EvaluatorStatus" HeaderText="EvaluatorStatus" DataType="System.Boolean"></telerik:GridBoundColumn> 
        </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="True">  
        <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
    <pagerstyle mode="NextPrevAndNumeric" AlwaysVisible="True" /> 
</telerik:RadGrid> 

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 04 Aug 2009, 01:29 PM
Hello Jason Zam,

On my side selecting works as expected - holding the Ctrl key down while clicking on a row selects multiple rows and holding the Shift key down while clicking selects all rows between the last selected row and the current click.
Is this difference not noticeable on your side? If it is not, would please tell us what your browser is(I have tested under IE8, Firefox and Chrome) and sent us your whole project if possible?

Looking forward to your reply,
Mira
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.
0
Jason Zam
Top achievements
Rank 1
answered on 04 Aug 2009, 03:46 PM
Hi Mira,

Thanks for the response.  I went back to my code in the .aspx page and tried removing the code listed below from the RadAjaxManager.  Once I removed this code, the Ctrl Key multi-row select/deselect then worked.  Thie code below was used to show a loading graphic when the user was sorting or paging through the RadGrid. 

 
 
    <telerik:AjaxSetting AjaxControlID="radgrdEvaluator">  
        <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="radgrdEvaluator" LoadingPanelID="RadAjaxLoadingPanel2" /> 
        </UpdatedControls> 
    </telerik:AjaxSetting> 
 
 

However, now that I removed the code above, I no longer have a loading graphic displayed over the RadGrid when the user is sorting or paging through the RadGrid.  I understand I can create another Control (i.e. Panel) and use that as my new loading panel, but I was hoping to use the above listed code and not have it conflict with the Ctrl Key multi-select.  Is this possible?

Thank you!
0
Mira
Telerik team
answered on 05 Aug 2009, 01:23 PM
Hello Jason Zam,

I am attaching a sample project showing RadGrid updated with a loading panel with working Ctrl Key multi-row select/deselect.

Please contact us if you need any further assistance.

Greetings,
Mira
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.
Tags
Grid
Asked by
Jason Zam
Top achievements
Rank 1
Answers by
Mira
Telerik team
Jason Zam
Top achievements
Rank 1
Share this question
or