Unplanned
Last Updated: 10 Apr 2026 09:43 by ADMIN
Pavani
Created on: 10 Apr 2026 09:36
Category: Chart
Type: Bug Report
0
Chart: [Android] xy grid lines are not visible when using custom palette
when setting a custom palette, the xy grid lines are not visible on Android
1 comment
ADMIN
Didi
Posted on: 10 Apr 2026 09:43

Workaround:

Access the native chart inside the handler changed and define the gridlines:

 <telerik:RadCartesianChart x:Name="myChart" HandlerChanged="myChart_HandlerChanged">


private void myChart_HandlerChanged(object sender, EventArgs e)
{
    this.UpdateChart();
}
private void UpdateChart()
{
    var platformView = this.myChart.Handler.PlatformView;
#if ANDROID
    var platformChart = (Com.Telerik.Widget.Chart.Visualization.CartesianChart.RadCartesianChartView)platformView;
    var platformSeries = (Com.Telerik.Widget.Chart.Visualization.CartesianChart.Series.Categorical.BarSeries)platformChart.Series.Get(0);
    platformChart.Grid = new Com.Telerik.Widget.Chart.Visualization.CartesianChart.CartesianChartGrid();
    platformChart.Grid.MajorLinesVisibility = Com.Telerik.Widget.Chart.Visualization.CartesianChart.GridLineVisibility.Xy;
    platformChart.Grid.LineThickness = 3;
    platformChart.Grid.LineColor = Android.Graphics.Color.Gray;
    platformChart.Grid.VerticalLineThickness = 3;
    platformChart.Grid.VerticalLineColor = Android.Graphics.Color.Gray;
#endif   
}

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.