- Home
- Forum
- ASP.NET Core - EJ 2
- Labelstyle Position Type showing error in VS
Labelstyle Position Type showing error in VS
Hi,
When assigning an <e-axis-labelstyle> position using EJ2 tag helpers VS (or possibly Resharper?!) flags the Position attribute as requiring the Position type from a different chart type.
This is (for example) using a CircularGauge, VS is reporting wanting types from LinearGauge
However.. this compiles and runs fine, but shows as an error in VS which to put it politely is a PITA
I have backpeddled to some example code from the docs (https://ej2aspnetcore.azurewebsites.net/aspnetcore/circulargauge/pointertypes#/bootstrap5) for testing ie;
@{
var labelFont = new Syncfusion.EJ2.CircularGauge.CircularGaugeFont { Size = "0px" };
}
<ejs-circulargauge id="container1" load="gaugeLoad" centerY="40%" style="height:250px;" background="transparent">
<e-circulargauge-axes>
<e-circulargauge-axis startAngle="270" endAngle="90" minimum="0" maximum="100" radius="90%">
<e-axis-linestyle width="3" color="#01aebe"></e-axis-linestyle>
<e-axis-labelstyle position="@Syncfusion.EJ2.CircularGauge.Position.Outside" font="labelFont">
</e-axis-labelstyle>
<e-axis-majorticks height="0" interval="100" color="transparent"></e-axis-majorticks>
<e-axis-minorticks height="0" width="0" color="transparent"></e-axis-minorticks>
<e-circulargauge-pointers>
<e-circulargauge-pointer type=Marker markerShape=InvertedTriangle value=80 radius="100%" markerHeight=15 markerWidth=15 color="rgb(0,171,169)"></e-circulargauge-pointer>
</e-circulargauge-pointers>
<e-circulargauge-annotations>
<e-circulargauge-annotation content="<div style='font-size:14px;margin-top:10px;'>Marker pointer</div>" angle="180" zIndex="1" radius="28%"></e-circulargauge-annotation>
</e-circulargauge-annotations>
</e-circulargauge-axis>
</e-circulargauge-axes>
</ejs-circulargauge>
which then produces this 'error'
I have tried a couple of older versions of EJ2 just in case its a recent issue, no difference. I am assuming that it is Resharper having issues with the type definitions?
Can anyone confirm or at least tell me I'm being an idiot!
Thanks
Hi Karl,
We are currently validating the reported scenario in the Circular
Gauge control using ReSharper software. However, we will analyze
and update you with further details on August 8,
2024.
Hi Karl,
We are still validating the reported scenario in the Circular
Gauge control using ReSharper software. However, we will analyze
and update you with further details on August 9,
2024.
Hi Karl,
When we tested the reported scenario with the Circular Gauge and ReSharper software, we found that the issue is not related to the Syncfusion package. It appears to be caused by ReSharper itself. Please try clearing the cache and restarting your application, as this may resolve the issue.
We recommend following the thread linked below to address this problem.
Please let us know if you need any further assistance.
- 3 Replies
- 2 Participants
-
KA Karl
- Aug 5, 2024 06:22 PM UTC
- Aug 9, 2024 03:45 PM UTC