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

Hidden field value is not getting updated when used with RadAjaxManager.

1 Answer 197 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Shahid
Top achievements
Rank 1
Shahid asked on 21 Aug 2011, 12:13 PM
HI,

I am using RadAjaxManager which is present in the home page of our application. From any child page I require to call parent.Ajaxrequest through this manager. In this ajax requiest  I am required to update a hidden variable in the server side.. and in AjaxResponse end (JavaScript)  of the RadAjaxManager  I need to read the updated value of that hiidden variable.

Now when I update the hidden variable from server side while in the ajax request .. it seems the value has been updated but when I try to read the value from client side in ajax response end using document.getElementByID('hiddenFieldID') the updated value is not there..

I have also put in the id of hidden field in the RadAjaxManager as follows

<rad:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
            Style="position: absolute;">
            <ClientEvents OnResponseEnd="OnAjaxResponseEnd" OnRequestStart="noScroll" />
            <AjaxSettings>
                <rad:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <rad:AjaxUpdatedControl ControlID="hdHiddenFieldID" />
                   </UpdatedControls>
                </rad:AjaxSetting>
            </AjaxSettings>
        </rad:RadAjaxManager>

Please let me know If I am missing any thing ? or do you have any work aroung for this Issue.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 Aug 2011, 03:49 PM
Hello Shahid,

I've made a sample project to illustrate the desired functionality. It works on my end, please give it a try and let me know if it works on your end.

Regards,
Andrey
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Ajax
Asked by
Shahid
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or