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

RadListBox - multiple selection (dragging the mouse) not working

6 Answers 486 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Dipta
Top achievements
Rank 1
Dipta asked on 03 Apr 2012, 07:03 AM

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.

6 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Apr 2012, 08:05 AM
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.
0
Dipta
Top achievements
Rank 1
answered on 03 Apr 2012, 09:18 AM
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. 
0
Princy
Top achievements
Rank 2
answered on 03 Apr 2012, 09:49 AM
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.
0
EZECHIAS
Top achievements
Rank 1
answered on 13 Jun 2013, 03:59 PM
radlistbox multiple selection is not working properly in google chrome by dragging the mouse to select the items. 
0
Kate
Telerik team
answered on 17 Jun 2013, 11:58 AM
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.
0
EZECHIAS
Top achievements
Rank 1
answered on 18 Jun 2013, 08:51 PM
Issue Solved thanks
Tags
ListBox
Asked by
Dipta
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dipta
Top achievements
Rank 1
EZECHIAS
Top achievements
Rank 1
Kate
Telerik team
Share this question
or