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

Problems using AJAX within a RadSplitter

3 Answers 37 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 24 Apr 2014, 03:17 PM
This is, in part, a continuation of my thread: http://www.telerik.com/forums/is-there-any-server-side-equivalent-of-the-endpane-expand-collapse-call

I am more than a little confused about the use of Ajax within a RadSplitter. 

The problem is this.  
    I have a form with a fairly complex RadSplitter containing RadPanes and RadSplitBars.  
   All important controls in the page are contained in RadPanes within the splitter.  
   What I need to do is to set the RadPane.Collapsed property of one RadPane to expose and hide a panel as needed. 
   I need to do this using the postback event of a RadComboBox within the splitter.

   Is this possible, and if so, how?

   

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Apr 2014, 12:56 PM
Hi Boris,

In case the RadComboBox is added within the splitter best approach would be to add the whole Splitter control to be ajaxified like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadSplitter1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSplitter1" UpdatePanelHeight="100%" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Note in the provided markup that the UpdatePanleHeight for the Ajax setting is set to "100%" which should fix the RadSplitter height issue you mentioned in the forum.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Boris
Top achievements
Rank 1
answered on 29 Apr 2014, 02:52 PM
Thanks for your response but the original problem was solved in a separate forum thread. 

I would like to ask how this is different from simply enclosing the entire splitter in a RadAjaxPanel. (My current approach.)
0
Maria Ilieva
Telerik team
answered on 02 May 2014, 11:02 AM
Hello Boris,

Both approaches should work equally correct. I have proposed using RadAjaxManager only because you are requiring this functionality with  RadAjaxManager in the related forum thread.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
Boris
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Boris
Top achievements
Rank 1
Share this question
or