behavior difference between clicking a radbutton and hitting enter when selected

2 posts, 0 answers
  1. Casey
    Casey avatar
    19 posts
    Member since:
    May 2011

    Posted 28 Mar 2012 Link to this post

    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??
  2. Casey
    Casey avatar
    19 posts
    Member since:
    May 2011

    Posted 29 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top