Hi,
there is a strange behavior that I can't understand when I DoubleClick on a row.
Here is my javacript function that handle the RowDblClick:
If you look at it, is seems to works and it does, but only in chrome debug. If I just run it normally, the editedRow doesn't get updated, but if I run it in debug using Chrome debug and execute line per line, it works. So why this is happenning?
Thanks.
there is a strange behavior that I can't understand when I DoubleClick on a row.
Here is my javacript function that handle the RowDblClick:
var
editedRowIndex;
function
RowDblClick(sender, eventArgs)
{
var
gridMPA = $find(
"<%= gridMPA.ClientID %>"
);
var
editedRow;
if
(editedRowIndex)
{
editedRow = gridMPA.get_masterTableView().get_dataItems()[editedRowIndex];
if
(editedRow.get_isInEditMode())
{
gridMPA.get_masterTableView().updateItem(editedRow.get_itemIndexHierarchical());
}
}
editedRowIndex = eventArgs.get_itemIndexHierarchical();
gridMPA.get_masterTableView().editItem(editedRowIndex);
}
If you look at it, is seems to works and it does, but only in chrome debug. If I just run it normally, the editedRow doesn't get updated, but if I run it in debug using Chrome debug and execute line per line, it works. So why this is happenning?
Thanks.