Erroneous check after refresh (FireFox)

3 posts, 1 answers
  1. Brad
    Brad avatar
    39 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    This is a FireFox (3.6.13) problem (cannot reproduce in IE 8) - however, using IE8 is not a viable alternative since it's such a crappy browser.

    I have a ListBox on my page that has an item that appears checked even though it is actually not checked (or selected). If I click on the erroneously checked item, the code executes as if I have just checked it, not unchecked it. Also, the image remains checked. If I check it again, it unchecks the item and the code executes as such.

    Here's a strange part: if I select the 2nd item in the list and refresh the web page (using the browser's refresh button), the 1st item will appear selected (even though it's not). When I use FireBug to look at the checkbox elements in the ListBox, the box does NOT have the attribute checked="checked". The css styles on the elements didn't reveal anything either.

  2. Answer
    Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 14 Jan 2011 Link to this post

    Hello Brad,

    This is actually a Firefox feature - it fills out the form fields for you after refresh, even the hidden ones. Check this page in MDC for more information, the fix usually boils down to adding an autocomplete="off" to the form tag.

    Regards,
    Kamen Bundev
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brad
    Brad avatar
    39 posts
    Member since:
    Aug 2010

    Posted 14 Jan 2011 Link to this post

    Okay, so that worked, but I'm not sure how "autocomplete" would cause a checkbox to appear checked when it is actually not checked. What purpose is this? That's a rhetorical question. Thanks Telerik.
Back to Top