RadListBox - multiple selection (dragging the mouse) not working

7 posts, 0 answers
  1. Dipta
    Dipta avatar
    7 posts
    Member since:
    Apr 2011

    Posted 03 Apr 2012 Link to this post

    In asp.net Telerik ,Is it possible multiple selection of RadListBoxItem using clicking and dragging the Mouse only .only its possible when we press 'shif' or 'ctrl' key and try to click and dragging using mouse.

    sample code for Multiple selection:

    <telerik:RadListBox SelectionMode="Multiple" ID="RadListBox1" runat="server">

    <Items>

    <telerik:RadListBoxItem runat="server" Value="Sample1" Text="Sample1" />

    <telerik:RadListBoxItem runat="server" Value="Sample2" Text="Sample2" />

    <telerik:RadListBoxItem runat="server" Value="Sample3" Text="Sample3" />

    </Items>

    </telerik:RadListBox>


    Please suggest  some solution or  work around  for this issue  along with providing some sample code also.
    Any help will be great appreaciated.

  2. Princy
    Princy avatar
    16693 posts
    Member since:
    Mar 2007

    Posted 03 Apr 2012 Link to this post

    Hi Dipta,

    I tried the same code that you provided. It is possible to select multiple items for me by clicking on an item and then dragging over items. Please take a look into the following which works for me perfectly.

    ASPX:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="listbox.aspx.cs" Inherits="radlistbox_listbox" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <telerik:RadListBox SelectionMode="Multiple" ID="RadListBox1" runat="server">
                <Items>
                    <telerik:RadListBoxItem runat="server" Value="Sample1" Text="Sample1" />
                    <telerik:RadListBoxItem runat="server" Value="Sample2" Text="Sample2" />
                    <telerik:RadListBoxItem runat="server" Value="Sample3" Text="Sample3" />
                    <telerik:RadListBoxItem runat="server" Value="Sample4" Text="Sample1" />
                    <telerik:RadListBoxItem runat="server" Value="Sample5" Text="Sample2" />
                    <telerik:RadListBoxItem runat="server" Value="Sample6" Text="Sample3" />
                    <telerik:RadListBoxItem runat="server" Value="Sample7" Text="Sample1" />
                    <telerik:RadListBoxItem runat="server" Value="Sample8" Text="Sample2" />
                    <telerik:RadListBoxItem runat="server" Value="Sample9" Text="Sample3" />
                </Items>
            </telerik:RadListBox>
        </div>
        </form>
    </body>
    </html>

    Also take a look into the following demo which also shows selecting multiple items by clicking on an item and then dragging over items. .
    ListBox / Validation

    Thanks,
    Princy.

  3. Dipta
    Dipta avatar
    7 posts
    Member since:
    Apr 2011

    Posted 03 Apr 2012 Link to this post

    Hi Princy,
    Thanks for your suggestion,i tried same thing in telerik,but  Multiple selection still not working  by clicking on an item using mouse  and then dragging over items.Even i checked the link that you sent that's perfectly working so here i have doubt like  may be this fucntionality is not present in our telerik dll version(Q3 2010).,In the latest version this functionality may be resolved.Can you please verify that thing and give clarification on that, so that we have to use latest version of telerik dlls. 

  4. Princy
    Princy avatar
    16693 posts
    Member since:
    Mar 2007

    Posted 03 Apr 2012 Link to this post

    Hi Dipta,

    I tried the same in telerik version 2010, 3, 1215, 20 and was able to reproduce the same behavior. One possible solution for selecting multiple items using mouse is to use the latest version. You can Refer to Updating RadControls for ASP.NET AJAX to another version or license for more information.

    Thanks,
    Princy.

  5. EZECHIAS
    EZECHIAS avatar
    2 posts
    Member since:
    May 2013

    Posted 13 Jun 2013 Link to this post

    radlistbox multiple selection is not working properly in google chrome by dragging the mouse to select the items. 

  6. Kate
    Admin
    Kate avatar
    1898 posts
    Member since:
    Sep 2012

    Posted 17 Jun 2013 Link to this post

    Hello EZECHIAS,

    I tested the issue that you describe with our on-line demos here but I was not able to replicate the issue that you describe. Can you please clarify if you experience the same behavior on our live demos as well?

    Regards,
    Kate
    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.

  7. EZECHIAS
    EZECHIAS avatar
    2 posts
    Member since:
    May 2013

    Posted 18 Jun 2013 Link to this post

    Issue Solved thanks

Back to Top