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


    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 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.

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

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

  3. DevCraft R3 2016 release webinar banner
  4. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2010 Link to this post


    This post seems relevant as well.
Back to Top