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
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
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
Good day.
Is there a way to have the Group Headers collapsed by default instead of them all being expanded?
Thanks
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;
}
}
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>
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
Is there any way to keep the SideDrawer open even after the user clicks the main content?
thanks.
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?