I have a webpanel with a table and a listbar with items in it that I want the client to select one, when they don't I add text to a div on the submit button click. When the page reloads none of the listbar items are there, the table is there and the buttons but they are disabled. Help Please....
Once you add your controls to the WebListbar dynamically, you need to add the controls back to the WebListbar again at the same point in the page lifecycle, if you want these controls to function correctly. If you're adding the controls in response to a button click, it becomes very hard to add them again at the right time during subsequent postbacks. This behavior is common among ASP.NET controls, and isn't unique to WebListbar.
My suggestion is to not put the control in the WebListbar dynamically in the first place. Instead, put it in at design-time, with its Visible property set to false so that it doesn't render to your page's HTML output. In response to your button click, set the Visible property to true. That way, you'll know that your control exists when you need it.
they are added at design time. Nothing is dynamic. Also, all al my standard asp.net control are fine, only the infragistics controls apear to disabled. Webcombo won't drop down, webimagebutton disabled, etc. Attached is my html.
here is the stripped down code behind. It seems after the event the listbar is in the back.
ok, created a test app and copied the code to it and it works as expected. have attached 2 images maybe someone can gather what is going on from the images.
Has anyone found a solution to this? I am experiencing the same thing. One piece of behavior I have noticed (whether I load the groups and Items at design time or not)... When the page loads the items are not visible. If I select the group below (its expanded and hides the first group) then I select the first group again (first group expands) I can see the item. Hopefully this makes sense.