I think we have finally been able to track down this bug, it has to do with the visible=true setting.
We have a page with a RadGrid containing a Select button, which then executes:
protected void radGridMessage_SelectedIndexChanged(object sender, EventArgs e)
radPanelBarMessageDetails.Visible = true;
which is supposed to show the radPanelBarMessageDetails
which contains a DetailView (for testing purposes, we've added a static label as well just to make sure it always has content). Every second time we click the Select button, the radPanelBarMessageDetails
will be collapsed, despite the PreventCollapse = true.
Normally, the radPanelBarMessageDetails
would have visible=false by default (to not show a message until the user has clicked a message), that is why the SelectedIndexChange set it to vissible. However, if we just change the visible to true instead of false in the markup, it will work as it should every time
Summary, with visible=false, the PreventCollapse property does not seem to work as it should.
With visible=false for radPanelBarMessageDetails
With visible=truefor radPanelBarMessageDetails in markup: