Telerik Forums
UI for Xamarin Forum
3 answers
180 views

Hi,

I am trying to display vertical axis labels as formatted. I want to display numbers ( thounds, billions and millions ) like as 12K, 2M, 3B. I have written a number converter. But the problem is; which property should be used for binding ?

There is not a property like as Label . So, what do you suggest me to apply my converter for labelformat ??

  <telerikChart:RadCartesianChart.VerticalAxis>
                  <telerikChart:NumericalAxis x:Name="VerticalAxis"
                                              LabelFormat="{Binding ????, Converter={StaticResource NumberConverter}}"
                                              BindingContext="{TemplateBinding BindingContext}"
                                              Minimum="{Binding MinValue}"
                                              Maximum="{Binding MaxValue}"/>
  </telerikChart:RadCartesianChart.VerticalAxis>

Thanks in advance,

Ves
Telerik team
 answered on 28 Nov 2016
1 answer
86 views

Hi Support:

We need to hide the weekends columns from the calendar to show only the business days.  

Would be possible to do this with the Telerik Calendar for Xamarin Forms ?

Thanks in advanced

 

David

 

Pavel R. Pavlov
Telerik team
 answered on 28 Nov 2016
1 answer
257 views

This question relates more to general Xamarin forms techniques but the need arose because, as far as I can determine the Telerik radchart Xamarin UI component does  not provide any reserved space for a label for the naming of the x or y axes.

I realise that the x and y values along the tick marks of the axes can be labelled fairly easily.

However, what I wish to do is to provide a supplementary label on both vertical and horizontal axes to represent what those axes represent , eg Sales, Fuel volume, etc.

Where I have come to a roadblock is that I have failed to render a vertical label where the text showing the caption for the vertical axis is shown vertically.

I am trying to achieve this label by using a Xamarin Label in a left most Grid column and using the Rotate="90" attribute.

Here is the XAML fragment to illustrate my layout and what I am trying to achieve. Screenshot also supplied to show the clipping of the vertically rotated "label"

<Grid IsClippedToBounds="False">

<Grid.RowDefinitions>

<RowDefinition Height="auto"/><RowDefinition /></Grid.RowDefinitions>

<Grid.ColumnDefinitions><ColumnDefinition Width="20">

</ColumnDefinition>

<ColumnDefinition Width="auto" />

</Grid.ColumnDefinitions>

<Label Grid.Column="1" VerticalOptions="Center" Text="{Binding SelectedSite.SiteName}" FontSize="32" FontAttributes="Bold" TextColor="#b29565" HorizontalOptions="CenterAndExpand"/>

<Label LineBreakMode="NoWrap" Grid.Row="1" Grid.Column="0" Text="ThislongtextToShowClippingOccurs" VerticalOptions="CenterAndExpand" Rotation="90"/>

<telerikChart:RadCartesianChart Grid.Row="1" Grid.Column="1" VerticalOptions="CenterAndExpand" Palette="{x:Static local:CustomPalettes.CustomDark}" x:Name="chartVal" behave:TelerikChartBehaviour.Command="{Binding SelectionChange}" >

 

My issue is that the text within the label appears to clip to the originally specified column width despite the fact that the text is rotated by 90 degrees where it could potentially occupy a vertical space which extends the full vertical height of the bar chart.

I've tried various strategies to defeat this clipping.

I've set the "isClippedToBounds" attribute to false on the parent layout (Grid).

I've tried various VerticalOptions such as CenterAndExpand, StartAndExpand, Fill, FillAndExpand.

The Fill variants actually result in the label moving outside of the left hand grid column and it becomes rendered in the center of the barchart (with bar chart stacked above it) so I've preferred to use StartAndExpand or CenterAndExpand.

I've tried putting a WidthRequest on the Label which gets rotated into position to see if I can force the label to escape outside of it's original horizontal bounds.

Has anyone managed to render a vertical caption adjacent to a chart (or component) of any type ?

Pavel R. Pavlov
Telerik team
 answered on 24 Nov 2016
1 answer
161 views

Hi all,

Need some help with binding.

I have a page with following xaml:

 <Entry x:Name="ListFilter" />

....

<dataControls:RadListView x:Name="ItemsList" ItemsSource ="{Binding ItemsList}" >

...

     <dataControls:RadListView.FilterDescriptors>
              <listView:DelegateFilterDescriptor Filter="{Binding ....}"></listView:DelegateFilterDescriptor>
     </dataControls:RadListView.FilterDescriptors>

....

 

How could I write a binding for Filter (DelegateFilterDescriptor's property) to execute the contains predicate in xaml with parameter Entry's Text property. Equivalent to code behind expression:

ItemsList.FilterDescriptors.Add(new DelegateFilterDescriptor {Filter = (n)=>((Item)n).Name.Contains(ItemsList.Text)});

 

Thank you in advance.

Alexei

Rosy Topchiyska
Telerik team
 answered on 22 Nov 2016
1 answer
32 views
By default I can't click on Sat or Sun while using an iPhone however on an iPad I can. Is there any reason why? I'm using the latest controls version and iOS > 9
Rosy Topchiyska
Telerik team
 answered on 18 Nov 2016
3 answers
232 views
I've been pulling my hair out trying to successfully blend my Xamarin / MvvmCross app with Telerik UI for Xamarin. Can anyone tell me if this is possible? Are there any examples of how a successful blend of these would work?
Lance
Top achievements
Rank 1
 answered on 17 Nov 2016
5 answers
165 views
Hi!

 

with the latest update i got a error from Telerik.Xamarin.Android.Input.

 

No resource found that matches the given name (at 'style' with value '@style/Widget.AppCompat.Spinner.Underlined').

 D:\.........\obj\Debug\__library_projects__\Telerik.Xamarin.Android.Input\library_project_imports\res\layout\data_form_spinner_editor.xml

 

Can you give me a hint how to solve this issue?

Thanks

 

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 14 Nov 2016
2 answers
98 views

I currently have licenses for UI for iOS *and* UI for Android.  Since I purchased these, Telerik has published a SKU for UI for Xamarin.  

I would like to pickup Xamarin, and use the UI controls as well -- but I still have need to developm/maintain Swift and Java apps as well.

Should I be licensing UI for Xamarin instead?  Would that give me what i need for Xamarin, while still maintaining ability to use native Swift and native Java on the respective platforms?

 

Robert
Top achievements
Rank 1
 answered on 11 Nov 2016
12 answers
359 views
I need to specify labels for my PieChart.  As of right now it seems this is not possible.

Would it be possible to create a legend from the rendered chart if we cannot set a specific label?

Ves
Telerik team
 answered on 10 Nov 2016
1 answer
197 views

I'm trying to do a long press on a calendar day cell to push to another activity. So far, I have the long click working:

RadCalendarView calendarControl;
calendarControl.SetOnLongClickListener(new SelectedDateLongPress());
 
class SelectedDateLongPress : Java.Lang.Object, RadCalendarView.IOnLongClickListener
        {
            public bool OnLongClick(View view)
            {
                RadCalendarView cal = (RadCalendarView)view;
                cal.OnSelectedDatesChangedListener = new SelectedDateChangedListener();
                Alert_Handler.ShowErrorAlert("Long Press", "Long Press Alert", view.Context, ApplicationVariables.MainActivity);
 
                return false;
            }
        }

 

How do I get the new date on the cell pressed? This seems to fire before the selected date is changed

Deyan
Telerik team
 answered on 09 Nov 2016
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?