Telerik Forums
UI for Xamarin Forum
1 answer
96 views

I have a cell that's Date property is claiming that {2017-10-15 23:00:00 +0000} is the 16th of October. It's close!

Is this something to do with time zones?

Nikolay
Telerik team
 answered on 24 Oct 2017
2 answers
101 views

Howdy

I have 14 pairs of properties (Frequency and Amount) across 3 Groups. The Frequency properties use PickerEditors bound to a list of options (Weekly, Fortnightly, & Monthly) supplied via a PropertyDataSourceProvider.  Everything works fine while the DataForm does not have a GroupLayoutDefinition defined (so 28 controls, one underneath the other), but as soon as I set the GroupLayoutDefinition to DataFormGroupGridLayoutDefinition (2 columns, set using Position and ColumnPosition), the PickerEditors start behaving very strangely.  The first selection works okay, but subsequent pickers do not change their value... until I use a picker in a different Group, then the previous selections I made all of a sudden change to what I selected for them.

Has anyone else experienced anything like this?

I don't know if this is relevant but my properties are supplied dynamically using IEntityProperty and PropertyMetadataProviderBase.

Cheers
Craig

Nasko
Telerik team
 answered on 23 Oct 2017
1 answer
107 views
Is is possible to set different colors to segments?
Stefan Nenchev
Telerik team
 answered on 20 Oct 2017
2 answers
134 views

I want to set a delegate on a calendar in an iOS custom renderer.

I have tried this...

 

public class CustomCalendarRenderer : CalendarRenderer
{
    protected override void OnElementChanged(ElementChangedEventArgs<RadCalendar> e)
    {
        base.OnElementChanged(e);
 
        var myCalendarDelegate = new MyCalendarDelegate();
 
        Control.Delegate = myCalendarDelegate;
    }
}

 

But it throws a null reference exception on the final line.

Is there a better place to set it?

Ian
Top achievements
Rank 1
 answered on 18 Oct 2017
3 answers
110 views

The calendar control appears when I run my app on my iPhone device, but in the simulator, it is invisible, despite the control existing when breaking in the debugger.

What am I missing?

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Oct 2017
1 answer
183 views

hi

In radListview i enable swipe feature and implement ItemSwipeContentTemplate and add button to it.

When i swipe item app crashes, if i use Label it is not crashing. I am binding data template even in page xaml it crashes. my button is without image just text.

Is there any work arround to have Xamarin.Button with image and text on it ?

p.s. If i have button with image only it works, but output window error is there, but app is not crashing

Output window:

 [0:] FileImageSourceHandler: Could not find image or image file was invalid: File: 
An unhandled exception occured.

Code

01.<DataTemplate x:Key="CommonItemSwipeTemplate">
02.               <Grid Margin="0"
03.                 Padding="0"
04.                 ColumnSpacing="0"
05.                 RowSpacing="0">
06.                   <Grid.ColumnDefinitions>
07.                       <ColumnDefinition Width="*" />
08.                       <ColumnDefinition Width="70" />
09.                   </Grid.ColumnDefinitions>
10.                   
11.                   <Button Grid.Column="1"
12.                                BackgroundColor="Red"
13.                                HorizontalTextAlignment="Center"
14.                                Text="delete"                                
15.                                TextColor="White"
16.                                VerticalTextAlignment="Center"
17.                                WidthRequest="70" />
21.               </Grid>
22.           </DataTemplate>
Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Oct 2017
1 answer
464 views

Hi there, I use an radListView in my master page like a menu.

<StackLayout x:Name="MasterStack" BackgroundColor="{StaticResource SideBgColor}" VerticalOptions="FillAndExpand">
    <StackLayout Orientation="Horizontal" BackgroundColor="{StaticResource SideBgColorLogo}" HeightRequest="60"  Padding="10,0,0,0">
        <Image Source="tc.png" Aspect="AspectFit" WidthRequest="25" HeightRequest="25" HorizontalOptions="Start"></Image>
        <Label Text="TechCenter V2" Style="{StaticResource MenuLabel}" VerticalTextAlignment="Center" HeightRequest="25"></Label>
    </StackLayout>
    <telerikDataControls:RadListView x:Name="listView" ItemsSource="{Binding MenuItems}" SelectedItem="{Binding SelectedMenu}" SelectionMode="Single" VerticalOptions="Fill">
        <!--<telerikDataControls:RadListView.Behaviors>
            <behaviors:EventToCommandBehavior EventName="ItemTapped" Command="{Binding SelectionChangedCommand, Mode=TwoWay}" Converter="{StaticResource ItemTappedConverter}" />
        </telerikDataControls:RadListView.Behaviors>-->
        <telerikDataControls:RadListView.SelectedItemStyle>
            <telerikListView:ListViewItemStyle BackgroundColor="{StaticResource SideItemSelBgColor}" BorderWidth="3" BorderLocation="Bottom"/>
        </telerikDataControls:RadListView.SelectedItemStyle>
        <telerikDataControls:RadListView.ItemStyle>
            <telerikListView:ListViewItemStyle BackgroundColor="{StaticResource SideBgColor}"></telerikListView:ListViewItemStyle>
        </telerikDataControls:RadListView.ItemStyle>
        <telerikDataControls:RadListView.ItemTemplate>
            <DataTemplate>
                <telerikListView:ListViewTemplateCell>
                    <telerikListView:ListViewTemplateCell.View>
                        <Grid Padding="5,10">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Image Source="{Binding Icon}" WidthRequest="30" HeightRequest="30" Aspect="AspectFit" VerticalOptions="Center" />
                            <Label Grid.Column="1" Text="{Binding Title}" HeightRequest="30" Style="{StaticResource MenuItemLabel}" VerticalOptions="Center"/>
                        </Grid>
                    </telerikListView:ListViewTemplateCell.View>
                </telerikListView:ListViewTemplateCell>
            </DataTemplate>
        </telerikDataControls:RadListView.ItemTemplate>
    </telerikDataControls:RadListView>
</StackLayout>

 

On Androi and UWP the rendering is correct, but in IOS, the last item are Cut. If I add many menu items sometime the last one is hidded completely, or half cut or 1/4 cut. Any idea?

Lance | Senior Manager Technical Support
Telerik team
 answered on 13 Oct 2017
1 answer
761 views

How to catch long press of a button or ToolBarItem ? Seems there is only Clicked event. my requirement is to do two different tasks in normal click & long click. 

How to achieve this. Preferably i want to know if this could be done without using custom renderers? 

Thank you in advance

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 11 Oct 2017
1 answer
251 views

Hi,

I am using Telerik UI for xamarin. I have install nuget packages in PCL as well as the platform projects (IOS & Android). Also I have checked all the required assemblies for datagrid they seems fine, but when I run the application I am getting exception Method 'SkiaSharp.SKTypeface.FromStream' not found

Please advise

Thanks 

 

 

 

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 11 Oct 2017
1 answer
102 views

Howdy

I have some Validators defined as follows.  I want to supply negativeFeedback when validation fails, but nothing for positiveFeedback (i.e. null or "").  The problem I have is that once negative feedback appears, it won't go away.  I am forced to supply positiveFeedback such as "OK" to make it disappear.  I'm left with the editor turning green and "OK" appearing.  Devices are only so big, so I don't want to waste valuable real estate and clutter up the screen with "OK" messages.  It reminds me of The Simpsons episode where Homer invents the "Everything is okay alarm".  It just goes off all the time, except for when there's an emergency.

[DisplayOptions(PlaceholderText = "Bank Code", Header = "Bank Code")]
[RegularExpressionValidator(@"^\d{2}$", "Bank code must be 2 digits long")]
public string BankCode { get; set; }

[DisplayOptions(PlaceholderText = "Branch Code", Header = "Branch Code")]
[NonEmptyValidator("Please supply Branch Code")]
public string BranchCode { get; set; }

 

[DisplayOptions(PlaceholderText = "Account Number", Header = "Account Number")]
[StringLengthValidator(7, 7, "Account Number must be 7 digits long")]
public string AccountNumber { get; set; }

 

Cheers
Craig

Stefan Nenchev
Telerik team
 answered on 11 Oct 2017
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?