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 Adding rows
posted

how can I make the Row edit template pop up after clicking on the Add New Box without having to click on the new empty row?

If I try to do this in the UltraWebGrid1_AfterRowInsertHandler event using row.editRow() method it tries to update the record.

Parents
No Data
Reply
  • 12333
    Verified Answer
    posted

    Hi Robert,

    I have a simple ASP.NET application with a WebGrid bound to a SqlDataSource and I am handling the AfterRowInsertHandler client side event.

     

    Here is the code in that event handler:

     

    function UltraWebGrid1_AfterRowInsertHandler(gridName, rowId, index){

    //Add code to handle your event here.

    igtbl_getRowById(rowId).editRow();

    }

     

    Once I click on the AddNew box, a new row is inserted and immediately, I see the RowEditTemplate open

     

    Off the top of my head you should check:

    1. Are you handling any server side events that will fire when you add a new row?

    2. Are you causing any postbacks to occur?

     

    Anything that causes a postback will stop the RowEditTemplate from showing.

Children