AcceptAllChanges() client side method not working when BatchUpdate is enabled ?

4 replies. Last post: April 23, 2010 1:27 AM by Gaurav Desai
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Gaurav DesaiMember

we are using WebGrid 7.0 in SharePoint WebPart where we are rendering the grid programaticaly.

Our Grid is self refrenced grid.

I have enabled BatchUpdate and inline editing.

Now i dont want user to click on Acept All Changes button in the grid status bar  and instead want them to click on ASP.NET server side button control placed below the grid to save all batch updates.

I have attached a client side javascript on the asp.net button which is something similar to mentinoed below

function AcceptChangesAndDoBatchUpdate()
{        
    var interSoftWebUIGrid = ISGetObject(interSoftWebUIGridClientID);	
    if(interSoftWebUIGrid != null)
    {   
        interSoftWebUIGrid.AcceptAllChanges();                
    }        
    return true;
}

interSoftWebUIGrid.AcceptAllChanges()  statement in above javascript does call  server side BatchUpdate event where i will be saving batch update by accessing grid's pending changes. But to my suprise even after calling AcceptAllChanges method , grids updates are not accepted and it does not reflect changes in the grid. My Status bar still keeps showing (#) of pending changes .

Any idea ?

 

Thanks.

All times are GMT -5. The time now is 10:52 AM.
Previous Next