Don't want to hightlight row

3 posts, 1 answers
  1. Michael Pullella
    Michael Pullella avatar
    16 posts
    Member since:
    Jul 2010

    Posted 22 Jul 2010 Link to this post

    Hello.

    Any way to not highlight the row when the checkboxes are enabled?

    <telerik:RadListBox ID="lstSubject" runat="server" CheckBoxes="true" Height="250" Width="100%" />

    Just want the checkboxes, but do not want the row to be "selected" when the user clicks one.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jul 2010 Link to this post

    Hello Michael,

    In order to achieve this attach 'OnClientSelectedIndexChanging' event and in the event handler cancel the selection of List item.

    ASPX:
    <telerik:RadListBox ID="lstSubject" runat="server" CheckBoxes="true" Height="250"
               Width="100%" OnClientSelectedIndexChanging="SelectedIndexChanging">
               <Items>
                   <telerik:RadListBoxItem Text="aaa" />
                   <telerik:RadListBoxItem Text="bbb" />
                   <telerik:RadListBoxItem Text="ccc" />
                   <telerik:RadListBoxItem Text="ddd" />
               </Items>
    </telerik:RadListBox>

    Java Script:
    <script type="text/javascript">
        function SelectedIndexChanging(sender, args) {
            args.set_cancel(true);
        }
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2010 Link to this post

    Michael,

    This post seems relevant as well.
Back to Top