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

[Solved] Combine batch edit with keyboard support ??

3 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JanVen
Top achievements
Rank 1
JanVen asked on 02 Aug 2013, 09:54 AM
Hi

I'm a new user to Telerik's grid. My company is right now in a process to switch to Telerik's products, since our current supplier has ended support of their grid.

In our current grid we have a function that we use a lot - to be able to click a cell for edit one cell (like this): http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx and after entering a value press Enter to update the grid and the data behind - similar to this: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx. Some places we even do it in a hierarchical grid: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultvb.aspx.

I've made the open cell on double click in a hierarchical grid - but I can't seem the make it update using Enter - is this possible ??

Kind regards

Jan Vennike

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 07 Aug 2013, 07:21 AM
Hello Jan,

If we refer to this example, in order to update the grid item when the Enter key is pressed you can follow these steps:
  1. Subscribe to the OnKeyPress client event of the grid.
  2. Obtain a reference to the GridTableView in which the currently edited item is placed.
  3. Update the item using the updateItem method.

I have modified the demo in order to demonstrate a possible realization(please find the attached sample).

Additionally note that our developers are currently working on the integration between the new batch editing functionality and the keyboard navigation. This would allow you to meet the requirements by just enabling the built-in features of the grid. No custom server-side or client-side logic will be needed. The mentioned functionality will be available in the upcoming official release.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
JanVen
Top achievements
Rank 1
answered on 12 Aug 2013, 10:00 AM
Hi Angel

Thanks for your answer - it seems it might work for me :-)

But you mention that it would be standard in the next version, so the custom JavaScripts isn't necessary.

So when is the next version ready ??

I've got a lot of simple grids to convert, so if it isn't to far away with the next version, I would start with converting these and then go back to this more advanced use when the next version is ready.

kind regards

Jan Vennike
0
Angel Petrov
Telerik team
answered on 15 Aug 2013, 08:10 AM
Hi Jan,

The next official release is scheduled for the middle of October and the preceding BETA release for the end of September. However you can download the latest internal build in which the functionality is already available. Please note that it is not fully tested but will allow you to get a better idea of the functionality. We will highly appreciate any feedback provided.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
JanVen
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
JanVen
Top achievements
Rank 1
Share this question
or