Can I autosize the width of an ItemTemplate?

3 posts, 0 answers
  1. Javier
    Javier avatar
    35 posts
    Member since:
    Aug 2011

    Posted 09 Aug 2012 Link to this post

    I have a menu with a checkboxlist inside of an ItemTemplate.  When the menu expands, the user can check whatever boxes they want and close the menu.

    But the checkbox list will be created dynamically so I want to know if I can get the width of the template to grow with the size of it's contents.

    Thanks
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 14 Aug 2012 Link to this post

    Hi Javier,

    One approach that I can think of is that you add a div element where you can place any desired control. Then you can assign the desired styles like width, height and any other that you need to the div element.

    All the best,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Javier
    Javier avatar
    35 posts
    Member since:
    Aug 2011

    Posted 15 Aug 2012 Link to this post

    Thanks,

    I was looking more for a solution where I wouldn't have to set the width of the div, but that the width would grow with the contents. 
    Although I ended up going in another direction anyway.

    Thanks for your help
Back to Top