hi, I try to manually install Telerik on my Xamarin.forms projet.
I do not use the normal Portable Class but a .Net Standard Instead with Xamarin Forms 2.4.0.269-pre2. I manage to install all the DLL required for the Listview control. But when I compile I got several error on the Android projet:
SeverityCodeDescriptionProjectFileLineSuppression State
Errorerror: package com.telerik.android.primitives.widget.sidedrawer does not exist
com.telerik.android.primitives.widget.sidedrawer.DrawerChangeListenerTechCenter.AndroidC:\Data\_Dev\Xamarin\TechCenter\TechCenter\TechCenter.Android\obj\Debug\android\src\mono\com\telerik\android\primitives\widget\sidedrawer\DrawerChangeListenerImplementor.java8
I work on Android API25 for now and I install the lastest Telerik build 2017-3-913-3
Any suggestion?
Hi,
Changing ItemsSource property dynamically then focussing input entry throws null exception.
autoComplete = new RadAutoComplete()
{
ItemsSource = RecordedItems,
NoResultsMessage = "",
TextSearchPath = "Name",
ShowSuggestionView = true,
SuggestionViewHeight = RecordedItems.Count * 40,
CompletionMode = Telerik.XamarinForms.Input.AutoComplete.CompletionMode.Contains,
DisplayMode = Telerik.XamarinForms.Input.AutoComplete.SuggestionsDisplayMode.Tokens,
SuggestMode = Telerik.XamarinForms.Input.AutoComplete.SuggestMode.SuggestAppend,
SuggestionItemTemplate = new DataTemplate(() =>
{
var grid = new Grid();
grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) });
var lbl = new Label()
{
Margin = new Thickness(5),
FontSize = 24,
TextColor = Color.Black
};
lbl.SetBinding(Label.TextProperty, "Item.Name");
grid.Children.Add(lbl);
return grid;
})
};
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Core.BindingExpressionHelper.<>c__DisplayClass3_0.<CreateGetValueFunc>b__1(Object item)
at Telerik.UI.Xaml.Controls.Input.AutoCompleteBox.TextSearchProvider.GetFilterKey(Object item)
at Telerik.UI.Xaml.Controls.Input.AutoCompleteBox.ContainsTextSearchProvider.BuildFilteredItems(Boolean clear)
at Telerik.UI.Xaml.Controls.Input.AutoCompleteBox.ContainsTextSearchProvider.Input(Int32 start, Int32 sele
Hi,
Is it possible to remove default splitting of piechart when selected in Xamarin forms and probably add a border around the selected sector instead?
Thanks
I have noticed what appears to be a bug on the RadSideDrawer on UWP. Basically only the DrawerOpened and DrawerClosed events fire, and they do not do so in a predictable manner. I have not been able to get the DrawerOpening or DrawerClosing events to fire at all. Also the binding for IsOpen is deficult to predict, if I close the draw by swiping to close it then IsClosed does not appear to be updated to reflect the fact that the draw is closed, none of the closed/closing events fire either.
Behavior: Swiping to open or close does not fire DrawerOpening,DrawerClosing,DrawerOpened,DrawerClosed events. IsOpen() does not get updated
Expected Behavior: Swiping to open or close would fire all events like android and iOS(tested and working with code below). IsOpen() should also be updated to reflect correct state.
My project setup and steps to reproduce are as follows:
Xamarin Forms Netstandard 2.0 project.
IDE:Visual studio 15.5.1
Xamarin.Forms(2.5.0.121934)
Prism.DryIoC.Forms(7.0.0.340-ci)
Telerik.UI.for.Xamarin.Common.Trial(2017.3.913.3)
Telerik.UI.for.Xamarin.Primitives.Trial(2017.3.913.3)
XAML Code:
<telerikPrimitives:RadSideDrawer DrawerLength="275" DrawerLocation="Right" IsOpen="{Binding MenuOpen, Mode=TwoWay}">
<telerikPrimitives:RadSideDrawer.Behaviors>
<b:EventToCommandBehavior Command="{Binding DrawerClosedCommand}" EventName="DrawerClosed" />
<b:EventToCommandBehavior Command="{Binding DrawerClosingCommand}" EventName="DrawerClosing" />
<b:EventToCommandBehavior Command="{Binding DrawerOpenedCommand}" EventName="DrawerOpened" />
<b:EventToCommandBehavior Command="{Binding DrawerOpeningCommand}" EventName="DrawerOpening" />
</telerikPrimitives:RadSideDrawer.Behaviors>
<telerikPrimitives:RadSideDrawer.MainContent>
<StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand">
<Label TextColor="Black" HorizontalOptions="Center" Text="Welcome to Training wheels." />
<Label TextColor="Black" HorizontalOptions="Center" Text="Minervex Software" />
<Button Text="IClipBoardService" Command="{Binding NavigateToPageCommand}" CommandParameter="IClipboardServicePage"/>
<Button Text="IManagePictureService" Command="{Binding NavigateToPageCommand}" CommandParameter="IManagePictureServicePage"/>
<Button Text="CreateUserPage" Command="{Binding NavigateToPageCommand}" CommandParameter="CreateUserPage"/>
<Button Text="UserProfilePage" Command="{Binding NavigateToPageCommand}" CommandParameter="UserProfilePage"/>
</StackLayout>
</telerikPrimitives:RadSideDrawer.MainContent>
<telerikPrimitives:RadSideDrawer.DrawerContent>
<StackLayout>
<Button Text="Mail" />
<Button Text="Calendar" />
<Button Text="People" />
<Button Text="Tasks" />
</StackLayout>
</telerikPrimitives:RadSideDrawer.DrawerContent>
</telerikPrimitives:RadSideDrawer>
View model code
{
private bool _menuOpen;
public class MainPageViewModel : BaseViewModel
{
public bool MenuOpen
{
get { return _menuOpen; }
set { SetProperty(ref _menuOpen, value); }
}
public Command DrawerOpeningCommand { get; set; }
public Command DrawerOpenedCommand { get; set; }
public Command DrawerClosingCommand { get; set; }
public Command DrawerClosedCommand { get; set; }
public MainPageViewModel(INavigationService NavigationService, IEventAggregator EventAggregator, IDependencyService DependencyService, IPageDialogService PageDialogService, IContainer Container)
: base(NavigationService, EventAggregator, DependencyService, PageDialogService, Container)
{
Title = "Main Page";
MenuItemClickedCommand = new DelegateCommand(MenuItemClicked);
DrawerClosedCommand = new Command(DrawClosed);
DrawerClosingCommand = new Command(DrawClosing);
DrawerOpeningCommand = new Command(DrawOpening);
DrawerOpenedCommand = new Command(DrawOpened);
}
private void MenuItemClicked()
{
if (MenuOpen)
{
MenuOpen = false;
}
else
{
MenuOpen = true;
}
}
private void DrawOpening()
{
}
private void DrawOpened()
{
}
private void DrawClosing()
{
}
private void DrawClosed()
{
}
}
When I set the ItemsSource of a ListView in the constructor of a new page, the ListView is completely invisible on an iPhone X. I'm using Xamarin Forms.
Here's what's really strange: if the app is not built for an iPhone X (meaning it runs with black bars at the top and bottom of the screen), the ListView will be visible. However, as soon as the app is setup for the iPhone X (meaning it uses the full screen height), the ListView is invisible.
How can I get around this?
I have a dataform defined like so:
<telerikInput:RadDataForm PropertyValidationCompleted="dfOptician_PropertyValidationCompleted" VerticalOptions="Start" HorizontalOptions="Start" x:Name="dfOptician" Source="{Binding SelectedRosterItem, Path=Exam}" ValidationMode="Immediate" CommitMode="Immediate" FormValidationCompleted="dfOptician_FormValidationCompleted">
However, the dfOptician_PropertyValidationCompleted never fires
Greetings
I'm evaluating the trial version of Xamarin RadDataGrid control. I have carefully studied the scant documentation for this control. I also studied the documentation for other versions (e.g. WPF, ASP, etc.) but the following questions still remain:
1) How can a multi-line entry be implemented for a text column? I did not see a 'word wrap' or 'multi-line' property. I attempted to use '\r\n' or 'Environment.NewLine' in a string in such a manner:
string str = "ajdfkjdfkj" + Environment.NewLine + "djkjdkj" + Environment.NewLine + "fjkdkf";
or
string str = "ajdfkjdfkj\r\ndjkjdkj\r\nfjkdkf";
Unfortunately none of these options displayed the text in a multi-line format in the RadDataGrid. I have seen references to using '<br/>' as a line break token in posts about other versions of this control. This also did not work.
2) Are the aggregate functions available for the Xamarin version of RadDataGrid? If so, let's take the following example:
A B C D
-----------------
a 5 6 7
a 9 2 1
b 3 4 0
b 8 2 10
I would like to group the data by the 'A' column which is quite simple. However in the grouping header, I would like to display the sum of columns 'B' and 'C.' If aggregate functions are available for the Xamarin version, would it be possible to have a sum for columns 'B' and 'C'?
3) Is conditional formatting possible for this control? For example can the font for column 'B' entries be turned red for values < 0 and green for values > 0?
4) For grids with lots of data, will the control automatically implement scrolling or does the control have to be a child of a scrollview control?
Thanks very much in advance.
How to use Label Formatter with DateTimeContinuousAxis ?
I've tried something like that :
<telerikChart:RadCartesianChart.HorizontalAxis>
<telerikChart:DateTimeContinuousAxis GapLength="0.5" LabelFormatter="{Binding DateLabelFormatter}" PlotMode="BetweenTicks" MajorStepUnit="Day" MajorStep="1" />
</telerikChart:RadCartesianChart.HorizontalAxis>
with my formatter just like that :
public class DateLabelFormatter : LabelFormatterBase<DateTime>
{
public override string FormatTypedValue(DateTime value)
{
DateTimeFormatInfo dateTimeFormats = new CultureInfo("fr-FR").DateTimeFormat;
return value.ToString("ddd", dateTimeFormats).ToUpper();
}
}
But nothing work, please I need some help ...
Hi,
In the attached diagram, the bar appears blue when it is selected.
I would like to find out how I can change it to another color when selected and also how to add a title for the horizontal and vertical axis.
Thanks.
01.
if
(DataSeries !=
null
&& DataSeries.Any())
02.
{
03.
chart =
new
RadCartesianChartView(context);
04.
var customPalette = chart.Palette.ClonePalette();
05.
legend=
new
RadLegendView(context);
06.
chartName =
new
TextView(context);
07.
chartName.Text = Name;
08.
chartName.Gravity = GravityFlags.Center;
09.
10.
// Axis
11.
var verticalAxis =
new
LinearAxis();
12.
verticalAxis.LabelFormat = VerticalAxisLabelFormat;
13.
var horizontalAxis =
new
CategoricalAxis();
14.
horizontalAxis.LabelFormat = HorizontalAxisLabelFormat;
15.
chart.VerticalAxis = verticalAxis;
16.
chart.HorizontalAxis = horizontalAxis;
17.
18.
// Data
19.
foreach
(var item
in
DataSeries)
20.
{
21.
var lineSeries =
new
LineSeries();
22.
lineSeries.ValueBinding =
new
ValueBinding();
23.
lineSeries.CategoryBinding =
new
CategoryBinding();
24.
lineSeries.Data = GetData(item.Key);
25.
26.
if
(!
string
.IsNullOrEmpty(item.Value?.Color))
27.
{
28.
int
color = Color.ParseColor(item.Value.Color);
29.
var chartEntry = customPalette.GetEntry(ChartPalette.LineFamily, item.Key);
30.
chartEntry.Fill = color;
31.
lineSeries.StrokeColor = color;
32.
}
33.
if
(item.Value !=
null
&& item.Value.LineWidth > 0)
34.
{
35.
lineSeries.StrokeThickness = item.Value.LineWidth;
36.
}
37.
if
(!
string
.IsNullOrEmpty(item.Value?.Name))
38.
{
39.
lineSeries.LegendTitle = item.Value?.Name;
40.
}
41.
chart.Series.Add(lineSeries);
42.
}
43.
44.
chart.Palette = customPalette;
45.
legend.LegendProvider = chart;
46.
AddView(chartName);
47.
AddView(legend);
48.
AddView(chart);