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

Call AjaxRequest in another splitter page

1 Answer 71 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jin Developer
Top achievements
Rank 1
Jin Developer asked on 06 Nov 2009, 02:06 PM
I have a Default.aspx page, it contains a splitter control which divides the page to two parts, the leftpane and mainpane. The leftpane ContentUrl is set to LeftNav.aspx and mainpane ContentUrl is set to Main.aspx.

My question is, how do I call the javascript ajaxrequest that resides in LeftNav.aspx from Main.aspx? Basically I want certain action inside Main.aspx page to trigger an Ajax request on the LeftNav.aspx.

I know I can always use javascript function set_contentUrl('LeftNav.aspx') to refresh the LeftNav.aspx page URL, but the page refresh doesn't look as good as an Ajax request where you don't see the whole LeftNav refreshed.

Is this doable?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Nov 2009, 08:29 AM
Hi Jin Developer,

I already answered your support thread and for your convenience and for others who might have the same requirements I pasted it below:

You can find a detailed KB article which shows what you want to achieve below:

http://www.telerik.com/support/kb/aspnet-ajax/splitter/use-ajax-request-to-update-part-of-an-external-page-loaded-in-a-radpane.aspx

Note, that the article is for RadSplitter for ASP.NET AJAX while you have noted that you use RadSplitter for ASP.NET. If so, you should use the very same approach but to use the corresponding client methods (the main difference is in the casing and this si important since javascript is case-sensitive) which you can find below:

http://www.telerik.com/help/aspnet-ajax/splitter-changes-and-backwards-compatibility.html

I noticed that in this thread you have selected RadSplitter for ASP.NET AJAX in difference from your support thread. If you are using the ajax version, you can directly use the KB article approach.




Greetings,
Svetlina
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
Splitter
Asked by
Jin Developer
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or