Hi,
Is there a way to update the styling of chat items, for example text colour? I have looked at the Styling documentation for the Chat control but I cannot see an example.
Thanks,
Euan
Example: Nothing selected
Selecting The Child: Parent not selected. ( results in parent selected )
Selecting the Child:Parent Selected (results in child selected)
Can the selected item in the tree go directly to the item clicked instead of selecting the parent first?
i have a radsidedrwaer and i get System.ArgumentNullException: 'Value cannot be null. (Parameter 'view')' get
on app center i get
ElementExtensions.ToHandler (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:58
ElementExtensions.ToPlatform (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:127
Telerik.Maui.RadSideDrawerExtensions.UpdateDrawerContent(RadSideDrawer nativeSideDrawer, IRadSideDrawer sideDrawer)
Telerik.Maui.Handlers.RadSideDrawerHandler.MapDrawerContent(RadSideDrawerHandler handler, IRadSideDrawer virtualElement)
PublicKeyToken=5803cfa389c90ce7]].<Add>b__0 (IElementHandler h, IElement v) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:172
PropertyMapper.UpdatePropertyCore (String key, IElementHandler viewHandler, IElement virtualView) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:47
PropertyMapper.UpdateProperties (IElementHandler viewHandler, IElement virtualView) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:82
ElementHandler.SetVirtualView (IElement view) D:\a\_work\1\s\src\Core\src\Handlers\Element\ElementHandler.cs:79
PublicKeyToken=5803cfa389c90ce7]].SetVirtualView (IView view) D:\a\_work\1\s\src\Core\src\Handlers\View\ViewHandlerOfT.cs:53
PublicKeyToken=5803cfa389c90ce7]].SetVirtualView (IElement view) D:\a\_work\1\s\src\Core\src\Handlers\View\ViewHandlerOfT.cs:56
Element.SetHandler (IElementHandler newHandler) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:921
Element.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:863
IElement.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\VisualElement\VisualElement.cs:2031
ElementExtensions.ToHandler (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:96
ElementExtensions.ToPlatform (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:127
LayoutHandler.SetVirtualView (IView view) D:\a\_work\1\s\src\Core\src\Handlers\Layout\LayoutHandler.Android.cs:41
PublicKeyToken=null]].SetVirtualView (IElement view) D:\a\_work\1\s\src\Core\src\Handlers\View\ViewHandlerOfT.cs:56
Element.SetHandler (IElementHandler newHandler) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:921
Element.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:863
IElement.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\VisualElement\VisualElement.cs:2031
ElementExtensions.ToHandler (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:96
ElementExtensions.ToPlatform (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:127
ContentViewHandler.UpdateContent (IContentViewHandler handler) D:\a\_work\1\s\src\Core\src\Handlers\ContentView\ContentViewHandler.Android.cs:42
ContentViewHandler.MapContent (IContentViewHandler handler, IContentView page) D:\a\_work\1\s\src\Core\src\Handlers\ContentView\ContentViewHandler.Android.cs:47
PublicKeyToken=null]].<Add>b__0 (IElementHandler h, IElement v) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:172
PropertyMapper.UpdatePropertyCore (String key, IElementHandler viewHandler, IElement virtualView) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:47
PropertyMapper.UpdateProperties (IElementHandler viewHandler, IElement virtualView) D:\a\_work\1\s\src\Core\src\PropertyMapper.cs:82
ElementHandler.SetVirtualView (IElement view) D:\a\_work\1\s\src\Core\src\Handlers\Element\ElementHandler.cs:79
PublicKeyToken=null]].SetVirtualView (IView view) D:\a\_work\1\s\src\Core\src\Handlers\View\ViewHandlerOfT.cs:53
ContentViewHandler.SetVirtualView (IView view) D:\a\_work\1\s\src\Core\src\Handlers\ContentView\ContentViewHandler.Android.cs:26
PublicKeyToken=null]].SetVirtualView (IElement view) D:\a\_work\1\s\src\Core\src\Handlers\View\ViewHandlerOfT.cs:56
Element.SetHandler (IElementHandler newHandler) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:921
Element.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\Element\Element.cs:863
IElement.set_Handler (IElementHandler value) D:\a\_work\1\s\src\Controls\src\Core\VisualElement\VisualElement.cs:2031
ElementExtensions.ToHandler (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:96
ElementExtensions.ToPlatform (IElement view, IMauiContext context) D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:127
MauiContextExtensions.ToPlatform (IView view, IMauiContext fragmentMauiContext, Context context, LayoutInflater layoutInflater, FragmentManager childFragmentManager) D:\a\_work\1\s\src\Core\src\Platform\Android\MauiContextExtensions.cs:96
NavigationViewFragment.OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) D:\a\_work\1\s\src\Core\src\Platform\Android\Navigation\NavigationViewFragment.cs:56
Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_inflater, IntPtr native_container, IntPtr native_savedInstanceState) C:\a\_work\1\s\generated\androidx.fragment.fragment\obj\Release\net6.0-android\generated\src\AndroidX.Fragment.App.Fragment.cs:2031
JNINativeWrapper.Wrap_JniMarshal_PPLLL_L (_JniMarshal_PPLLL_L callback, IntPtr jnienv, IntPtr klazz, IntPtr p0, IntPtr p1, IntPtr p2) /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:367
The sidedrawer:
<Grid> <telerik:RadSideDrawer x:Name="drawer" DrawerLength="250"> <telerik:RadSideDrawer.MainContent> <tools:KeyboardView> <AbsoluteLayout x:Name="mainLayout"> <StackLayout x:Name="mainStackLayout" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0, 0, 1, 1" Spacing="0"> <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand" HeightRequest="50"> <Grid Style="{StaticResource BottomGrid}" > <Grid.RowDefinitions> <RowDefinition Height="50"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="70*" /> <ColumnDefinition Width="15*" /> <ColumnDefinition Width="15*" /> </Grid.ColumnDefinitions> <StackLayout Grid.Row="0" Grid.Column="0" Margin="-10, 0, 0, 0"> <SearchBar x:Name="SearchBox" TextChanged="SearchBox_TextChanged" SearchButtonPressed="SearchBox_SearchButtonPressed" Style="{StaticResource SearchBar}" /> </StackLayout> <StackLayout Grid.Row="0" Grid.Column="1"> <Button x:Name="BtnTopologies" Grid.Row="0" Grid.Column="1" Style="{StaticResource Icon}" ImageSource="TreeView.png" Clicked="BtnTopologies_Clicked"/> </StackLayout> <StackLayout Grid.Row="0" Grid.Column="2"> <Image Source="barcodeBtn.png"> <Image.GestureRecognizers> <TapGestureRecognizer Tapped="BtnBarcode_Clicked" NumberOfTapsRequired="1" /> </Image.GestureRecognizers> </Image> </StackLayout> </Grid> </StackLayout> <StackLayout Orientation="Horizontal"> <telerik:RadComboBox x:Name="sortByField" IsClearButtonVisible="False" SelectionChanged="sortByField_SelectionChanged" VerticalOptions="Center" WidthRequest="150" TextColor="{StaticResource LightBlueColor}"/> <Image x:Name="sortingImg" Source="arrow.png"> <Image.GestureRecognizers> <TapGestureRecognizer Tapped="OrderTapped" NumberOfTapsRequired="1" /> </Image.GestureRecognizers> </Image> </StackLayout> <StackLayout x:Name="listViewDynamic"> </StackLayout> <telerik:RadListView x:Name="AssetsList" Grid.Row="1" SelectionMode="Single" SelectionGesture="Tap" SwipeOffset="50, 0, 50, 0" SwipeThreshold="10" HeightRequest="30" SelectionChanged="AssetsList_ItemTapped" RefreshRequested="AssetsList_RefreshRequested" IsPullToRefreshActive="True" IsPullToRefreshEnabled="True" VerticalOptions="FillAndExpand" BackgroundColor="LightGray" > <telerik:RadListView.ItemStyle> <telerik:ListViewItemStyle BackgroundColor="Transparent" BorderColor="Transparent" BorderLocation="None" BorderWidth="0"/> </telerik:RadListView.ItemStyle> <telerik:RadListView.ItemTemplate > <DataTemplate> <telerik:ListViewTemplateCell > <telerik:ListViewTemplateCell.View> <telerik:RadBorder BorderColor="#268ecd" Margin="3,6" BorderThickness="0" CornerRadius="18" > <StackLayout Orientation="Horizontal" Style="{StaticResource ListItem}" VerticalOptions="Start" Padding="0" BackgroundColor="White"> <StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" Spacing="0" Padding="10, 15, 0, 15"> <StackLayout Orientation="Vertical" HorizontalOptions="StartAndExpand" Spacing="5"> <Label Text="{Binding Code}" Style="{StaticResource ListHeader}" TextColor="{StaticResource BlueColor}" /> <Label Text="{Binding Description}" Style="{StaticResource ListInfo}" TextColor="{StaticResource LightBlueColor}" /> <Label MaxLines="2" LineBreakMode="TailTruncation" Text="{Binding FullPath}" Style="{StaticResource ListInfo}" TextColor="{StaticResource LightGreyColor}" /> </StackLayout> </StackLayout> </StackLayout> </telerik:RadBorder> </telerik:ListViewTemplateCell.View> </telerik:ListViewTemplateCell> </DataTemplate> </telerik:RadListView.ItemTemplate> </telerik:RadListView> </StackLayout> </AbsoluteLayout> </tools:KeyboardView> </telerik:RadSideDrawer.MainContent> </telerik:RadSideDrawer> </Grid>
I am trying to use the pie chart on my content page but it is not rendering. My XAML is:
<telerik:RadPieChart Grid.Row="0" x:Name="chart" HandlerChanged="chart_HandlerChanged">
<telerik:RadPieChart.BindingContext>
<vm:SystemStatsViewModel />
</telerik:RadPieChart.BindingContext>
<telerik:RadPieChart.Series>
<telerik:PieSeries ShowLabels="True"
RadiusFactor="0.8"
ValueBinding="Value"
ItemsSource="{Binding LoadChartItems}" />
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
The view model returns sample data just to get the chart to render:
public ObservableCollection<LoadChartItem> LoadChartItems { get => new() {
new() { Category = "Test1", Value = 52 },
new() { Category = "Test2", Value = 19 },
new() { Category = "Test3", Value = 82 },
new() { Category = "Test4", Value = 23 }
};
}
There are other controls (labels, grids) on the page that render properly using the view model so I can rule out a bug in my view model. I have tried rendering the chart with and without the:
<telerik:RadPieChart.BindingContext>
<vm:SystemStatsViewModel />
</telerik:RadPieChart.BindingContext>
since the page references the SystemStatsViewModel in the bindingcontext. The control just never appears or throws an error of any kind. Any help or insights are appreciated.
I attempted to add a dropdown in RadListView. However, when running on an iOS device, clicking the dropdown interferes with the pull-to-refresh functionality, whereas it works fine on Android.
RadListView
custom dropdown popup in RadListView
custom drop-down popup
Hi,
I am using the ListPickerButtonToolbarItem list picker with MVVM and binding to an observable property,
If I set the selected item to null (so none is selected) this doesnt seem to deselect it
Its not highlighted the same as when its selected but it is still styled differently to the other other items and looks selected when I go back to choose another item.
How do we deselect the item or style the selected item in the toolbar ListPickerButtonToolbarItem so at least it looks the same selected or not selected?
Hi,
I updated VS to the last version and now everytime i add a datagrid to the Xaml it crashes everything. In a past project i could add all the datagrids i wanted no problem, but now even in a new Maui project with only a MainPage i can't even just putting a <telerik:RadDataGrid and pressing / to close the tag because it crashes.
I guess this could be more a visual studio problem, but it's there a work around?
I'm trying the 6.5 trial controls in a MAUI project on net 8.0.
Thanks
EDIT: Reinstalled VS and repair it after, it works now. Admin can close the question
I'm trying to build a donet maui app but when it try to compile the project for ios i get this error, i don't now what this means.
/ usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7124/targets/Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1:
Undefined symbols for architecture arm64:
“_objc_msgSend$weekOfMonth”, referenced from:
-[TKChartDateTimeCategoryAxis getDateComponentValue:] in TelerikUI.a(TKChartDateTimeCategoryAxis.o)
“_objc_msgSend$weekOfYear”, referenced from:
-[TKChartDateTimeCategoryAxis getDateComponentValue:] in TelerikUI.a(TKChartDateTimeCategoryAxis.o)
“_objc_msgSend$weekdayOrdinal”, referenced from:
-[TKChartDateTimeCategoryAxis getDateComponentValue:] in TelerikUI.a(TKChartDateTimeCategoryAxis.o)
“_objc_msgSend$getDateComponentValue:“, referenced from:
-[TKChartDateTimeCategoryAxis numericValue:] in TelerikUI.a(TKChartDateTimeCategoryAxis.o)
-[TKChartDateTimeCategoryAxis updateRangeWithSeries:forKey:] in TelerikUI.a(TKChartDateTimeCategoryAxis.o)
“_objc_msgSend$initWithLow:high:“, referenced from:
-[TKChartRangeDataPoint initWithX:low:high:] in TelerikUI.a(TKChartRangeDataPoint.o)
-[TKChartRangeDataPoint initWithY:low:high:] in TelerikUI.a(TKChartRangeDataPoint.o)
“_objc_msgS (AppPedidosMobile)