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

after radwindow client close

3 Answers 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
fifi
Top achievements
Rank 1
fifi asked on 13 Oct 2009, 01:10 PM
hi,
i use a radwindow and a radgrid in a usercontrol.after radwindow clientclose,
$find("<%= RadGrid1.ClientID %>")
and
$find("<%= RadAjaxManager1.ClientID %>") return null.
i add usercontrol to the page in runtime using loadcontrol.
what should i do?
thanks

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Oct 2009, 01:53 PM
Hello fifi,

I believe that the following documentation topic will be of help:
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html


Sincerely yours,
Georgi Tunev
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.
0
fifi
Top achievements
Rank 1
answered on 17 Oct 2009, 05:13 AM
hello,
thanks for your reply.
i have a RadAjaxManager in usercontrol and for first opening window every thing is ok. after window client close new recoed added to grid but for next time $find("<%= RadAjaxManager1.ClientID %>") and $find("<%= RadGrid1.ClientID %>") return null.
i want update grid by RadAjaxManager.ajaxRequest();
thhanks a lot
0
Sebastian
Telerik team
answered on 19 Oct 2009, 07:38 AM
Hello fifi,

Placing RadAjaxManager inside user control is not recommended practice - instead consider using RadAjaxManagerProxy and utilize the GetCurrent(page) static method of the ajax manager to locate the manager's client instance on the main page. This online demo illustrates the usage of RadAjaxManagerProxy control in main page/user control scenario:

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

Alternatively, consider the approach with dynamic ajax settings suggested by my colleague Georgi.

Best regards,
Sebastian
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
Window
Asked by
fifi
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
fifi
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or