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

Ajaxify on onprerender

1 Answer 59 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
caglar_ozkul
Top achievements
Rank 1
caglar_ozkul asked on 25 Oct 2008, 03:22 PM
Hi,

I have a composite control that has a toolbar and a grid in it. I was using onLoad method of Composite control to ajaxify toolbar with grid. But i have a problem:
Since the onLoad method of Toolbar(child control) runs after Composite Control's(parent control) onLoad method and Since i need to get some properties from Toolbar's viewstate before making ajax settings, I have to ajaxify my controls after OnLoad method of CompositeControl.

The question is: Now I use the OnPrerender method of CompositeControl to ajaxify my controls thru the AjaxManager Located on MasterPage. is it acceptable? is this approach cause any problem?

Kind Regards,
Caglar Ozkul

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 Oct 2008, 02:09 PM
Hello Caglar,

RadAjaxManager settings are evaluated after PreRender. Hence inside the PreRender event you can set the RadAjaxManager settings.

For your convenience I prepared a sample application demonstrating the requested behavior. You can find it attached to this forum post.

Best regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
caglar_ozkul
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or