Enabling batch update without setting PromptUnsavedChanges to true gives JavaScript error...

1 reply. Last post: April 6, 2010 11:53 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Gaurav DesaiMember

Hello Yudi,

We are using WebGrid 7.0 in SharePoint. We are rendering the grid programatically. As we wanted to access the changes both on client side and server side, we have done the following settings::

FYI: interSoftWebUIGrid is an instance of WebGrid 7.0.

interSoftWebUIGrid.LayoutSettings.StatusBarVisible = true;
interSoftWebUIGrid.LayoutSettings.AllowBatchUpdate = true;
interSoftWebUIGrid.LayoutSettings.BatchUpdateSettings.NotifyOnLostFocus = true;
interSoftWebUIGrid.LayoutSettings.BatchUpdateSettings.PromptUnsavedChanges = false;

With these settings, when we change anything in the grid and click on any other button on the page we WILL NOT get the prompt, which is what required, but we get a JavaScript error with the message : Error: 'null' is null or not an object.

Any help on this would be greatly appreciable.

 

Thanks,

G S

All times are GMT -5. The time now is 12:44 AM.
Previous Next