When selecting from a ListBox it also highlights text on the page

3 posts, 0 answers
  1. Jonathan Days
    Jonathan Days avatar
    3 posts
    Member since:
    Feb 2009

    Posted 12 Jul 2012 Link to this post

    We have a listbox with SelectionMode="Multiple" turned on, however when you select multiple items it also selects other parts of the screen and manages to select other parts of the screen, it selects from the listbox too but everything selected goes blue as expected but lots of screen does too,

    I hope you can help.

    telerik:RadListBox ID="radOrderID" runat="server" Width="900px" Height="200px" EmptyMessage="Select an Order"
                                Skin="Outlook" SelectionMode="Multiple" AutoPostBack="true">
                                    <table cellspacing="0" cellpadding="0" class="multicomboBoxOrder">
                                            <td class="col1">
                                                <%#DataBinder.Eval(Container.DataItem, "OrderNo")%>
                                            <td class="col2">
                                                <%#DataBinder.Eval(Container.DataItem, "Description")%>
                                            <td class="col3">
                                                <%#DataBinder.Eval(Container.DataItem, "CustomerHeaderRef")%>
                                            <td class="col4">
                                                <%#DataBinder.Eval(Container.DataItem, "Department")%>
                                            <td class="col5">
                                                <%#Format(DataBinder.Eval(Container.DataItem, "OutstandingValueToInvoice"), "0.00")%>
                                            <td class="col6">
                                                <%#Format(DataBinder.Eval(Container.DataItem, "OutstandingValueToInvoiceShipped"), "0.00")%>
                                            <td class="col7">
                                                <%#DataBinder.Eval(Container.DataItem, "CurrencySell")%>
                                            <td class="col8">
                                                <%#DataBinder.Eval(Container.DataItem, "OrderSource")%>
  2. Bozhidar
    Bozhidar avatar
    1096 posts

    Posted 17 Jul 2012 Link to this post

    Hello Jonathan,

    I guess you are talking about the case where you use the Shift key to select multiple items. This triggers the default browser behavior, which is responsible for selecting the items on the page. Unfortunately this is out of our scope and we cannot prevent it.
    the Telerik team
    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 their blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. william
    william avatar
    1 posts
    Member since:
    Aug 2015

    Posted 01 Jun Link to this post


    For anyone else who has this problem and stumbles across this page, I found that this javascript in my pageLoad() function fixed the behavior for me. 

    window.onload = function () {
                    document.onselectstart = function () {
                        return false;

    However, as it is, it disables all text selection on the entire webpage.

Back to Top