I am using a RadGrid Batch mode (row edit) with GridButtonColumn to open a PopUp (RadWindow), All this happens on client side.
In the grid I have data fields like Name, birth date, etc. I need to retreive data filled in the current row and show them in the PopUp.
I used this function on the OnClientShow event of the RadWindow :
var grid = $find("<%=RadGrid.ClientID%>");
var tableView = grid.get_masterTableView();
var batchManager = grid.get_batchEditingManager();
var items = tableView.get_dataItems();
var mapCell = items[index].get_cell("Nom");
var mapValue = batchManager.getCellValue(mapCell);
It worked when I fill the new record's details in the RadGrid and I unselect the row (I exit Edit mode) then I click on the GridButtonColumn in that row.
But when I click on the button in the new row when its in edit mode, this function returns nothing.
Any one can help ?
Thanks for your help !
6 Answers, 1 is accepted
Please note that you should name your RadGrid something different than "RadGrid" - for instance "RadGrid1".
I've created a sample RadGrid web site to test the described behavior. Could you run the attached application and let me know about the result?
Thank you for your advice about naming the RadGrid but this is a code sample that I provided, the name in my real code is different.
About your sample project, its working well but the RadGrid is in edit mode type = "Cell".
What I need is exactly the same behavior as in your example, but when edit mode type is = "Row". Is it possible ?
In this case add the following line to your logic:
That should do the trick. Looking forward to your reply.
Your solution did work.
Thank you :D
What is the equivalent for closing InPlace Editing on client side?
I have a RadGrid with a GridClientSelectColumn, I would like to close edits when GridClientSelectColumn is clicked.
You can use the fireCommand to achieve this requirement:
You can try with Cancel or CancelAll. Bear in mind that since the InPlace editing mode is a server-side generated form, this action will cause a postback or AJAX request.
I hope this will prove helpful.
Telerik by Progress