Hi,
I'm using the following code to change a value in a cell in the grid client side:
function ReAssignUser_UpdateGrid(NewUserText) {
var grdFlowInstances = $find("<%=grdFlowInstances.ClientID%>");
var masterTableView = grdFlowInstances.get_masterTableView();
var dataItems = masterTableView.get_dataItems();
for (var i = 0; i < dataItems.length; ++i) {
var dataItem = dataItems[i];
if (dataItem.getDataKeyValue("FlowInstanceID") == FlowInstanceID) {
var lblAssignedTo = dataItem.findElement("lblAssignedTo");
if (lblAssignedTo != null)
lblAssignedTo.innerHTML = NewUserText;
}
}
}
This works great until I do something that causes a postback, then the value reverts to the prior value. I'm assuming this is because it's not getting updated in the viewstate. Is there any way to update the viewstate so that the change in the cell value persists between postbacks?
Thanks,
Erik
I'm using the following code to change a value in a cell in the grid client side:
function ReAssignUser_UpdateGrid(NewUserText) {
var grdFlowInstances = $find("<%=grdFlowInstances.ClientID%>");
var masterTableView = grdFlowInstances.get_masterTableView();
var dataItems = masterTableView.get_dataItems();
for (var i = 0; i < dataItems.length; ++i) {
var dataItem = dataItems[i];
if (dataItem.getDataKeyValue("FlowInstanceID") == FlowInstanceID) {
var lblAssignedTo = dataItem.findElement("lblAssignedTo");
if (lblAssignedTo != null)
lblAssignedTo.innerHTML = NewUserText;
}
}
}
This works great until I do something that causes a postback, then the value reverts to the prior value. I'm assuming this is because it's not getting updated in the viewstate. Is there any way to update the viewstate so that the change in the cell value persists between postbacks?
Thanks,
Erik