Hidden Field Issue In RADAJAXMANAGER

Thread is closed for posting
2 posts, 0 answers
  1. Kali Raj
    Kali Raj avatar
    4 posts
    Member since:
    Jan 2010

    Posted 13 Jan 2010 Link to this post

    Hi ,

    Hidden filed value not updated on server side if changed by java script

    How do i confiqure Hidden Fields in RAdAjaxMAnager

    Kali Raj P
  2. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 14 Jan 2010 Link to this post


    One approach is to add the runat="server" attribute to the hidden field and ajaxify it:

    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
        <script type="text/javascript">
            function buttonClick()
                var hidden = $get("radGridClickedRowIndex");                
                hidden.value = "some value";
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="button1">
                    <telerik:AjaxUpdatedControl ControlID="hidden" />
    <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" runat="server" />    
    <asp:Button ID="button1" OnClientClick="buttonClick()" Text="Update hidden field"  runat="server"/>

    I hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top