Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1365
Programmatically added ExplorerBarItem problem
posted

Dear Infragistics experts,

I have a WebExplorerBar on my MasterPage with most of it's items set via markup. But I programmatically add a few items to a certain ExplorerBarItem in code. This is done in the Load event of the MasterPage.

When you navigate from page to page there's not a problem. But one page has a button. When this button is clicked a postback is happening (ofcourse) and this is when the problem occurs.

Apparantly the WebExplorerBar is using ViewState, but it lost information on the items which were added in code. This 'causes an 'object or reference not set' error.

What am I doing wrong?

Parents
No Data
Reply
  • 1365
    posted

    Update:

    I've even put everything on 1 single Page in a brand new test solution. A WebExplorerBar (with some items via markup), a ScriptManager and a Button. In the load event I add 2 items when it's not a postback. When I run the solution it works fine. When the button is clicked I get an error. I'm starting to think it's not my fault, to be honest.

    Would someone from Infragistics care to take a look at this?

Children