Cancel editing upon 'esc' key down in batch model.

Hello team.

Cancel Row editing / Adding via ESC key down works with normal mode. Is there is a way to get it it work with Batch mode..


Or How will I fire the cancel in toolbar using Escape?


Best Regards,

Tyrone



6 Replies

TY Tyrone September 25, 2021 02:15 AM UTC

I already solved it.


 public async void KeyDownHandlerItemCode(KeyboardEventArgs args)

        {

            if (args.Key == "Escape")

            {

                //await GridDetail.AddRecordAsync();

                await GridDetail.CloseEditAsync();

            }

        }



RN Rahul Narayanasamy Syncfusion Team September 27, 2021 05:16 AM UTC

Hi Tyrone, 

Greetings from Syncfusion. 

We are glad to hear that you have found the solution for your requirement by yourself. Please get back to us if you need further assistance. 

Regards, 
Rahul 



TY Tyrone October 1, 2021 06:09 AM UTC

Hi Rahul.

     await GridDetail.CloseEditAsync(); cancels all the edited or new rows.. 

Is there is the way to cancel the selected row only?

Best Regards,


Tyrone




RN Rahul Narayanasamy Syncfusion Team October 4, 2021 02:14 PM UTC

Hi Tyrone, 

Thanks for the update. 

We have validated your query and you want to cancel(close edit) the edited data for particular row in batch mode of editing. We would like to inform you that we could not able to revert the changes for only one row(in multiple edited rows) in batch mode of editing. While calling the CloseEditAsync method, it will remove all the changes for all rows. This is the behavior. 

Please let us know if you have any concerns. 

Regards, 
Rahul 



TY Tyrone October 10, 2021 11:24 AM UTC

Thanks for the info Rahul. 


Best Regards,


Tyropne



RN Rahul Narayanasamy Syncfusion Team October 11, 2021 05:14 AM UTC

Hi Tyrone, 
 
Thanks for the update. 
 
Please get back to us if you need any further assistance. 
 
Regards, 
Rahul 


Loader.
Up arrow icon