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

List Box With CheckBoxes are getting Unchecked Automatically

1 Answer 111 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Saurabh
Top achievements
Rank 1
Saurabh asked on 27 Mar 2012, 09:41 AM
Hi,
I am using the list box with check boxes inside it. I am encountring a control issue where the checkboxes are getting automatically unchecked after the post back.
Scenerio : Problem occur when there is scrollig , if we scroll to the end ,after clicking the down arrow button of the scroll and now if the page is PostBack the check boxes gets unchecked..If its not generated for first time then repeat the same procedure for second time this time the checkbox gets unchecked.

Can Anybody help me out with this...

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Mar 2012, 01:47 PM
Hello,

I tried to reproduce the issue, but no avail. Following is the sample code that i tried.

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadListbox.aspx.cs" Inherits="exercise_RadListbox" %>
<%@ 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 ID="RadListBox1" runat="server" CheckBoxes="true" Height="100px" >
          <Items>
            <telerik:RadListBoxItem Text="a1" />
            <telerik:RadListBoxItem Text="a2" />
            <telerik:RadListBoxItem Text="a3" />
            <telerik:RadListBoxItem Text="a4" />
            <telerik:RadListBoxItem Text="a5" />
            <telerik:RadListBoxItem Text="a6" />
             <telerik:RadListBoxItem Text="a7" />
            <telerik:RadListBoxItem Text="a8" />
            <telerik:RadListBoxItem Text="a9" />
          </Items>
        </telerik:RadListBox>
        <asp:Button ID="Button1" runat="server" />
    </div>
    </form>
 </body>
</html>

Please provide your code if it doesn't helps.

Thanks,
Princy.
Tags
ListBox
Asked by
Saurabh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or