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

Change RadTreeNode's width to window's width and clickable

4 Answers 125 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 13 Jul 2013, 09:03 AM
Hello,

I am using telerik version 2012.1.515.35 with ASP.NET 3.5, C# 2008.

I have a RadTreeview on ASPX page in side a DIV.

The requirement is make RadTreeNode's width 100% of DIV width and also the node should be click-able (can be able to fire client side events).

I tried to set the width of node in NodeDataBound event but the result is nothing.

I also have tried to set width of class .rtIn to 100% but it is not changing the result.

Please see my attached screen-shot.

Any solution?

Thanks

4 Answers, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 17 Jul 2013, 10:33 AM
Hi Devendra,

 The element with a css class .rtIn is an inline element so to set the custom width, it is necessary to make it an inline-block element. Please, try to apply a following stylesheet to your project

html .RadTreeView_Default .rtIn {
    width: 97%
}
Regards,
Magdalena
Telerik
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 the blog feed now.
0
Dev
Top achievements
Rank 1
answered on 19 Jul 2013, 06:10 AM

Hello Magdalena,

I tried using

html .RadTreeView_Default .rtIn {
    width: 97%;
}

But it is still not working.

Can you provide me any sample project? Or any other working solution for the same?

Thanks,
Dev

0
Dev
Top achievements
Rank 1
answered on 19 Jul 2013, 08:41 AM
Hello Megdalena,

I have resolved it by using


html .RadTreeView_Default .rtIn {
    width: 97%;
     display:inline-block;
}

Thanks for your kind support. :)

Thank you,
Dev
0
Magdalena
Telerik team
answered on 22 Jul 2013, 09:34 AM
Hi Devendra,

I am glad that you have resolved the problem. 
Do not hesitate to contact me if you have other questions.

Regards,
Magdalena
Telerik
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 the blog feed now.
Tags
TreeView
Asked by
Dev
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Dev
Top achievements
Rank 1
Share this question
or