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

behavior difference between clicking a radbutton and hitting enter when selected

1 Answer 51 Views
Button
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 28 Mar 2012, 03:56 PM
I have an issue that I have been going around in circles with for a little while now. I have a webform with a simple save button on it
<telerik:RadButton ID="btnSaveProduct" runat="server" Skin="Web20" Text="Save"></telerik:RadButton>

which has code for the click event
Private Sub btnSaveProduct_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveProduct.Click
If pageIsValid() = True Then
processPage()
End If
End Sub

I am running into a problem because when the user clicks on the button the btnSaveProduct_Click event is fired correctly and everything on the form is saved correctly. However, when the user tabs over to the button and clicks enter the btnSaveProduct_Click event is fired correctly but the items on the form are not saved correctly. It hits all the same code and the only difference is how the user clicks save. It almost seems like the clicking the button does a postback to the form but tabbing and clicking enter does not.

Does anyone have any insight to what the problem may be??

1 Answer, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 29 Mar 2012, 09:58 PM
Nevermind. I replaced some of the controls on the grid with telerik controls and that did the trick. I think the old contols didn't like ajax.
Tags
Button
Asked by
Casey
Top achievements
Rank 1
Answers by
Casey
Top achievements
Rank 1
Share this question
or