Hi
I cant seem to get the charts working in particular I can't get the references in the Views.
I've added a reference to the MVC3 Infragistics.Web.Mvc dll and can happily reference it from inside a controller.
However when I attempt to actually get something in a View using the Html helpers I get a message that I need to add a reference
I've tried putting the below in my view
@using Infragistics.Web.Mvc
And the below in my web.config:
<
pages>
<namespaces>
add namespace="Infragistics.Web.Mvc"/>
</
namespaces>
No joy I've tried closing/cleaning, reopening the solution and various other combinations to no avail
Any ideas?
Hello Barney,
Thank you for posting in our community.
Would it be possible to send me a sample solution. Also did you try this with MVC3 project.
I would like to review tour sample and investigate this further.
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hi there
I seem to get the issues in both mvc3/4 with both vs 2011 (preview) and vs 2010
Obviously something I'm missing something
I'll download the adventureworks db so I can see if i can get the sample working.
In the meantime heres a link to an mvc 4 solution http://www.bluetoad.net/mvccharts.zip
I must be doing something wrong but i cant' see what as the samples load.
Really could do with an answer
Barney
Hi Team,
I'm currently facing the same issue and tried all the suggested solution but dont see any working solution.
Can you guys help me to reslove the issue ASAP. It looks the infragictics has an issue with the DLL using in MVC views.
Hi Barney,
Can you update us with the information required. This will be a good start point for us in order to investigate this faster.
Thank you.
if you do a right click "view source" on the rendered page, could you attach the source to a reply?
Ok next problem the chart doesn't render.
No errors, if I change the valuemember path to something invalid i get an error but other than that not a tweet.
I've used the stuff from the samples and it should work I believe can any one help
@
Infragistics.Web.Mvc
@model System.Collections.ObjectModel.
>
@{
Html.Infragistics().PieChart(Model.AsQueryable().Take(5))
.ID(
)
.Width(
.Height(
.ValueMemberPath(data => data.Budget)
.LabelMemberPath(data => data.Label)
.ExplodedSlices(
.RadiusFactor(.8)
.Legend(leg => leg.ID(
.Item))
.AllowSliceExplosion(
.DataBind().Render();
}
Ok make sure you set copy local to true. that appears to fix it.
If you move the project you will have to do that again