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

OnUpdateCommand event with enter key

4 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tiago
Top achievements
Rank 1
Tiago asked on 25 Oct 2010, 12:50 PM
hi everybody!
I want kknow if there is a way to fire OnUpdateCommand event when the enter key is pressed.
I have already done the OnKeyPress event, but this is a client-side event, and I want when I press the key enter the OnUpdateCommand must be fired.

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 25 Oct 2010, 01:02 PM
Hello,


Placing Panel control in FormTemplate with DefaultButton set to UpdateButton would be an easiest method to accomplish the requirement.

You can find more information and suggestion by going through the following link.
Defaultbutton in EditMode


-Shinu.
0
Tiago
Top achievements
Rank 1
answered on 25 Oct 2010, 01:20 PM
thank you for your fast answer!
I will try to do this!
0
Tiago
Top achievements
Rank 1
answered on 25 Oct 2010, 05:54 PM
I tried to do what you have said, but in my case I have to update a DetailTable that belongs to a RadGrid.
I forgot to say this the first time.
It looks the OnItemDataBound event fires just on the RadGrid and not in its DetailTables.
0
Accepted
Radoslav
Telerik team
answered on 26 Oct 2010, 12:51 PM
Hi Tiago,

I am glad to inform you that the desired functionality will be implemented as a feature in our new release - ASP.NET AJAX Q3 2010. Currently the Update/insert rows upon hitting the ENTER key feature is available into the Q3 2010 BETA of RadControls for ASP.NET AJAX. On the following link you could find online example which demonstrates the desired functionality:
http://demos.telerik.com/aspnet-ajax-beta/grid/examples/client/keyboardnavigation/defaultcs.aspx
Please check it out and let me know if it helps you.

Additionally you could find instructions how to upgrade Telerik's RadControls to another version here:
http://www.telerik.com/support/kb/aspnet-ajax/general/updating-radcontrols-for-asp-net-to-another-version-or-license.aspx

Greetings,
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
Tags
Grid
Asked by
Tiago
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tiago
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or