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

Can I autosize the width of an ItemTemplate?

2 Answers 17 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 09 Aug 2012, 02:49 PM
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 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 14 Aug 2012, 07:45 AM
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.
0
Javier
Top achievements
Rank 1
answered on 15 Aug 2012, 02:48 PM
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
Tags
Menu
Asked by
Javier
Top achievements
Rank 1
Answers by
Kate
Telerik team
Javier
Top achievements
Rank 1
Share this question
or