Hi
I am using ultrawebgrid edit template for editing some values from the row.
I am using the sample from the below link http://samples.infragistics.com/2009.1/WebFeatureBrowser/Default.aspx (RowTemplates).
I done the same way and able to edit the row contenet from the Edit template pop up.
I am using the below function to update the grid cell values after clicking ok button from the edit template.
function AfterRowTemplateCloseHandler(gridName, rowId) {
var FullName = igtbl_getElementById("uwgClaimsList_ctl00_txtFullName");
gridRow.getCell(1).setValue(FullName.value);
}
I have a Save button out side the ultrawebgrid to update the grid changes to an object collection.
when I am tried to retrieve the value from the grid cell using
foreach (UltraGridRow row in uwgClaimsList.Rows)
{
objectCollection[row.Index].FullName = row.Cells.FromKey("FullName").Text;
The value of the right hand side the same old value before editing using edit template.
Why its not keeping the value when we set using gridRow.getCell(1).setValue(FullName.value);
Regards
Vini
Hi,
Where do you get reference of gridRow variable used in AfterRowTemplateCloseHandler?
Try adding these liles in the same event handler
var gridRow = igtbl_getRowById(rowId);
Let me know if this works.
Greetings
Sorry dear.. I appreciate your qucik reply , it was my mistake, the grid was re binded after when i clicked the save button and my stupidity i didnt check IsPost Back :~(
Thanks a Ton...
I am using the the client side events as
<ClientSideEvents BeforeRowTemplateOpenHandler="BeforeRowTemplateOpenHandler" AfterRowTemplateCloseHandler="AfterRowTemplateCloseHandler" > </ClientSideEvents>
and that calls
function AfterRowTemplateCloseHandler(gridName, rowId)