This question is locked. New answers and comments are not allowed.
Hello,
I have a radpanelbar with 10 RadPanelBarGroupElements where i want to remove some RadPanelBarGroupElements at runtime. I use this:
this.radPanelBar.Items.Remove(element); // element is a RadPanelBarGroupElement
Inside each RadPanelBarGroupElement there is a radgridview.
this shows up fine, but when the application exits, i get an argumentexception ("parameter is not valid")
the stacktrace shows this: at System.Drawing.Drawing2D.Matrix.Clone()
if i do this instead:
element.Visibility = ElementVisibility.Hidden;
the error doesn't happen, and the element is hidden but still takes up space inside the panelbar (i don't want that).
What is the best way to remove items from a radpanelbar?
i used version 6.1.0.0
Walter
I have a radpanelbar with 10 RadPanelBarGroupElements where i want to remove some RadPanelBarGroupElements at runtime. I use this:
this.radPanelBar.Items.Remove(element); // element is a RadPanelBarGroupElement
Inside each RadPanelBarGroupElement there is a radgridview.
this shows up fine, but when the application exits, i get an argumentexception ("parameter is not valid")
the stacktrace shows this: at System.Drawing.Drawing2D.Matrix.Clone()
if i do this instead:
element.Visibility = ElementVisibility.Hidden;
the error doesn't happen, and the element is hidden but still takes up space inside the panelbar (i don't want that).
What is the best way to remove items from a radpanelbar?
i used version 6.1.0.0
Walter