Problem with Ajax and disabled fields

4 posts, 0 answers
  1. Ngoc
    Ngoc avatar
    2 posts
    Member since:
    Apr 2009

    Posted 23 Jul 2009 Link to this post

    By default, ASP.Net form submission will not pass back disabled field during postback.  To get around this, we can set the form property "submitdisabledcontrols" to true and it will pass back the value of a disabled field.  However I am having a problem with an Ajax postback as it does not contain the updated value of a disable field.

    For example, I have a disabled checkbox when the form load.  Through javascript, I enable the checkbox.  Then I fire an event that makes an Ajax call to lookup a value.  The Ajax call does a server side postback but the state of the checkbox is disabled.

    Please help.  Thanks.
  2. SamJ
    SamJ avatar
    101 posts
    Member since:
    Jul 2008

    Posted 25 Jul 2009 Link to this post

    Hi,

    I was able to replicate without ajax as well. I am afraid that changes performed with javascript on the controls are always lost after postback and this sounds expected to me. I don't think the CheckBox is of the controls that persist their client state after postback.

    SamJ
  3. Jeff
    Jeff avatar
    6 posts
    Member since:
    Sep 2007

    Posted 31 Jan 2011 Link to this post

    Just wanted to bump this one up and see if the Telerik developers had any thoughts on it. We have an app with checkboxes in a Telerik RadGrid and they are losing their values on Postback.
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 31 Jan 2011 Link to this post

    Hi Jeff,

    Can you elaborate a bit on your scenario? Are you changing the checboxes atate manually? And is it lost after rebind or regualr postback?

    Greetings,
    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