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

RadGrid in Batch Edit mode

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 29 Jan 2015, 03:38 PM
Hi,

I've noticed 2 issues when using teh radgrid in batch edit mode.

1) if editing a cell and the user presses enter the grid seems to do a post back. 
2) if editing a cell and the user clicks on another row or outside the grid the value is sometimes lost.  Clicking back in the cell and reentering then works. 

Any pointers on resolving these two issues.  If not a generic issue I'll try and get a basic version that demos the issues and post it...

Regards

Jon

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 03 Feb 2015, 08:26 AM
Hi Jon,

The first issue that you are describing is due to the default behavior of pressing the Enter key within an INPUT element, which will find the first submit button on the page and submit the form. You can avoid this by enabling the keyboard navigation of the grid by setting the AllowKeyboardNavigation property of the grid to true. Another option would be to attach event handler for the onkeydown event of the wrapping element of the grid and prevent the bubbling when the Enter key is pressed.

As for the other issue, can you please confirm that you are using the latest version of our controls, because we had similar issue with RadNumericTextBox control in previous version? Additionally, can you please elaborate if the problem is observed in all browsers or in any particular one?


Best Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 03 Feb 2015, 08:53 AM
Hi Konstantin,

Fantastic that really helps.  How I missed that in my searches for the solution I don't know!

The second issue seems to be happening less now so is possibly something else on the page.  It is very erratic but seems to happen on IE11 (never on Chrome) and mainly when just loading the form with the grid.  As I ask my users to avoid IE and use Chrome this shouldn't be an issue.

Thanks again

Jon
0
Konstantin Dikov
Telerik team
answered on 05 Feb 2015, 02:34 PM
Hello Jon,

I am really glad that the provided information was helpful.

As for your second issue, which is still observed in IE 11, if you have a chance to create a simple, runnable project that replicates the same problem, we will test it locally and see if we can observe the same issue locally. This will allow our developers team to go debug the grid's code and find a possible cause of the problem.


Kind Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Jon
Top achievements
Rank 1
Share this question
or