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.
Unfortunately, activation email could not send to your email. Please try again.

Syncfusion helper for MVC

Thread ID:

Created:

Updated:

Platform:

Replies:

97745 Jan 4,2011 10:13 AM Jun 21,2011 03:23 AM General Discussion 11
loading
Tags: General Discussion
Fernando Castro
Asked On January 4, 2011 10:13 AM

Hello,

I'm new to Syncfusion, and need to implement a Schedule control. By reading the documentation, it says that I need to add the following code to register the StyleManager, but when I place the code to my View page the "Syncfusion()" helper method is not recognized.

Error Message:
'System.Web.Mvc.HtmlHelper>' does not contain a definition for 'Syncfusion' and no extension method 'Syncfusion' accepting a first argument of type 'System.Web.Mvc.HtmlHelper>' could be found (are you missing a using directive or an assembly reference?)


Sample Code:
<%=Html.Syncfusion().StyleManager()
.Register(styleSheet =>
{
styleSheet.Add(ComponentType.Schedule);
}); %>


Do I need to add an additional assebly reference? I've already added the Syncfusion.Code, Syncfusion.Shared.MVC, Syncfusion.Schedule.MVC assemblies.

Thank you for your help.



Krishnaraj D [Syncfusion]
Replied On January 7, 2011 03:58 AM

Hi Fernando Castro,

Thanks for your interest in Syncfusion Products.

The Style manager has been introduced in 8.4.0.1 version, so it will not be supported in lower versions.

You need to configure your web.config file properly to get the intellisense for "Syncfusion()" helper method.

Follow the below steps to configure it properly.

1.Add the following assemblies in the Web.config page under the tag: Syncfusion.Core, Syncfusion.Schedule.Mvc, Syncfusion.Linq.Base and Syncfusion.Shared.Mvc.




…………
…………











2. Add the Syncfusion.Mvc.Schedule, Syncfusion.Mvc.Shared and Syncfusion.Mvc.Tools namespaces under the tag.





……….
……….







3. Register the handlers under , tags in the web.config file by using the following code.


………..
………..






……..

…….
…….






Note:

If .Net framework version is 3.5, then assembly version is 8.403.0.10.
If .Net framework version is 4.0, then assembly version is 8.404.0.10.


Please refer our online documentation in the below link to configure your web.config file properly.

http://help.syncfusion.com/ug_84/User%20Interface/ASP.NET%20MVC/Schedule/default.htm?turl=Documents%2Faddingcodestothewebconfigfile.htm

Refer the below link to create a simple schedule control.

http://help.syncfusion.com/ug_84/User%20Interface/ASP.NET%20MVC/Schedule/default.htm?turl=Documents%2Fcreatingtheschedulecontrolusingviewcustomization.htm


Please let us know if you have any queries.

Regards,
Krishnaraj D





Nick Eposito
Replied On January 27, 2011 09:59 AM

Hello,

I am getting the same error as above. However, I am using ASP.NET MVC 3 with this project. I have gone through the web.config multiple times and configured it how you specify. Should this work for ASP.NET MVC 3?

Sample Code:
@Html.Syncfusion().StyleManager().Register(styleSheet => {styleSheet.Add(ComponentType.Schedule);});

Thanks.


Krishnaraj D [Syncfusion]
Replied On January 31, 2011 09:00 AM

Hi Fernando Castro,

We don't have support for MVC3 in our Essential studio version 8.4.0.10. We have implemented MVC3 support for all our MVC controls and it will be available in our upcoming volume1 2011 release which is scheduled in the first week of February. You can check our website periodically to know about our release information.

Please let us know if you have any queries.

Regards,
Krishnaraj D



Greg Clouston
Replied On February 15, 2011 08:34 AM

Is there any documentation available to demonstrate how to implement the 9.1 controls in a MVC 3 view?


Krishnaraj D [Syncfusion]
Replied On February 22, 2011 09:07 AM

Hi Greg Clouston,

We have prepared a document which demonstrate the implementation of schedule control in MVC3 view.

Please find the document from the below link.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Document-942249026.zip

In the similar way, you can implement all other controls in MVC3.

Please let us Know if you have any queries.

Regards,
Krishnaraj D


Philip Stanton
Replied On June 16, 2011 05:25 AM

Hi,
I followed these steps (but using MVC grid) in VS2010 MVC3. It gives errors:

'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Syncfusion' and no extension method 'Syncfusion' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)

I have used 4.0.30319 (Runtime Version), 9.204.0.138 (Assembly Versions) and 9.2.0.138 (Essential Studio Version) and none of these worked either.

Thank You
Phil



Brian Parris
Replied On June 16, 2011 02:53 PM

I'm having the exact same issue as Philip posted this morning. Someone from Syncfusion please help!


Brian Parris
Replied On June 16, 2011 04:20 PM

I solved this by putting @using Syncfusion.Mvc.Shared at the top of _Layout.cshtml


Brian Parris
Replied On June 17, 2011 09:13 AM

That wasn't really the solution either. Check the properties of the Syncfusion assemblies added to References. Check the path to the assembly and make sure it's not looking at the 3.5 folder. That was my issue. I didn't pick the 4.0 assemblies when I added references. Thus making my version in web.config wrong too.


Brian Parris
Replied On June 17, 2011 09:13 AM

That wasn't really the solution either. Check the properties of the Syncfusion assemblies added to References. Check the path to the assembly and make sure it's not looking at the 3.5 folder. That was my issue. I didn't pick the 4.0 assemblies when I added references. Thus making my version in web.config wrong too.


Eswari S [Syncfusion]
Replied On June 21, 2011 03:23 AM

Hi Brian,

Thanks for your interest with Syncfusion products.

We have provided response to your query in the incident 81662.

Could you please follow up with the incident.

Please let us know if you have any queries.

Regards,
Eswari.S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;