insert value into grid by enter key press

Hi, and happy new year!

I have a situation: 

i used a syncfusion grid (with angular) and i am stacked on a situation. when i click on a cell for edit, i insert the value then i want to introduce this value (to take it in consideration) by pressing "enter" key. 

I have this link: https://stackblitz.com/edit/angular-yjegvk-be3guz?file=app.component.ts
In this case, it works. What i saw, the grid library version is  17.1.44

In my case, i'm using 19.1.xx. Can you please help me with the setting that i should make to be able to pass my situation? 

thank you, 



8 Replies

RR Rajapandi Ravi Syncfusion Team January 7, 2022 01:37 PM UTC

Hi Aurelian, 

Greetings from Syncfusion support 

Before we start providing solution on your query, we need some information for our clarification. Please share the below details that will be helpful for us to provide better solution. 

1)         Please share your exact requirement scenario with detailed description. 

2)         In your query you have mentioned that “In this case, it works.” So, please confirm what problem you are facing while upgrading the packages to 19.1version 

3)         Please share your issue scenario in video demonstration format. 

Regards, 
Rajapandi R 



AU aurelian January 10, 2022 02:58 PM UTC

Hi, 

Thank you for your answer. I attached an archive files with the explanation on the video and the files that include all the settings that i made and i had for my functionality of the grid. 

I am sorry for the sound quality of the video... Thank you!

Have a nice day, 

Aurelian 


Attachment: Captures_d865fd8c.rar


RR Rajapandi Ravi Syncfusion Team January 11, 2022 01:34 PM UTC

Hi aurelian, 

Thanks for the update 

Currently we are working on this query, and we will update you the details on Thursday, 13th Jan 2022. Until then we appreciate your patience. 

Rajapandi R 




AU aurelian replied to Rajapandi Ravi January 11, 2022 02:04 PM UTC

no problem Ravi. Thank you for your answer.



RR Rajapandi Ravi Syncfusion Team January 12, 2022 01:31 PM UTC

Hi Aurelian, 

Thankyou. Currently we are working on it, and we will update you details as we promised. 

Rajapandi R 



RR Rajapandi Ravi Syncfusion Team January 13, 2022 11:33 AM UTC

Hi Aurelian, 

Thanks for the update 

We understand that you are facing the problem with typing the value by using keyboard and press the enter button. We have analyzed your shared information and we found that while pressing enter button it will return the old value in the read method. To overcome the problem, we suggest you return the current component value in the read method. Please refer the below code example and sample for more information. 

 
this.consumptionParams = { 
            create: () => { 
              this.consumptionElem = document.createElement('input'); 
              return this.consumptionElem; 
            }, 
            read: (args) => { 
              return args.value; //return the component value 
            }, 
            destroy: () => { 
              this.consumptionObj.destroy(); 
            }, 
            write: args => { 
       
              this.consumptionObj = new NumericTextBox({ 
                value: args.rowData[args.column.field], 
                min: 0, 
                decimals: 2, 
                step: 0.01, 
                showSpinButton: false 
              }); 
              this.consumptionObj.appendTo(this.consumptionElem); 
            } 
          }; 
 


In your shared video demo, duration(00:38) you are using up-arrow in the keyboard to increase the textbox value and press enter button then the textbox value was updated. Since your audio was not cleared, we are not able to understand your query. If you are facing the problem with saving the textbox value while using keyboard up-arrow, Please share the below details 

1)         Please explain your problem scenario with detailed description. 

2)         Share the issue replication procedure step by step. 

Regards, 
Rajapandi R 



AU aurelian January 13, 2022 12:05 PM UTC

Hi, Ravi....

You are awesome it works. The solution that you provided to me it's what i need. 

Sorrry for my sound quality, you can consider the ticket solved.


Many thanks!!!!



SK Sujith Kumar Rajkumar Syncfusion Team January 14, 2022 05:39 AM UTC

Hi Aurelian, 
 
Thanks for the update. We are glad to hear that your query has been resolved. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon