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

3 posts, 1 answers
  1. Par
    Par avatar
    11 posts
    Member since:
    Feb 2008

    Posted 27 Feb 2008 Link to this post

    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. Answer
    Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 28 Feb 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Par
    Par avatar
    11 posts
    Member since:
    Feb 2008

    Posted 28 Feb 2008 Link to this post

    Hi Nikolay,

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

    Par
Back to Top