How to pass parameters from server to client in ajaxRequest?

2 posts, 0 answers
  1. Vitalii
    Vitalii avatar
    1 posts
    Member since:
    Feb 2011

    Posted 11 Feb 2011 Link to this post

    I have button which launch ajax request. That button manage a panel.
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="button_launcher">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    I can change size of panel in server-side. But sometimes I need manage other elements which unavailable in server-side. So I want to calculate values and pass it to client-side and then make changes which I need to do. After long searching I did not find how to do that. Now I do it in ugly way - I write this parameters on hidden labels and then parse it in OnResponseEnd function. Can I avoid it somehow?
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Feb 2011 Link to this post

    Hi Vitalii,

    Check out the below article elaborating on how to execute custom javascript after ajax request:
    http://www.telerik.com/help/aspnet-ajax/ajxcustomjavascript.html

    All the best,
    Iana
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top