Ajax issue with RadSplitter and RadPanes

2 posts, 0 answers
  1. Cyril
    Cyril avatar
    1 posts
    Member since:
    Mar 2012

    Posted 27 Mar 2012 Link to this post

    I have a RadSplitter Control in an aspx page wich contains two RadPanes.The RadPanes Content is loaded from an external source (still pages from my project) thanks to the contentURL property. The rightpane content is loaded dynamically from an event of the leftpane ( a searchbutton click and a node click from a RadTreeView).

    In this scenario i would like the content inside the RightPane to be loaded with Ajax.

    I read in this forum that in this case, the only way to make it work would be to make an update of the whole RadSplitter.
    So i've tried to find a way to programmatically add in the page_load event handler an ajaxsetting to the RadAjaxManager with the RadAjaxPanel where the treeview is embedded as initiator to update the RadSplitter which is in the parent page.

    The problem i have is that  i can't get the reference of the splitter control from that parent page server side, i've already figured out how to get the reference client side with javascript but the AjaxSettings.AddAjaxSetting server method only accept the server object references as parameters.

    Is there a way to achieve this or am i going the wrong way, will this work ?

    Thank you
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 30 Mar 2012 Link to this post

    Hi Cyril,

    The recommended approach to change the ContentUrl property of RadPane is to use its client-side method set_contentUrl() or using a link with target attribute. Please take a look at the following live demo:
    Splitter / Client-side API

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top