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
getting previous Row -- igtbl_getPrevSibRow
posted

Hi, I am trying to access previous selected sibling row, to do some validations for ultrawebgrid 6.1

this is what I wrote. I am getting the current row, but igtbl_getPrevSibRow function is not returning anything. any help will be appreciated

 functionUltraWebGrid1_AfterRowInsertHandler(gridName, rowId, index)
{
var prevRow;
var curRow;
curRow = igtbl_getRowById(rowId);
prevRow = igtbl_getPrevSibRow(gridName,curRow);
}

Parents
No Data
Reply
  • 4555
    posted

    Hi,

    You can test using the getNextRow() and getPrevRow() method available on the Row object. Your code would look similar to:

    curRow = igtbl_getRowById(rowId);

    NextRow = curRow.getNextRow();

    PrevRow = curRow.getPrevRow();

    Magued

Children
No Data