Telerik Forums
UI for Xamarin Forum
1 answer
176 views

Hello

I am using RadListView

now i want to load new items when the last item in the list appears

for example:

i have list contains 8 items 

first 5 items displayed on the screen 

i want to make some action when the last item (item 8) appears 

please help me ASAP 

Thanks in advance 

Stefan Nenchev
Telerik team
 answered on 29 Aug 2017
9 answers
121 views

Hi

I am trying to format the labels on x axis but I am facing a problem.

 

On UWP there labels are displayed OK, but on Android are not displayed well. The labels show a list datetime from a database.

 

I attached two screenshots.

 

<telerikChart:RadCartesianChart.HorizontalAxis>
                        <telerikChart:DateTimeContinuousAxis x:Name="axisDateTimeContinuous" LabelFitMode="Rotate" ShowLabels="True"  LabelFormat="d/M/yy HH:mm:ss"  LabelFontSize="15" LabelTextColor="Coral"/>
                    </telerikChart:RadCartesianChart.HorizontalAxis>

 

Can you help plz?

tnx

 

Stefan Nenchev
Telerik team
 answered on 29 Aug 2017
1 answer
202 views

How to Use Busyindicator Inside List View Cell Image control can you Provide the sample code for the same

MY scenario is listview cell has image control and the image is loading from remote server i want show busy indicator on each cell till the image downloads

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 28 Aug 2017
2 answers
131 views

Good day.

Is there a way to have the Group Headers collapsed by default instead of them all being expanded?

Thanks

Clayton
Top achievements
Rank 1
 answered on 28 Aug 2017
7 answers
115 views

When i try to show images in a radlistview, i get these exceptions.

No exceptions when using the xamarin listview, nor when commenting out the image from the template

 

xaml code : 

  <telerikDataControls:RadListView 
                                         IsLoadOnDemandEnabled="True"
                                         ItemsSource="{Binding Articles}"                                         
                                         LoadOnDemandMode="Automatic"  >
            <telerikDataControls:RadListView.LayoutDefinition>
                <telerikListView:ListViewGridLayout  ItemLength="100" VerticalItemSpacing="1" HorizontalItemSpacing="1" />
                </telerikDataControls:RadListView.LayoutDefinition>
                <telerikDataControls:RadListView.ItemTemplate>
                <DataTemplate>
                    <telerikListView:ListViewTemplateCell>
                        <telerikListView:ListViewTemplateCell.View>
                            <StackLayout >
                                <Image  Source="{Binding Image}"  />
                                <Label  Text="{Binding ArtNr}"/>
                            </StackLayout>
                        </telerikListView:ListViewTemplateCell.View>
                    </telerikListView:ListViewTemplateCell>
                </DataTemplate>
            </telerikDataControls:RadListView.ItemTemplate>
        </telerikDataControls:RadListView>

 

 

Viewmodel: 

 public class ArticleViewModel:BaseViewModel
    {
        public string ArtNr { get; set; }
        public ImageSource Image { get; set; }
        public ArticleViewModel(string artnr, string url)
        {
            this.ArtNr = artnr;
            Image = new UriImageSource
            {
                Uri = new Uri(url),
                CachingEnabled = false,
                CacheValidity = new TimeSpan(7, 0, 0, 0)

            };
        }
    }


    public class CatalogueViewModel : BaseViewModel
    {
        const int nrofitemstoload = 10;
        int loadTriggerCount;
        public ListViewLoadOnDemandCollection Articles { get; set; }

        public CatalogueViewModel() : base()
        {
            Articles = new ListViewLoadOnDemandCollection(loadondemand);

            var artvms = getarticles(loadTriggerCount * nrofitemstoload);
            foreach (var art in artvms)
            {
                Articles.Add(art);
            }

            Title = "Catalogus";
        }

        IEnumerable<ArticleViewModel> getarticles(int start)
        {
            var x = new List<ArticleViewModel>();
            for (int i = start; i < start + nrofitemstoload; i++)
            {
                x.Add(new ArticleViewModel($"article{start}_{i}", $"http://www.adsolut.be/images/website/logo.png?start={start}&stop{i}"));
            }
            return x;
        }

        IEnumerable<ArticleViewModel> loadondemand(CancellationToken token)
        {
            loadTriggerCount++;

            if (token.IsCancellationRequested)
                return new List<ArticleViewModel>();

            var articles = getarticles(loadTriggerCount * nrofitemstoload);

            return articles;
        }
    }

Nikolay Demirev
Telerik team
 answered on 28 Aug 2017
1 answer
257 views

 

Hi,

Below are model properties.

I am trying to group my list base on the CategoryName and trying to show CategoryName and HealthItemName in my custom header

Problem: I am able to see the CategoryName  in the header but trying but not able to show up HealthItemName  in my header.

I am using GroupHeaderTemplate to accomplish the above task. Any pointers?

 

model class elements {

    String CategoryName
        String CategoryHealthStatusText { get; set; }
        String HealthItemName { get; set; }

}

 

 

<telerikDataControls:RadListView AutomationId="RiskList" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Model.RiskItems}" SelectionMode="None">
                <telerikDataControls:RadListView.ItemStyle>
                    <telerikListView:ListViewItemStyle BackgroundColor="Transparent" BorderLocation="Bottom"/>
                </telerikDataControls:RadListView.ItemStyle>
                <telerikDataControls:RadListView.ItemTemplate>
                    <DataTemplate>
                        <telerikListView:ListViewTemplateCell>
                            <telerikListView:ListViewTemplateCell.View>
                                <StackLayout Padding="0,10" >
                                    <Label AutomationId="LabsResultsDate" Text="{Binding HealthItemName}"></Label>
                                </StackLayout>
                            </telerikListView:ListViewTemplateCell.View>
                        </telerikListView:ListViewTemplateCell>
                    </DataTemplate>
                </telerikDataControls:RadListView.ItemTemplate>
                <telerikDataControls:RadListView.GroupDescriptors>
                    <telerikListView:PropertyGroupDescriptor   PropertyName="CategoryName"/>
                </telerikDataControls:RadListView.GroupDescriptors>
               
                <telerikDataControls:RadListView.GroupHeaderTemplate >
                    <DataTemplate>
                        <StackLayout>
                            <svg:SvgCachedImage AutomationId="CategorySvg" WidthRequest="44" HeightRequest="44" Source= "resource://InteractiveHealth.Mobile.Member.Images.icons.cross_or6.svg"  />
                            <Label Text="{Binding }" HorizontalOptions="Center"/>
                            <Label Text="{Binding HealthItemName}" HorizontalOptions="Center"/>
                        </StackLayout>
                        <!--<Grid BackgroundColor="Red">
                            <Label Text="{Binding }" TextColor="#303030" FontSize="Medium" HorizontalOptions="Center"/>
                        </Grid>-->
                    </DataTemplate>
                </telerikDataControls:RadListView.GroupHeaderTemplate>
            </telerikDataControls:RadListView>

Stefan Nenchev
Telerik team
 answered on 25 Aug 2017
1 answer
148 views

Hi there,

 

I'm currently looking at the data form product you guys have and it looks great however there is one thing that I cannot seem to figure out.

If i wanted to change what the user could edit on the Form depending on who the user is (Admin, Read-only user) it seems that I cannot as the read-only field is set by an attribute on the model.

I'm just wondering is there any way for me to access these fields and change the read-only field?

 

Thanks for your help

John

Stefan Nenchev
Telerik team
 answered on 23 Aug 2017
1 answer
128 views

Is there any way to keep the SideDrawer open even after the user clicks the main content?

thanks.

Stefan Nenchev
Telerik team
 answered on 23 Aug 2017
1 answer
75 views
I am using Telerik.UI.for.Xamarin.Lite.Trial package for my application to implement Radautocomplete control.In my xamarin forms project I am using only radautocomplete control not  any other controls .I generated apk having the size of 26.9 Mb.It is too large without implementing any other controls.I tried with all package(Telerik.UI.for.Xamarin.Lite.Trial,Telerik.UI.for.Xamarin.Input.Trial,Telerik.UI.for.Xamarin.Trial) which are greater than 30Mb.

Can you please suggest me to reduce the size of Apk to 10Mb 

whether I need to use different packages.??

 

Thanks,

Manasa
Stefan Nenchev
Telerik team
 answered on 21 Aug 2017
3 answers
80 views
Hello!

I am trying set the style of the appointments of the calendar but for some reason this combination breaks the alignment somehow, here is the code I am using:

CalendarAppointmentsStyle GetCalendarStyle()
{
    return new CalendarAppointmentsStyle
    {
        DisplayMode = AppointmentDisplayMode.TextWithShape,
        //DisplayMode = AppointmentDisplayMode.Shape,
        Padding = new Thickness(0, 4, 0, 2),
 
        MaxCount = 2,
        Spacing = 2,
 
        MoreTextFormatString = "+",
        MoreTextColor = Color.Black,
        ReserveIndicatorSpace = false,
 
        TextHorizontalLocation = HorizontalLocation.Center,
        TextVerticalLocation = VerticalLocation.Bottom,
        ShapesHorizontalLocation = HorizontalLocation.Center,
        ShapesVerticalLocation = VerticalLocation.Bottom,
        ShapesOrientation = Orientation.Horizontal,
         
        ShapeSize = new Size(8, 8),
        ShapeType = CalendarAppointmentShapeType.Ellipse,
    };
}

 

In stead of showing like this:
Image1

It is being showed like this:
Image2

Any fixes for this?

Stefan Nenchev
Telerik team
 answered on 21 Aug 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?