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

2 posts, 0 answers
  1. Serge
    Serge avatar
    5 posts
    Member since:
    Aug 2017

    Posted 27 Aug 2017 Link to this post

    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!

  2. Eyup
    Eyup avatar
    4079 posts

    Posted 30 Aug 2017 Link to this post

    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.

    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.
Back to Top