Escape key wipes out the page viewstate

5 posts, 0 answers
  1. Ravi Divate
    Ravi Divate avatar
    7 posts
    Member since:
    Apr 2010

    Posted 23 Mar 2012 Link to this post

    Hi,

    I am using the RadComboBox version 2009.3.1503. I am observing the strange behavior of RadComboBox.

    I have the RadComboBox in RadGrid EditItemTemplate whenever user selects the edit option on the grid row the combobox will be available to select values which will load the values on demand and it works well (I have the necessary LoadOnDemand etc., properties set and ItemsRequested event defined to feed the request). I have list of custom object values stored in page viewstate to use in page postbacks (used to bind the grid in NeedDataSource event).

    The real problem occurs when user presses "Escape" key twice in the RadComboBox and clicks on Update link button on RadGrid the page postbacks and in the page viewstate our list of custom object values will be wiped out. The viewstate is returning null for this key.

    This entire functionality works fine either user selects any value from the RadComboBox or don't select any value at all (custom validation works fine to identify if a value is selected, if not gives proper error message). I tried with and without setting EmptyMessage property for RadComboBox in either case it is same(pressing Escape key twice lead to wipe out the list of custom object values in the page viewstate). I came across a thread where it is discussed that pressing escape key on RadControls resets control values on the page (using form reset method) but this is wiping out the page viewstate itself. I am not sure which is causing this or is this a know issue with Telerik RadComboBox. Your help will be greatly appreciated.

    Thanks,
    Ravi
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 27 Mar 2012 Link to this post

    Hello Ravi,

    The experienced problem is rather strange and I haven't managed to replicate it locally. Please note that you are using rather old version of our controls and it's very likely that this problem is already fixed. Please try to updated your controls and check whether the same problem persists.

    Regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Chris
    Chris avatar
    9 posts
    Member since:
    Sep 2012

    Posted 31 Jul 2012 Link to this post

    We are seeing this as well with all Telerik text box type controls.  We are using a version from this year but I'm updating it to confirm it still does it in the latest version.

    Just like the OP pressing escape multiple times seems to null out the view state so that when a post back happens it causes a crash.
  4. Chris
    Chris avatar
    9 posts
    Member since:
    Sep 2012

    Posted 31 Jul 2012 Link to this post

    Looks like it's related to IE8 and doesn't matter which version of the Telerik controls you are using.
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 02 Aug 2012 Link to this post

    Hello Chris,

    As I've mentioned in my previous post we haven't managed to reproduce this issue, so I case you are able to isolate it a sample project, please open a support ticket and attach it so we cloud inspect it locally.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top