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

LabelFormat does not work

I'm trying to apply a string format using the LabelFormat property but no value seems to be valid. There is no example documentation for it as the documentation shows FormatString which no longer exists. 

If I enter LabelFormat="{0} days" it shows a syntax error in the editor. If I enter LabelFormat=" {0} days", this is accepted but it fails to build as it says there's no closing tag for it. If I enter LabelFormat="'{0} days'", this works but I get the text encapsulated with single quotes 

How I am supposed to prefix the value with text? 

1 Reply

MK Muneesh Kumar G Syncfusion Team August 7, 2019 06:57 AM UTC

Hi Kellsey, 
 
Greetings from Syncfusion. 
 
We have validated your query, you can resolve the reported issue by setting the label format as like the below code snippet 
 
Xaml 
 
 
 LabelFormat="{}{0} days" 
 
 
 C# 
 
 
  rangeSlider.LabelFormat = "{0} days"; 
 

We have created sample for this and please find the sample from below link
 
 
Sample Link: 
 
Please get back us, if you have any concern. 
 
Thanks, 
Muneesh Kumar G. 


Loader.
Live Chat Icon For mobile
Up arrow icon