Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
client side function problem in Child Forms
posted

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 ID
if (selectedCell.getValue() == cell.getValue() && selectedCell.getRow().getIndex()!= owObj.getIndex))
{
alert("Already Selected");
selectedCell.setValue("");
}
rowElem=igtbl_getNextSibRow(gridName,rowElem);
indexCell.setValue(selectedCell.getValue());
}

Parents
No Data
Reply Children
No Data