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

Escape key wipes out the page viewstate

4 Answers 34 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ravi Divate
Top achievements
Rank 1
Ravi Divate asked on 23 Mar 2012, 02:42 PM
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

4 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 27 Mar 2012, 02:37 PM
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.
0
Chris
Top achievements
Rank 1
answered on 31 Jul 2012, 02:32 PM
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.
0
Chris
Top achievements
Rank 1
answered on 31 Jul 2012, 02:55 PM
Looks like it's related to IE8 and doesn't matter which version of the Telerik controls you are using.
0
Dimitar Terziev
Telerik team
answered on 02 Aug 2012, 07:47 AM
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.
Tags
ComboBox
Asked by
Ravi Divate
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or