I have following function which checks the uniqueness of the value being entered in the column. This is working fine, when the function is used in stand alone form, but not for a webform which has a master page. cant I use ultragrid client functions with in content place holders (child web forms)
functionuwgHWDomain_AfterExitEditModeHandler(gridName, cellId){var rowElem;var cellVal;var cell;var domainName;var selectedCell;var indexCell; // cell where DomainId is stored.selectedCell = igtbl_getCellById(cellId);indexCell = selectedCell.getRow().getCell(0) ;rowElem=igtbl_getFirstSibRow(gridName,igtbl_getElementById("uwgHWDomain_r_0"));while(rowElem){var rowObj=igtbl_getRowById(rowElem.id);cell = rowObj.getCell(0); // call is the iterative rowobject in grid. 0 is the Index for IDif (selectedCell.getValue() == cell.getValue() && selectedCell.getRow().getIndex()!= owObj.getIndex)){alert("Already Selected");selectedCell.setValue("");}rowElem=igtbl_getNextSibRow(gridName,rowElem);indexCell.setValue(selectedCell.getValue());}
Hi,
The function should work with or without a Master page as long as the objects are accessed successfully on the client side.
Magued