DEV4 Blog

  • Home
  • /
  • Blog
  • /
  • RADGRID selecting multirow without Ctrl key

Telerik's RadGrid requires that users hold the Ctrl key for selecting multiple rows, similar to Windows Explorer. Enable multi row selection without holding the Ctrl key programmatically using the following approach.

ASPX

<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true">
             <ClientSettings EnableRowHoverStyle="true">
                     <Selecting AllowRowSelect="true" />
                     <ClientEvents OnRowDeselecting="rowDeselecting" />
            </ClientSettings>
</telerik:RadGrid>

JAVASCRIPT

var deselectFlag = false;
function rowDeselecting(sender, args) {
    if (!deselectFlag) {
         args.set_cancel(true);
    }
}
Published on 24 Oct 2018

Add new comment...