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
2167
Row edit template problems
posted

I have an Ajax grid with Add New enabled.  When I click the "Add New" button it pops open the row edit template and this is fine if there are only maybe 5 records in the grid.  If there are more records in the grid than 1 section of the RowsRange property then inserting of the new row via the "Add New Box" causes a postback preventing the row edit template to show.

What can I do here?   

 

 

Parents
No Data
Reply
  • 2167
    Verified Answer
    posted

    Not sure is this is the best method but I set a variable in:

    function UltraWebGrid1_AfterRowInsertHandler() {

    bNewRecord=false;

    }

    Then cancel the template close event


    function UltraWebGrid1_BeforeRowTemplateCloseHandler(gridName, rowId, bSaveChanges){

    if (bNewRecord==true) {

    bNewRecord=false;

    return true;

    }

    Seems to do the job... for now.

Children
No Data