I am working with radgrid pulling the data relating to groups and subgroups using MasterTableView and detailtable view.I am using edit on row click to update the text by clicking on another row. If I click on the MasterTableView rows and edit something and immediately click on the row belongs to mastertableview,It is woring fine.Means I am out of focus and my previous row is displaying normal way and the row clicked currently is in the edit mode.If I click on the row belongs to detailtableview,the previous row is still staying in edit mode and the current row clicked also in edit mode.It is happening in all the browsers as well as in all versions.i.e IE 8 or 9, Crome as well.
Also some times if I click on rows of the detailedtableview,corresponding items in the mastergridview are becoming blank.
var hasChanges,editedRow;
function RowClick(sender, eventArgs) {
if (!hasChanges) {
if (eventArgs instanceof Object == true) {
editedRow = eventArgs.get_itemIndexHierarchical();
}
else {
editedRow = eventArgs;
if (parseInt(editedRow) >= 0)
editedRow = editedRow - 2;
}
$find("<%= ClassGrid.ClientID %>").get_masterTableView().editItem(editedRow);
document.getElementById('<%=hfEditRow.ClientID%>').value = editedRow;
}
CallAjaxManagerUpdate();
}
function CallAjaxManagerUpdate() {
if (editedRow && hasChanges) {
$find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(editedRow);
hasChanges = false;
document.getElementById('<%=hfEditRow.ClientID%>').value = "";
}
}
Any help can be appreciated.
Thanks
Murthy
Also some times if I click on rows of the detailedtableview,corresponding items in the mastergridview are becoming blank.
var hasChanges,editedRow;
function RowClick(sender, eventArgs) {
if (!hasChanges) {
if (eventArgs instanceof Object == true) {
editedRow = eventArgs.get_itemIndexHierarchical();
}
else {
editedRow = eventArgs;
if (parseInt(editedRow) >= 0)
editedRow = editedRow - 2;
}
$find("<%= ClassGrid.ClientID %>").get_masterTableView().editItem(editedRow);
document.getElementById('<%=hfEditRow.ClientID%>').value = editedRow;
}
CallAjaxManagerUpdate();
}
function CallAjaxManagerUpdate() {
if (editedRow && hasChanges) {
$find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(editedRow);
hasChanges = false;
document.getElementById('<%=hfEditRow.ClientID%>').value = "";
}
}
Any help can be appreciated.
Thanks
Murthy