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?