Sunday, August 02, 2009

SilverLight Organization Chart


There was an Organization Chart in the scope of one of the projects I’m managing, and it came to me the idea to make it in SilverLight the same way in http://svdemo02.ilog.com/SilverlightOrgChart/OrgChart.html


And here are the main points to make it out:

1. Working with Canvas
2. Drawing Lines and Boxes
3. Using ScrollViewer
4. Using Slider (for the scale)
5. Using SilverLight UserControls (the node element with the person information)
6. Reading data from XML files and web services
7. Some Calculations

And isA I’ll describe these main ideas in details during the coming days.

Update: for the source code go to http://silverorgchart.codeplex.com/

14 comments:

Skot said...

Hi Osama

Looks good - would it be possible for you to post some sample code, please?

Thanks
Scott

Osama Mourad said...

Thanks Skot, actually there is code samples here http://omourad.blogspot.com/2009/10/silverlight-organization-chart-part-1.html

http://omourad.blogspot.com/2009/11/silverlight-organization-chart-part-2.html

David said...

Osama,

Very nice looking chart. Would you be able to post the complete code to do this?

Thanks,
David

आज said...

Can Its Orientation be Left To Right?

Skot said...

Hi Osama

thanks for posting the source code (think this was sometime in 2010, right?).

I've only just come back to it now and it works great. I've added a WCF service to retrieve the data directly from Active Directory and added a couple of UI updates (search, expand, collapse, scaling). If you'd be interested in any of these updates, please let me know.

Shokran
Scott

आज said...

Hey Skot ,
Its great , Could you please share your updates ..?
I was Trying Search but failed ..
my Id is mca2004.manoj@gmail.com....It will be great Help from you...

Anonymous said...

Your code did wonders for me. The chart is very nice. it adjusts itself properly in the window depending upon number of nodes. very well done.
thanks for sharing.

Nachiket, Goa

Dekdok said...
This comment has been removed by the author.
Dekdok said...
This comment has been removed by the author.
Dekdok said...

What if I want to change the double click handle into single click? Which part should I change? Thanks

RamySamir said...

Many Thanks Osama that help me in my job really many thanks

आज said...

Scot , Kindly do share Collapse , Expand , search code .. I will be very thankful to you

Evan said...

I dont use Microsoft products. Is there an alternative organization chart drawing method for net-beans or other opensource software that I can use?

Osama Mourad said...

You can use HTML5 to build this.

Blessings of working on large real-world projects

Working on large real-world projects can offer numerous blessings and benefits, both professionally and personally. Here are some of the key...