User Profile & Activity

Adrian Cunningham Member
Page
of 3

Glen,

Thanks for the reply, but if you look at my EDMCollection class I've actually implemented the ObjectRelations interface hence I thought I was already operating in "Inbound" mode.

However, I think I have got my app working with my own implementation while referencing your Tutorial Solution >> V4.0 >> Hierarchical_Binding.aspx tutorial.

Code below:

        protected void wgEDMPortfolios_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
List<BrokerEDMPortfolio> edmPorts2 = Controller.ServiceFacade.PortfolioNavigationService.GetBrokerEDMPortfolio(1752);


_edmColl = new EDMCollection(edmPorts2);
e.DataSource = _edmColl;
}

protected void wgEDMPortfolios_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
if (!IsPostBack)
{
wgEDMPortfolios.RetrieveHierarchicalStructure();
}

}


Posted: December 1, 2009 3:04 PM

Yep,

I never managed to resolve this issue and my work around was to remove the WebPaneManager from the page and use standard HTML tables to control the layout.

I trying debugging the issue with everything in my arsenal but to no avail, I set breakpoints everywhere in the JavaScript code and none of them ever fired so I assume it must be something internal to the Intersoft JavaScript.

Regards,

Adrian.

Posted: November 25, 2009 7:46 AM

Andi,

I am aware that that PerformBatchUpdate method actually calls the grdFactors_BatchUpdate phyiscally saves the data to the database this is desired and documented functionality that I want, what it doesn't do is reflect this in the UI.

The idea (or so I thought) of batch update is to allow me to process multiple changes in one single batch. The documentation states that "In some cases you might prefer to have your own button process the pending changes, in addition to the user the interface provided by the WebGrid".

And this is one of those of those occasions. The PerformBatchUpdate method does physically update my datasource but leaves the datasource and the WebGrid UI in an inconsistent state, and this is a bug in my view.

Your previous post would actually result in processing the pending changes twice:

  1. The PerformBatch Update method will process the changes correctly on the button slcik but fails to update the UI of the grid to reflect the processed changes.
  2. The script sends a "Second" request to process the changes simply so the grid looks correct, I would have to do this for all 8 grids.
This completely negates the point of me processing pending changes with my own server side code, not to mention that fact that performance will be rubbish.

Regards,
Adrian.
Posted: November 24, 2009 7:14 AM

Andi,

The reason I don't want to do it on the Client Side is that I have 8 grids to potentially save.  That is 8 AJAX postbacks, and the "Save" button on my page must do a full page postback to save other controls also, so the whole process doesn't work so well.

Is there a plan to fix this bug anytime soon as it kinda seems pointless providing a Server Side method to perform the batch update if it isn't going to work.

A bettter workaround in this scenario would be to perform a Response.Redirect back to the same page as the last line of code executed in the postback.

Regards,

Adrian.

Posted: November 6, 2009 10:29 AM

James,

Thanks for this.  I've tried it out on the sample and there is a definite performance improvement.

I can't try it out on my actual application till next week as we've rolled back the controls for this release so I'll confirm if it solve my problem when I upgrade again next week.

Regards,

Adrian.

Posted: November 3, 2009 8:54 AM

James,

We are currently using IE 7 and not IE8.

How many styles exactly are we talking about having to override?  I assume this is a bug with the control since we can't use it out of the box with these performance issues?  Even using the standard out of the box styles we get this problem.

Currently one of our proposed workarounds is simply to ditch the Intersoft MenuBar completely until such times as there is a fix for this issue or we find another more suitable MenuBar that doesn't cause us these issues.

Regards,

Adrian.

Posted: November 3, 2009 7:58 AM

Handy,

I also think an issue I posted to the Devloper Network earlier in the year is possibly connected to this as the "IntegratedTo" property was causing me the same issue then.

WebToolBar Crashes IE [IS-F0A149C8-A17F-44F6-88F5-B90718928C4F]

Regards,

Adrian.

Posted: November 3, 2009 7:56 AM

Handy,

A combination of Intersoft controls appears to be causing the performance issue that we are experiencing, and I can confirm Shawn's issue.  The level of performance resulting is completely unacceptable for a web application hence our need to rollback to the previous version which is not ideal as there are many features in the new release that we need.

In fact Shawn's sample perfectly demonstrates the issue we are having.  The control that appears to be causing the issue is the WebMenuBar control, and more specifically the "IntegratedTo" property being set to none.

By simply changing the value of the "IntegratedTo" property to "DesktopManager", the page in the sample loads immediately, however with the value set to "None" it takes considerably longer, almost 30 seconds.

If I remove the "IntegratedTo" property altogether it also loads fast but I get JavaScript errors when I hover on the menu.  The error received is "this.CommandStyle is null or not an object".

Regards,

Adrian.

Handy,

From looking at your movie clip this is a definite increase in performance when the "IntegratedTo" property is set not set to a value "None".  Granted it may not be 1 minute but it certainly takes longer than with the "IntegratedTo" property set to None.

In out application using the WebMenuBar with this setting effectively kills out application and makes it unusable, but by simplying turning it off it is very fast.

Regards,

Adrian.

Posted: November 2, 2009 7:47 AM

James,

I did use this approach to preserve batch update changes and it worked fine. 

However in the end we had to revert back to the previous 2008 release of your controls as we were experience performance issues with the Grid in combination with WebPaneManager and MenuBar controls, which meant that the page response times were unacceptable.

Regards,

Adrian.

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