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

How to set OnPrerender handler in RadGrid in Code behind only?

1 Answer 413 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Serge
Top achievements
Rank 1
Serge asked on 27 Aug 2017, 10:26 AM

I have defined a RadGrid code behind completely only using a PlaceHolder in the aspx file that adds the myRadGrid objects. I Also definde the event handlers for "NeedDataSource" and "DetailTableDataBind":

myRadGrid.NeedDataSource += new GridNeedDataSourceEventHandler(needDataSource);
myRadGrid.DetailTableDataBind += new GridDetailTableDataBindEventHandler(detailTableDataBind);

I also want to define the event handler for PreRender, however, I cannot find the appropriate initialisation class handler to set myRadGrid.PreRender += ...?

I suppose it must be something like  GridPRerenderEventHandler(...) but I do not find it in the RadGrid.. !?!?!?!?

Any help is appreciated.

Many Thanks!

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Aug 2017, 12:33 PM
Hello Serge,

The PreRender event handler uses the standard argument instance of the .NET framework:
protected void Page_Init(object sender, EventArgs e)
{
    RadGrid1.PreRender += RadGrid1_PreRender;
}
private void RadGrid1_PreRender(object sender, EventArgs e)
{
}

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Serge
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or