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
155
Immediate postback on row update
posted

ok, right now I have a grid with a row template that updates my row beautifully and updates the database throught the postback. However, it doesn't update till focus is removed from that row. I want it to update immediately with have to wait for me to change the focus.

 Any suggestions?

 thanks,

Scott 

  • 10
    posted

     Scott-

    The first question is when do you want to do the postback? From your question I'm guessing that you want to do this when tabbing out of the last cell in the row. I would suggest using client side events. If you handle the AfterExitEditMode event and test for the id of your last cell. When you get it call igtbl_needPostBack to update the row. I think that would work. Something like this:

            function AfterExitEditMode(gridName, cellID)
            {  
                cell=igtbl_getCellById(cellID);
                if(cell.Column.Key=="lastColumnID")
                     igtbl_needPostBack(gridName);

     

    -Gary