We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TreeView Control asembly reference problem

Hi,

When I am using treeview in MVC 3.0 Razor, It shows following error.
-------------------------
Syncfusion.Mvc.Shared.ComponentFactory' does not contain a definition for 'TreeView' and no extension method 'TreeView' accepting a first argument of type 'Syncfusion.Mvc.Shared.ComponentFactory' could be found (are you missing a using directive or an assembly reference?)
-------------------------

My Code is as follows:

--------------------------
@{Html.Syncfusion().TreeView("Mail_TreeVeiw", "MailItems")
.AllowEdit(false).Skin(Skins.Office2007Black)
.ShowLines(false).Width(324).Height(150);}
---------------------------

Can anyone please help me what to do in this?

Thank You..



1 Reply

VR Varalakshmi R.S Syncfusion Team August 5, 2011 08:36 AM UTC

Hi Mehta,

We are really sorry for the delay in getting back to you.

The reported error occurs if “Suncfusion.Tools.Mvc” assembly was not referred. The following assemblies must be referred for Tools MVC control.
The assemblies are,
•Syncfusion.core
•Syncfusion.Shared.Mvc
•Syncfusion.Tools.Mvc

We have also prepared a simple sample to exhibit this behavior and the sample can be downloaded from the following link,
SampleTools_V1-1966065315.zip

We also suggest you to refer the following documentation to know more information on adding reference to the Tools MVC control.
http://help.syncfusion.com/ug_92/User%20Interface/ASP.NET%20MVC/Tools/Documents/addingreferenceassemblies.htm

Kindly try the sample and let us know if it helps.

Regards,
Varalakshmi R.S


Loader.
Live Chat Icon For mobile
Up arrow icon