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

How to pass parameters from server to client in ajaxRequest?

1 Answer 130 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Vitalii
Top achievements
Rank 1
Vitalii asked on 12 Feb 2011, 12:53 AM
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?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 16 Feb 2011, 06:48 AM
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.
Tags
Ajax
Asked by
Vitalii
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or