Link to home
Start Free TrialLog in
Avatar of guessdip
guessdip

asked on

Multicolumn Treeview for Webpart for wss 3.0??

Hii All,

  i have one site collection and for reporting i need to make some custom webpart in c# and i use vs 2008 and i develop Webpart for sharepoint. I need to display hierarchical data so i have decided Treeview control , i use three layer  but i have to display five column in one treenode so i used string = column1 + column2 +column3 + column4.. But it look not good, user can not idetify column easily, i need to dispaly in tabular format.  

So can you please give me some suggetion about it..
Avatar of vora_bhaumik
vora_bhaumik
Flag of India image

I would consider using Infragistics controls to do that, they have a nice design and are fast:

http://www.infragistics.com/dotnet/netadvantage/aspnet/webtree.aspx#Overview
Avatar of JJBrooks13
JJBrooks13

Take a look at the GridViewTree here: www.DigitalTools.com/GVT.aspx

GVT.jpg
Avatar of guessdip

ASKER

MSShadow : I tried to download but i am not able to download free trial. Can i use this control for Web Part?? in my case ListA is connected with ListB  and ListB with ListC...

vora_bhaumik : i would like to use this treeview for reporting perpose. i have to fetch report from four to five list.so i think i can not use bamboo.
I already did something for it look not good, i am aatching jpg file. In my trre all child node and parent node has more column together.

in treenode can i use table format??

Tree.JPG
You could approach it adiferent way and just use a fixed width font such as Courier and format each field to be a fixed length. That way all columns as you have them already, would line up perfectly.

That's certainly the easiest and quickest way of achieving what you want.
Hiii, How can i format single column ?? Can you give me any command?? i used String.RightPad but it does not work.
ASKER CERTIFIED SOLUTION
Avatar of declanmcd
declanmcd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hii,
 Thanks for helping me.. I tried your same code and i used Treenode.Text = _output.Replace(" ", " "); Becase i can not use Lable1.text in Treenode. it works fine but still we are getting space formating problem. i am attaching output..

I think when column has less character then specify lenght then we can get problem with space.. , i am trying to solve , i will let you know if i solve this problem. and let me know if i made any mistake..

Once again thank you.
output.bmp
Hi,
 i found that if i display lable then it looks whatever i need, but when i display string then it looks not good. i also tried to change fontname of treeview..
It just looks like your values for the length you are using are not big enough. That is what would normally cause the lines to look like what you have in your image. Try increasing the length of the strings and see if that makes a difference.
Post your code and let us see.
Hiii,
 I got the solution .. i used <Font face > tag to change fontname in a string and it works fine.So i will close this question , for knowledge i am playing with code, if we mention lenght = 15 and if our column has lenght 20 then i would like to display five character in new line..

Thank You ..
So it's like I suggested?
Thank you Dude..