This is a migrated thread and some comments may be shown as answers.

Auto-sizing and Auto-positioning of chunks...

2 Answers 58 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Par
Top achievements
Rank 1
Par asked on 27 Feb 2008, 04:56 PM
Hi,

I am writing an application where I restricting user access to certain components according to user's privilege by disabling or hiding the components. I am using ribbon bar and rad tab strip that contains different chunks and inside which there are rad button element. Now, the problem I am facing is when I hide buttons inside chuck or the whole chunk the chunks do not resize or relocate themselves. It shows empty spaces in between. AutoSize property is set to true and I have tried AutoSizeMode set to 'Auto' and 'WrapAroundChildren' but its still not working. Can you please help me out with this?

Thanks in advance for the help.

Par

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 28 Feb 2008, 08:23 AM
Hello Par,

You experience this behavior because you set the Visibility property to Hidden. This will hide the corresponding control, but its bounds will still be calculated in the layout logic. Therefore you see empty spaces between buttons or chunks.

You should set the Visibility property to Collapsed instead. This will not only hide the desired control, but its bounds will not be taken into account.

If you have additional questions, do not hesitate to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Par
Top achievements
Rank 1
answered on 28 Feb 2008, 02:15 PM
Hi Nikolay,

That solved the problem. Thank you very much for your help.

Par
Tags
RibbonBar
Asked by
Par
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Par
Top achievements
Rank 1
Share this question
or