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

grid in batch edit mode not saving to database if text contains character ; or newline

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Log
Top achievements
Rank 1
Log asked on 16 Sep 2013, 01:06 PM
Entering characters \ / or ; and then clicking "save change" crashes the demo at
batchediting demo
(says page not available)

Saving multiline text also doesnt work. e.Commands in  RadGrid1_BatchEditCommand is empty.
Since this looks like a bug in ur control and I need workaround can you plz tell me how can i save updated text manually to database when user presses save changes button?

Also it would be very nice if save button would become enabled only when any changes have been made to the grid. Any easy way I can change that?

2 Answers, 1 is accepted

Sort by
0
Log
Top achievements
Rank 1
answered on 16 Sep 2013, 01:11 PM
Also it would be very nice if user was asked if he wanted to save changes before any postback is made.
0
Angel Petrov
Telerik team
answered on 19 Sep 2013, 11:46 AM
Hi Log,

Indeed this is an issue we need to fix. We have already logged it into our system for improvement and you can monitor our progress from here. Please note that our developers will do their best to provide a fix as soon as possible.

Thank you for reporting this problem to us. As a token of gratitude I have updated your Telerik points.

As for the multi-line issue it is already resolved and if you download the latest internal build you should not experience such behavior.

Regarding the other requirements. Disabling of the built-in buttons initially would be tricky. I recommend using a CommandItemTemplate and placing buttons inside which should trigger the same action. These buttons can be initially disabled or not displayed and later if a cell's value is changed you can enable/show them using JavaScript. This action can be performed in the OnBatchEditCellValueChanged event.

For alerting the user whether he wants to update the values you can subscribe to the OnGrid command, display a confirm dialog and according to the user selection cancel the command and call rebind or do nothing and let the grid update the values.

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
Log
Top achievements
Rank 1
Answers by
Log
Top achievements
Rank 1
Angel Petrov
Telerik team
Share this question
or