I am having a radgrid with first column having "select" hyperlink. when I select a row, the corresponding details are displayed in a panel below which is hidden by default. The panel has whole lot of controls in it.
when I ajaxify the radgrid, and select a record, the panel is not getting displayed. I was able to raise a postback event and the debugger goes to the radgrid1_SelectedIndexChanged method where I display the panel. Everything is executed fine, but I dont see the panel and the controls. It must definetly because of ajaxpostback.
How can I solve this? below is the code I am using.
the event is raised and the
end sub.
when I ajaxify the radgrid, and select a record, the panel is not getting displayed. I was able to raise a postback event and the debugger goes to the radgrid1_SelectedIndexChanged method where I display the panel. Everything is executed fine, but I dont see the panel and the controls. It must definetly because of ajaxpostback.
How can I solve this? below is the code I am using.
protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
{
base.RaisePostBackEvent(source, eventArgument);
if (source == RadGrid1 && eventArgument.IndexOf("RowClicked") != -1)
{
GridDataItem item = RadGrid1.Items[int.Parse(eventArgument.Split(':')[1])];
Response.Write(String.Format("CustomerID:{0}", item.GetDataKeyValue("CustomerID")));
}
}
{
base.RaisePostBackEvent(source, eventArgument);
if (source == RadGrid1 && eventArgument.IndexOf("RowClicked") != -1)
{
GridDataItem item = RadGrid1.Items[int.Parse(eventArgument.Split(':')[1])];
Response.Write(String.Format("CustomerID:{0}", item.GetDataKeyValue("CustomerID")));
}
}
the event is raised and the
Protected
Sub radgrid1_SelectedIndexChanged (ByVal sender As Object, ByVal e As System.EventArgs)
''' display the controls and perform operations.
end sub.