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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LabelFormat does not work

Thread ID:

Created:

Updated:

Platform:

Replies:

146465 Aug 5,2019 09:35 AM UTC Aug 7,2019 06:57 AM UTC Xamarin.Android 1
loading
Tags: SfRangeSlider
kellsey
Asked On August 5, 2019 09:35 AM UTC

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? 

Muneesh Kumar G [Syncfusion]
Replied On 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. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon