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

2010Q1.SP1 - Double Submit when Default Button is defined

2 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 19 May 2010, 10:54 PM
We just ran into something interesting where with the latest Telerik update the user ends up inserting two records (instead of one) when inserting a record.

User Behavior:
There is a popup with some prompts.  Using only the keyboard the user types in the text boxes, hits tab, (repeat).  When on the final text box, the user hits tab, this highlights the Insert button, then the user hits Enter.

As a result two records are inserted.
Note: this was only duplicated using IE8

System Behavior:
It appears that the Enter key submitted the page to insert a record, but it also submitted the page again as a response to having the Insert button activated. 

As a result, the Insert record method was called twice by one Enter button press.


Work Around:
We found our popup had the following in the code behind's page load -
 Page.Form.DefaultButton = btnSubmit.UniqueID;
We removed this and things are back to normal.


The Question:
We rolled back our Telerik dll to 2009q2 and did not have an issue with this popup, however the 2010Q1 version did.  Any ideas as to what this might be in the 2010q1?  We are scratching our heads over here.

Thanks!

Tim

2 Answers, 1 is accepted

Sort by
0
Accepted
Lini
Telerik team
answered on 20 May 2010, 02:09 PM
Hello Tim,

If possible, open a formal support ticket and send us a simple project where we can see the problem. Here are a couple of things you can try in the meantime:

- if you are using a RadFormDecorator control in the popup, set its ControlsToSkip property to "Buttons". This will revert the insert button to the default browser behavior.

- we have just released a new service pack (Q1 2010 SP2) version 2010.1.519. You can try updating your project with this version and check if the problem is fixed there.

Regards,
Lini
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jeff
Top achievements
Rank 1
answered on 20 May 2010, 02:12 PM
Sure, it will be a bit before we have the time to prepare an example project - and we do have a work around.

Just wanted to make sure we were not tapping into something larger.

Thanks
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Lini
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or