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

[Solved] server side postback

1 Answer 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cognos s
Top achievements
Rank 1
cognos s asked on 15 Oct 2009, 08:17 PM
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.

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")));  
 }
}


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.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 20 Oct 2009, 03:25 PM
Hello cognos s,

Can you please verify whether you have put both RadGrid and the updated panel in the same UpdatePanel (or RadAjaxPanel respectively)? If you use RadAjaxManager control you should ensure that the RadGrid control is AJAX-ified and the panel is set as an updated control.

Regards,
Martin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
cognos s
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or