User Profile & Activity

A Yousif Member
Page
of 29

Hi Glenn,

We really need this bug fixed by the way even if we get the page working with WebFlyPostBackManager due to our infrastructure using update panels and we also leverage the AJAX page manager for pre/post page loads to accomplish tasks.  We can't redesign our entire infrastructure at this state of development and we really shouldn't need to.  Also, many of our custom controls use UpdatePanels along with our master pages and other components.  So it's critical the grid and menu bar be fixed to work in this type of infrastructure.  Thanks.

[EDIT] Glenn,

Would you please not mark any post as the answer and let me/customer/poster do that?  I'd appreciate it if you can unmark what is currently the answer to this thread as it is not.  Please don't jump the gun on what may be the answer until the poster has confirmed it.  Thanks much.

The attached file seems to be corrupt.  Would you please reattach another one?  Thanks.

 

Also, here's an exerpt from the documentation for WebFlyPostBackManager.  Could these types be supported by FunctionParameter as well?  I need to know what to pass it for sure for boolean, i.e., "bool" or "boolean" please.

    Here are the list of simple data types supported by WebFlyPostBackManager :

    • string
    • int
    • decimal
    • long
    • float
    • bool
    • DateTime
    • array[]

    Advanced Data Types that is supported by WebFlyPostBackManager are :

    • DataSet
    • DataTable
    • Custom Object that can be serialized

So which one of these would be correct?

ISNet.WebUI.FunctionParameter[] parms = new ISNet.WebUI.FunctionParameter[2];
parms[0] = new ISNet.WebUI.FunctionParameter(containerId,"bool");
...

or

ISNet.WebUI.FunctionParameter[] parms = new ISNet.WebUI.FunctionParameter[2];
parms[0] = new ISNet.WebUI.FunctionParameter(containerId,"boolean");
...

Thanks.

Glenn,

I've unfortunately have been unable to get this working successfully under our environment.  I've modified your example to more closely resemble our environment.  You'll be able to duplicate the issue using the attached.  Please note the following:

  • If you first click the Show button, it works, however it does NOT affect the update panels on the page.  Not good as it needs to update the button states.  You'll note that AFTER you click Show, it stays enabled and Hide is still disabled along with the check box state.
  • Using the check box, which is how we do things, recreates the problem as we experience it.  So if you can get it working with the check box, that's what we need.
  • AFTER using the check box, the buttons will now also produce the errors along with correctly updating the update panels on the page

 

Based on my test, you could try using WebFlyPostBackManger for a workaround in such scenario. Attached is the test page for the scenario you described using WebFlyPostBackManger. 

In my test, WebMenuBar will produce a JS error "Unspecified Error" using AJAX UpdatePanel if we try to navigate to anotehr page.

Glenn, for the FunctionParameter object, are the parameter types documented anywhere?  I know the examples show "string" but what other values are valid, i.e., "bool" or "boolean" and so on?   Would appreciate the full list of acceptable types.

Perfect, thanks Glenn.

Hi Glenn,

Okay, I'll give this a try and see how it works.  And I get similar errors on the WebMenuBar too, i.e., on navigating away is when it occurs.  Any idea on that one for a solution/workaround right now?

We use the WebMenuBar and WebGrid together which works out real nice when they function so hopefully we can get both figured out.  I'll keep you posted on my results with the grid.

We really appreciate it Glenn.  Thank you.

 

BTW, would you update your test that you were able to duplicate by adding a WebMenuBar to the panel you show/hide?  Put one or two menu items that will post back the panel from the menu bar object.  If the post back is fine, try to navigate away from the page.  I'm curious to see if you get any errors when doing this.

This is bascially what happens with our implementation of the WebMenuBar object and since you already have an example of the grid.  I'll get a thread posted on that one today if time allows.  Thank you.

Thanks Glenn.  Please note that this is a critical issue for us and we really need it fixed quickly as we're looking to release our product soon and this is crashing one of our major pages.  If you can find out if there's a workaround that would be great.

I also ran into a similar problem with the WebMenuBar since we hide it along with the grid, but I'll post that in another post once I have the info for it.

I wanted to make a correction to the flash video.  The only reason the error did not occur on the original Show is because I was not configuring the grid correctly.  That was my bad.  I had a conditional that was not initially setting the required properties.

Once I fixed this, the error now occurs EVERY TIME the grid is Shown.

Thanks Glenn.  By the way, I did get what I needed working per your suggestion.  It tricky though, because disabling all the validators meant we have to reenable them after the partial-page post back.

Note that you can't just reenable them after the partial-page postback completes because enabling also activates them, i.e., their respective visual message all display.  You basically have to assign a client-side handler that reenables them to any button that requires the page validation to occur.

This is why we really need the WebMenuBar control to use a property like CausesValidation so we don't have to have such a messy workaround.  I hope you can forward this to your development team please.  Thanks again.

All times are GMT -5. The time now is 6:47 AM.
Previous Next