User Profile & Activity

Gaurav Desai Member
Page
of 3

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

Yes, that was helpful. But is not there a way where on click of some button placed out side the grid i can get list of such modified rows ? 

Or as you mentioned the only way is to mange list of such rows on my own ?

Posted: March 25, 2010 1:17 AM

Hello Glenn,

                   Thanaks for your kind reply. As you said we can not remove that extra column, is there any way that we can reduce the width of that extra column? If we can, then please send me the sample code for doing the same.

 

Thanks,

G.S

Posted: March 24, 2010 9:52 AM

Thanks Glenn, 

that solution worked for me. But i have one more strange problem , although i am not adding any blank column i am finding one extra blank column at the very right hand side of my grid. Please see the attached screenshot. Can you pleas suggest what can be the cause for that ? and how do i remove it ?


Thanks.

Thanks for the solutions. By the way the zip file attachment is for some reason not downloadable, can you please check ?

I tried adding (rather associating) a hidden column with one of visible columns and i am now able to get its value from client side as described in your answer.

But the serious limitation with this approach is that i can have only one hidden data member per visible column. What if i am displaying only 5 columns but for other computation purpose need to access more than 5 other columns ( which is really the case in my scenario) ?

Is there a way i can access these hidden members from the columns for which i have set its 'visible' property to false ???

 

Thanks,

G.S

In that case, can you please suggest some alternative solution for this scenario ?

 

Thanks,

G.S  

Posted: March 11, 2010 8:17 AM

Yes i too notice that behaviour now. Supricingly i do have all the JavaScript files including WebGrid_core.js and WebGrid_UI.js in my  folder. Please find the attached screen shot to get an idea of what all files i am having in my folder.

This is now really driving us crazy, please help.



Posted: March 11, 2010 1:40 AM

Hhi Glenn,

Please find two screen shots attached with this reply. I did not get any 403 error whey tried to view the script in Developer tool but i am still getting the WGUID is undefined error as shown in the "WGUIUndefinedError.png" attachment.  

Did you get a chance to look at the source code we had attached in earlier post ? Is there anything which i need to change there ?

Btw,The common library folder we got was when we had downloaded the trial version of intersoft web ui studio 2009 r2 sp1.exe


Posted: March 10, 2010 6:41 AM

As you have mentioned we modified the code but we are still getting the same error :( 

Please find the attached code and the screen shot of the error for your refefence.

All times are GMT -5. The time now is 3:28 AM.
Previous Next