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

client Side Row delete in Batch Edit

6 Answers 273 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rajesh kumar
Top achievements
Rank 1
rajesh kumar asked on 16 Jul 2014, 07:45 AM
i am using Telerik - UI for ASP.NET AJAX Q3 2013 version. and the client Event OnRowDeleted does not raise when the row is deleted, when using the grid batch edit. i have searched online and found they have updated that in the Q2 2012 ver. But i am using the higher version but it has not been updated, could some one help us fixing these issues

6 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 18 Jul 2014, 01:13 PM
Hello Rajesh ,

I am afraid that the described issue is present in the Q3 2013 release of the controls. However, the problem has been resolved and is not observed  in the current version (2014.2.618).

Please upgrade the controls to the latest version and the RowDeleted client event should be fired as expected for the RadGrid in Batch edit mode.

Regards,
Viktor Tachev
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
rajesh kumar
Top achievements
Rank 1
answered on 25 Jul 2014, 08:20 AM
Hi Viktor,

       Thx for the reply , anyway i had implemented the row delete with the command argument values. But need help in the batchedit grid savechanges with a save button inside the grid itself,

Currently i am using

function SaveChangesInGrid(sender,args) {
var grid = $find('<%=RadGrid1.ClientID%>'); 
grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());        }   

it calls the RadGrid1_BatchEditCommand , but the e.command is having 0 command even if i pass the values, this happens when i add new row or update the column and clicking on the grid button provided inside the grid, But if i add or edit the row and click outside the grid the grid marks the columns with the red color on the left top corner of the cell and and send the command values 1 or 2 according to the row changes. 
what exactly what i needed is to perform the inline gird save/update with the batchedit grid.

0
Viktor Tachev
Telerik team
answered on 29 Jul 2014, 03:01 PM
Hi Rajesh,

If you are using the auto generated SaveChanges button you do not need to call saveChanges() manually. For your convenience I have prepared a sample project where RadGrid with Batch editing mode is used. You would find the project attached. The update and insert functionality seems to work as expected on my end. Give the sample a try and let me know how it works for you.

Regards,
Viktor Tachev
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
Lahiru
Top achievements
Rank 1
answered on 04 Aug 2014, 12:39 PM
Hi Viktor,

I checked your sample as well. And I have a different question regarding adding new record in Batch edit mode.

When you click on "Add new record", it gives you the option to enter details. But it doesn't show the Delete/Edit columns. And once you added the new row, it doesn't show the delete/edit links. (Screenshot attached as well)

How can I get it to display the Delete/Edit columns? This is working fine in your online demo. http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Thank you,
Lahiru
0
Viktor Tachev
Telerik team
answered on 07 Aug 2014, 08:37 AM
Hi Lahiru,

I am afraid that the issue shown on the screenshot is not observed on my end. I also made a short video as reference. It is available here.

Please ensure that you have a GridClientDeleteColumn added in the markup of the RadGrid. Also, try upgrading the controls to the latest version (currently 2014.2.724).

Regards,
Viktor Tachev
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
Lahiru
Top achievements
Rank 1
answered on 07 Aug 2014, 09:48 AM
Hi Viktor,

I updated the controls to the latest version and that issue is fixed.

Thank you very much for the assistance. 

Regards,
Lahiru
Tags
Grid
Asked by
rajesh kumar
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
rajesh kumar
Top achievements
Rank 1
Lahiru
Top achievements
Rank 1
Share this question
or