hi Support team.
i want to Expand And Collaps with Customize Link Button without use ExpandCollapseColumn.
it means wanna implement programatically.
i use this code but dont work
tnx 4 ur attention
i want to Expand And Collaps with Customize Link Button without use ExpandCollapseColumn.
it means wanna implement programatically.
i use this code but dont work
tnx 4 ur attention
| protected void HyperCommentShowHide_Click(object sender, EventArgs e) |
| { |
| LinkButton HyperCommentShowHide = (LinkButton)sender; |
| foreach (GridDataItem dataitem in RadGrid1.MasterTableView.Items) |
| { |
| Response.Write(dataitem.KeyValues); |
| string[] splitedDataItem = dataitem.KeyValues.Split(':'); |
| string[] splitedDataItemFinal = splitedDataItem[1].Split('"'); |
| if (splitedDataItemFinal[1] == HyperCommentShowHide.CommandArgument.ToString()) |
| { |
| dataitem.Expanded = true; |
| break; |
| } |
| } |
| } |
| } |
| <asp:LinkButton CommandArgument='<%# Eval("ID") %>' OnClick="HyperCommentShowHide_Click" ID="HyperCommentShowHide" runat="server">LinkButton</asp:LinkButton> |