Telerik Forums
UI for Xamarin Forum
1 answer
1.5K+ views
As per title - is this possible? Setting Focus() in code only puts the cursor in the control, the keyboard only appears when you actually touch it. Also, if it's possibleto make the keyboard appear, is it possible to either automatically select all the text in the control, or position to caret at a specific point?
Didi
Telerik team
 answered on 18 May 2018
4 answers
513 views

Hi, i have a rad list view implemented and i need to retrieve the value of one of the elements inside of it, this is my hierarchy of elements:

 

<telerikDataControls:RadListView x:Name="Results" BackgroundColor="White" Grid.Row="0" ItemTapped="Results_ItemTapped">
                        
                        <telerikDataControls:RadListView.ItemTemplate>
                            <DataTemplate>
                                <telerikListView:ListViewTemplateCell>
                                    <telerikListView:ListViewTemplateCell.View>
                                        <Grid >

                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="*"/>
                                            </Grid.ColumnDefinitions>
                                            
                                            <Image Source="{Binding Path=hier_image}"  HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" >
                                            
                                            </Image>
                                            <Label Text="{Binding Path=hier_name}"  Grid.Row="0" HorizontalOptions="End" VerticalOptions="End" />
                                            <Label Text="{Binding Path=hier_id}" IsVisible="False"/>
                                        </Grid>
                                    </telerikListView:ListViewTemplateCell.View>
                                </telerikListView:ListViewTemplateCell>
                            </DataTemplate>
                        </telerikDataControls:RadListView.ItemTemplate>
                        <telerikDataControls:RadListView.LayoutDefinition>
                            <telerikListView:ListViewGridLayout HorizontalItemSpacing="5"
                                                ItemLength="120"
                                                SpanCount="2"
                                                VerticalItemSpacing="5"/>
                        </telerikDataControls:RadListView.LayoutDefinition>
                    </telerikDataControls:RadListView>

 

I need the value of the label with text={ binding path=hier_id} of the item tapped, how can i do this? any approach?

 

Regards.

Lance | Senior Manager Technical Support
Telerik team
 answered on 17 May 2018
1 answer
129 views

Hi

I'm working on a simple xamarin app, this would be displaying a list of property's in a search screen, when the user double clicks the property he or she goes on to a new screen this then displays the property for editing.

The thing is the properties are broken down into acquisition units, so the editor needs to display multiple acquisition units, using some kind of pivot or flipview control together with the means to add/delete acquisition units

I think I can use the radgrid control for the search screen. But I'm uncertain the best way to create the editor I hoped to be able to use the DataForm somehow, possibly by embedding it in some kind of pivot control, but how would I handle pagination. 

Any thought would be greatly appreciated. 

Thanks

George

Ivan
Telerik team
 answered on 17 May 2018
1 answer
78 views

I am sorry for opening a second thread, but I have another question:

- I have a PieChart where I can select a specific slide.

- I have another control, the RadCartesianChart

 

Whenever I select a slide on the pie chart, I would like to add a lineseries on the RadCartesianChart. That works fine.

But now I would like to color the line with the same color from the slide I selected.

I am using the standard palette. Instead of using the palette, can I specify each slices color in my model I bound to the property ItemsSource of my PieSeries?

Or do you have any other idea, how to get that color?

 

Thanks in advance!

Jannik
Top achievements
Rank 1
 answered on 16 May 2018
2 answers
150 views

I've created a custom calendar delegate for iOS as described here (https://docs.telerik.com/devtools/xamarin/controls/calendar/styling/custom-renderers/calendar-customrenderers-ios), and I'm trying to use it customize the calendar's month title cell. In my delegate, I have:

public override void UpdateVisualsForCell(TKCalendar calendar, TKCalendarCell cell)
{
    base.UpdateVisualsForCell(calendar, cell);
 
    switch (cell)
    {
       case TKCalendarMonthTitleCell monthTitleCell:
            FormatMonthTitleCell(monthTitleCell);
            break;
    }
}
 
private void FormatMonthTitleCell(TKCalendarMonthTitleCell monthTitleCell)
{
   monthTitleCell.Label.Text = "custom title";
}

 

I can see that the label's text is indeed changed when debugging, however, the title still displays as "[month] [year]". Is there something else that I need to be setting or hooking into in order to change the title?

Dev
Top achievements
Rank 1
 answered on 11 May 2018
2 answers
189 views

I have a RadCalendar in Week view mode that I'm using to allow users to jump to dates in an events list. The calendar displays indicators for dates that have events in the list. On iOS, if a user taps a date that does not have an indicator, a black highlight appears (see screenshot #1). Tapping a date with an indicator, does not show a highlight (see screenshot #2). On Android, there is no highlight no matter which dates the user taps on (i.e. always looks like screenshot #2).

How can I get rid of the highlight on iOS?

Dev
Top achievements
Rank 1
 answered on 11 May 2018
1 answer
1.6K+ views

Getting this weird error after upgrading Visual Studio today:

[0:] SetValue: Can not convert System.ReadOnlySpan`1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'Xamarin.Forms.Color'

Any ideas?

thanks

Nasko
Telerik team
 answered on 10 May 2018
1 answer
188 views

I have a Custom Renderer for the DatePicker Control (Calendar) that allows null dates and has a Clear button instead of Cancel.  It works fine on a form by itself, but I wish to use it on the DataForm.

Is there a way to have the DataForm use this renderer as well for it's DataFormDateEditor?

Or a way to create a custom editor that uses this renderer for the standard Picker/Calendar widget (DataFormDateEditor)?

Is the question clear?

Looking for some guidance.

Thanx in advance!

 

 

Yana
Telerik team
 answered on 10 May 2018
8 answers
1.4K+ views

Hi, how i can set the desirable format for the column type descripted in this thread title? I want to set for dateTime the format : "dd/MM/yyyy" and for Numerical Column i want to use"Number" format [Integral and decimal digits, group separators, and a decimal separator .. ex "1.234,56"]. I can set in xaml or i must to do something in codebehind?

 

Thanks in advance

Lance | Senior Manager Technical Support
Telerik team
 answered on 09 May 2018
1 answer
143 views

I test it on xamarin forms ios. 
Adding a swipe and not doing it The scroll list speed is too different.
And adding two swipes is okay, but adding five swipes slows down the list.
The code is shown below.

<telerikDataControls:RadListView.ItemSwipeContentTemplate>
                <DataTemplate>
                    <Grid Padding="0,0,0,5"
                          ColumnSpacing="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="60" />
                        </Grid.ColumnDefinitions>
                        <Button 
                            Grid.Column="0"
                            BorderRadius="0"
                            Image="{Binding FavoriteImage}"
                            BackgroundColor="{DynamicResource C_main_lev3}"
                            Clicked="Favorite_Clicked"/>
                        <Button 
                            Grid.Column="1"
                            BorderRadius="0"
                            Image="ic_refresh.png"
                            BackgroundColor="{DynamicResource C_main_lev2}" />
                        <Button 
                            Grid.Column="2"
                            BorderRadius="0"
                            Image="ic_setting.png"
                            BackgroundColor="{DynamicResource C_main_lev1}"
                            Clicked="NickNameUpdate_Clicked"/>
                        <Button 
                            Grid.Column="4"
                            BorderRadius="0"
                            Text="hide"
                            TextColor="White"
                            BackgroundColor="{DynamicResource C_sub_theme3_lev2}"
                            Clicked="Hide_Clicked" />
                        <Button 
                            Grid.Column="5"
                            BorderRadius="0"
                            Text="block"
                            TextColor="White"
                            BackgroundColor="{DynamicResource C_accent_theme1}"
                            Clicked="Block_Clicked" />
                    </Grid>
                </DataTemplate>
            </telerikDataControls:RadListView.ItemSwipeContentTemplate>
            

Yana
Telerik team
 answered on 09 May 2018
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?