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

Enter Key not working?

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karthik Kantharaj
Top achievements
Rank 1
Karthik Kantharaj asked on 22 Mar 2010, 06:28 AM
Hi Guys

I am new to this forum
I came across with one problem
I have user name and password field
I have two panel with id errormsg and successmsg

<asp:Button ID="btnSubmit"  OnClientClick="SubmitForm();" Text="Login"
                                runat="server" onclick="btnSubmit_Click" />


     <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSubmit" >
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="errormsg "></telerik:AjaxUpdatedControl>
             </UpdatedControls>
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="successmsg"></telerik:AjaxUpdatedControl>
         </UpdatedControls>
                </telerik:AjaxSetting>
     </AjaxSettings>    
   
so after entering username and password and enter key is pressed it not working

Please guide me

Karthik.K

3 Answers, 1 is accepted

Sort by
0
Karthik Kantharaj
Top achievements
Rank 1
answered on 23 Mar 2010, 07:23 AM
Hi Guys

Please Clarify my doubt

Whether enter key works when RadAjaxManager used e.g
below is my button

<asp:Button ID="btnSubmit"   Text="Login"
                                runat="server"  />
My telerik code

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSubmit">
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="errorMsg"></telerik:AjaxUpdatedControl>
             </UpdatedControls>
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="successMsg"></telerik:AjaxUpdatedControl>
         </UpdatedControls>
                </telerik:AjaxSetting>
     </AjaxSettings>       
    </telerik:RadAjaxManager>

When i remove telerik code enter key is working

Any Idea

Please Guide Me

Karthik.K
0
Radoslav
Telerik team
answered on 24 Mar 2010, 03:53 PM
Hello Karthik,

In order to achieve the desired functionality you could try setting the form.defaultbutton property to the ID of the button which you want to cause postback when the Enter key is pressed.
I hope this helps.

All the best,
Radoslav
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
Karthik Kantharaj
Top achievements
Rank 1
answered on 25 Mar 2010, 05:41 AM
Hi Radoslav

Thank you

Solved my problem

Karthik.k
Tags
General Discussions
Asked by
Karthik Kantharaj
Top achievements
Rank 1
Answers by
Karthik Kantharaj
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or