Telerik Forums
UI for Xamarin Forum
3 answers
130 views

When trying to swipe on iOS a drawer with row options, the items appear, but there is no animation, the moment we start swiping the items just appear as if hiding and unhiding 

 

<telerikDataControls:RadListView
           x:Name="SongList"
           Grid.Row="1"
           Margin="20,0,0,0"
           BackgroundColor="Transparent"
           IsItemSwipeEnabled="{Binding SongManagementViewModel.SwipeEnabled}"
           IsPullToRefreshEnabled="{OnPlatform Android=true,
                                               iOS=true,
                                               UWP=false}"
           IsVisible="{Binding ImportedIsVisible, Converter={StaticResource InverseBoolConverter}, FallbackValue=true}"
           ItemTapped="SongList_OnItemTapped"
           ItemsSource="{Binding SongManagementViewModel.Songs}"
           RefreshRequested="SongList_OnRefreshRequested"
           SelectionMode="Single"
           SwipeOffset="0, 0, 230, 0"
           VerticalOptions="FillAndExpand">
           <telerikDataControls:RadListView.ItemSwipeContentTemplate>
               <DataTemplate>
                   <Grid
                       Margin="0"
                       Padding="0"
                       ColumnSpacing="0"
                       RowSpacing="0">
 
                       <Grid.ColumnDefinitions>
                           <ColumnDefinition Width="*" />
                           <ColumnDefinition Width="Auto" />
                           <ColumnDefinition Width="Auto" />
                           <ColumnDefinition Width="Auto" />
                       </Grid.ColumnDefinitions>
 
                       <Button
                           Grid.Column="1"
                           BackgroundColor="{x:Static forms:Colors.MedBlue}"
                           Command="{Binding InfoCommand}"
                           Style="{StaticResource SlideOutOption}"
                           Text="Info" />
 
                       <Button
                           Grid.Column="2"
                           BackgroundColor="Black"
                           Command="{Binding AddToCommand}"
                           Style="{StaticResource SlideOutOption}"
                           Text="Add" />
 
                       <buttons:WordWrapButton
                           Grid.Column="3"
                           BackgroundColor="{Binding SongActionButtonColor}"
                           Command="{Binding SongActionCommand}"
                           Style="{StaticResource WordWrapSlideOutOption}"
                           Text="{Binding SongActionLabel}"
                           WidthRequest="{Binding SongActionButtonSize}" />
                   </Grid>
               </DataTemplate>
           </telerikDataControls:RadListView.ItemSwipeContentTemplate>
Yana
Telerik team
 answered on 12 Feb 2021
7 answers
220 views

Hi, I have a problem,

public class FruitModel
    {
        public int fruit{ get; set; }
        public string fruitName{ get; set; }
    }

ObservableCollection<FruitModel> FruitData = newObservableCollection<FruitModel>();
 FruitData.Add(new FruitModel {fruidID = 1, fruidName ="Banana" }); .........................................

How can i show fruit in the DataForm PickerEditor?

 

Yana
Telerik team
 answered on 12 Feb 2021
7 answers
181 views

I have downloaded the sample code, and followed the instructions laid out here:

https://github.com/telerik/telerik-xamarin-forms-samples/tree/master/ERP

 

I have successfully published the service app, and am able to browse to the url just fine.  Additionally, I can see the SQL objects and data got created in the sample database.  I updated the web.config with the Azure SQL Connection info

I have updated the constants.cs file in the ErpApp solution with the URL from the Azure app service as well.

 

However, when I launch the app from debug in VS 2019, all the tabs in the mobile app spin for a few seconds, and then bring up empty screens, almost like there's no data to connect to, or some kind of permissions is not allowing it to pull down the data from Azure SQL.  Interestingly enough, I am able to add a customer, but I have no idea where it's adding it to if it can't connect to the database!

Any thoughts here?   Feels like I'm really close, but something isn't quite hooked up correctly I don't think.

 

Tim
Top achievements
Rank 1
 answered on 11 Feb 2021
1 answer
657 views

Hello!
I have a popu that has a contentview with a radcombobox.
When I want to open the combobox to show the elements my application crashes with the following exception:

"Android.Views.WindowManagerBadTokenException: 'Unable to add window -- token android.view.ViewRootImpl$W@c8be37d is not valid; is your activity running?'"

What is wrong here?

Best regards,
Nico

Yana
Telerik team
 answered on 11 Feb 2021
3 answers
665 views

Hello,

I was wondering if TabView has events, for example, on tab selection? If I wanted to load contents of a tab only when it is selected, is there such a mechanism available?

Yana
Telerik team
 answered on 11 Feb 2021
1 answer
97 views

I would like to add some custom styling to the Visible columns area that is shown when a user clicks the (options button -> More). 

Specifically I would like to make it so that when the user clicks the options button they go straight to this "Visible Columns screen" or clicks some other button and it goes to that screen. How can I do this?

 

Thanks

Yana
Telerik team
 answered on 11 Feb 2021
7 answers
599 views

Hi everyone,

I'm trying to create a global style so that all RadEntry controls in my application have the same look and feel.

I'd like the CornerRadius of the entry controls to be 0 and to specify a border color.

I'm having issues figuring out how to specify the BorderStyle values in my global style.

This is what I've tried so far and none of my border style values were applied:

<OnPlatform x:Key="EntryPadding" x:TypeArguments="Thickness">
    <On Platform="iOS" Value="10,10,0,20" />
    <On Platform="Android,UWP" Value="10,10,0,10" />
</OnPlatform>
 
<Style x:Key="EntryBorderStyle" TargetType="telerikInput:BorderStyle">
    <Setter Property="CornerRadius" Value="0" />
    <Setter Property="BorderColor" Value="#808080" />
    <Setter Property="BorderThickness" Value="5" />
</Style>
 
<Style TargetType="telerikInput:RadEntry">
    <Setter Property="Padding" Value="{StaticResource EntryPadding}" />
    <Setter Property="BorderStyle" Value="{StaticResource EntryBorderStyle}"/>
</Style>

 

Anyone have any ideas where I might be going wrong?

Thanks,

Greg

Larry
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Feb 2021
1 answer
495 views

Ever since we upgraded to the latest Telerik package 2021.1.119.1 we get the following error when we compile in Release mode using .Net Native tool chain. I've redacted paths below.

ILT0005: 'C:\Users\<redacted>\.nuget\packages\runtime.win10-x64.microsoft.net.native.compiler\2.2.9-rel-29512-01\tools\x64\ilc\Tools\nutc_driver.exe @"C:\<redacted>.rsp"' returned exit code 1

Lance | Senior Manager Technical Support
Telerik team
 answered on 09 Feb 2021
2 answers
146 views
We have a RadListView that holds a list of items and have set the pressed state so that when you press it, the row highlights 

<telerikDataControls:RadListView.PressedItemStyle>
               <telerikListView:ListViewItemStyle
                   BackgroundColor="{Binding SongListRowSelectionColor}"
                   BorderColor="{x:Static SongListRowGreyLine}"
                   BorderLocation="Bottom"
                   BorderWidth="1" />
           </telerikDataControls:RadListView.PressedItemStyle>
           <telerikDataControls:RadListView.SelectedItemStyle>
               <telerikListView:ListViewItemStyle
                   BackgroundColor="Transparent"
                   BorderColor="{x:Static SongListRowGreyLine}"
                   BorderLocation="Bottom"
                   BorderWidth="1" />
           </telerikDataControls:RadListView.SelectedItemStyle>
           <telerikDataControls:RadListView.ItemStyle>
               <telerikListView:ListViewItemStyle
                   BackgroundColor="Transparent"
                   BorderColor="{x:Static SongListRowGreyLine}"
                   BorderLocation="Bottom"
                   BorderWidth="1" />
           </telerikDataControls:RadListView.ItemStyle>

Above our list we have a blue banner that is a stack layout with a few buttons with space in-between that isn't "clickable"  the problem we are seeing is when you tap the white space (because you miss tapping on the button or something) is that PressedItemStyle activates for all rows within the list view

we don't want this behavior and i wasn't able to find anything related to why this was happening. Just wondering how we can prevent this from happening while keeping the presseditemstyle

 

Thanks

Brenden
Top achievements
Rank 1
Veteran
 answered on 09 Feb 2021
2 answers
154 views
RadDocument, RadDocumentMerger, etc. were removed?
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 09 Feb 2021
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?