I have a telerik:radgrid which has a checkbox and a linkbutton for each row and a check box in the header - to select all the checkboxes of the rows.
I am adding some dynamic text to the linkbutton from code behind using HtmlGenericControl
Like
status.Controls.Add(html_controller);
Where status is my linkbutton
Now the problem is that whenever I click on the header check box a postback occurs and my linkbutton along with the html_controller gets hidden. What changes should I do to fix it?
Below are the Header Checkbox and LinkButton
Header Check Box -
<asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
LinkButton -
<asp:LinkButton ID="status" runat="server" CommandName="Status" CausesValidation="false" style="text-align:center;cursor:pointer;" OnClientClick="return VerifyComments(this);"/>
Aucun commentaire:
Enregistrer un commentaire