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

RadGrid client side batchEditing Event

1 Answer 137 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lubomir
Top achievements
Rank 1
Lubomir asked on 11 Apr 2014, 07:08 AM
When  i change the value in a field into rad grid (<BatchEditingSettings EditType="Row" OpenEditingEvent="Click" />),  i need to click somewhere in page, for appear the red triangle in left corner of the box. Which client side events call this? 
I want to call this event in my custom function?  
var grid = $find('<%=theLineItemsGrid.ClientID%>')
grid.??????

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 16 Apr 2014, 06:45 AM
Hello Lubomir,

You can set a CSS class or use the changeCellValue to achieve the requested functionality:
http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html

Something similar to this:
function buttonClick() {
    var grid = $find('<%= RadGrid1.ClientID %>');
    var randomCell = grid.get_masterTableView().get_dataItems()[4].get_cell("ShipName");
 
    // first approach
    $(randomCell).addClass("rgBatchChanged");
 
    // second approach
    // var batchManager = grid.get_batchEditingManager();
    // batchManager.changeCellValue(randomCell, "Success");
}

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
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
Lubomir
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or