Grid Batch Update - How to disable Message Box

10 replies. Last post: April 5, 2010 12:34 AM by Yudi
Tags :
jayaprakash Member

Hi,

 

I am using webgrid with batch update. I want to disable the message box(please see the attached image) which shows when focus is changed. I tried setting the attribute NotifyOnLostFocus to false but still the message box pops up. Could you please suggest me how to suppress this message box?

<BatchUpdateSettings NotifyOnLostFocus="false"/>

Thank you

 

 

 

 

1 attachment

All Replies

Yudi Member

WebGrid 7 has ‘PromptUnsavedChanges’ that determines whether or not user should be prompted when there is unsaved changes in batch update. Simply set the value of this property to ‘false’ in order to suppress the message box.

This should help.

example:

<LayoutSettings Hierarchical="True" AllowAddNew="Yes" AllowColumnMove="Yes" AllowDelete="Yes"
    <BatchUpdateSettings AllowReviewChanges="True" NotifyOnLostFocus="True" PromptUnsavedChanges="false" />
</LayoutSettings>

Thank you Yudi!!

Sorry for not mentioning the version of WebGrid in my previous post. I am using WebGrid 6.0 and it does not support this property. Is there an alternate solution for this in WebGrid 6.0?

 

 

Sorry for not mentioning the version of WebGrid in my previous post. I am using WebGrid 6.0 and it does not support this property. Is there an alternate solution for this in WebGrid 6.0?

Yudi Member

Hi,

I am using webgrid with batch update. I want to disable the message box(please see the attached image) which shows when focus is changed. I tried setting the attribute

If I refer to your first post in this thread, you said that you are using WebGrid with batch update enabled. Batch update scenario is introduced for the first time in WebGrid 7 version.

Your last post, that states that you are using WebGrid 6, makes me wonder how did you get the screenshot on the first post if you are using WebGrid 6 (since WebGrid hasn’t support batch update scenario yet).

Please let me know if you have different scenario.

I am attaching the screenshots of the version of webgrid and batch update properties that i get. I do not see  PromptUnsavedChanges in the list.

 

 

Yudi Member

We need to check your project in order to determine what may cause the issue (the ‘PromptUnsavedChanges’ property is not available).

Could you please send us a simple sample project (complete with the WebGrid 6 dll file that you are currently use) to be investigated further?

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

Yudi Member

... 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...

Could you please kindly create a new thread regarding the issue?

The main topic of your issue is different from this thread’s main topic. Creating a new one will helps to keep each thread in track.

We thought we had similar issue , hense we posted it here. As per your request we have created new thread 

http://www.intersoftpt.com/Community/WebGrid/Enabling-batch-update-without-setting-PromptUnsavedChanges-to-true-gives-JavaScript-error/

Please assist asap.

Thank you.



Yudi Member

Thank you for posting the issue on a new thread.
The discussion about “’null’ is null or not an object.” will be continued on the new thread.

All times are GMT -5. The time now is 5:30 PM.
Previous Next