Hi,
I'm trying to create an Arc Gauge with a centerTemplate
that won't use "value". The centerTemplate is going to display
percentage of RAM and the actual RAM used (see attached image).
If I were to only show the percentage, it wouldn't be any problem.
Currently, my code for the Arc Gauge looks like this:
@(Html.Kendo().ArcGauge()
.Name(
"MemoryBar"
)
.Value(Model.CurrentMemoryPercent)
.Scale(x => x.Min(0).Max(100))
.CenterTemplate(
string
.Format(
"{0}% ({1})"
, Model.CurrentMemoryPercent, size))
)
That just creates a static CenterTemplate, though, and none of the variables are updated unless I refresh the page.
I can kinda work around this by using setoptions, but that redraws the entire gauge and forces me to disable transitions, which I don't want to.
Am I missing something completely, or can't this be done properly?
Thanks for any help.