Telerik Forums
UI for Xamarin Forum
1 answer
332 views

How to common the grid header styles (Dark & light), by repeating each column header for light & dark theme it'll increase the number of code, need to common all headers styles.

please give me a solution...

Thanks...

<telerikDataGrid:DataGridTextColumn.HeaderStyle>
    <AppThemeBinding>
        <AppThemeBinding.Light>
            <telerikDataGrid:DataGridColumnHeaderStyle 
                    BackgroundColor="#ffffff"
                    BorderColor="#F0EFF3"
                    BorderThickness="1"/>
        </AppThemeBinding.Light>
        <AppThemeBinding.Dark>
            <telerikDataGrid:DataGridColumnHeaderStyle 
                    BackgroundColor="#2a3137"
                    BorderColor="#505d68"
                    BorderThickness="1"/>
        </AppThemeBinding.Dark>
    </AppThemeBinding>
</telerikDataGrid:DataGridTextColumn.HeaderStyle>

 

Didi
Telerik team
 answered on 22 Sep 2021
0 answers
133 views

Hello,

I created an interface using library 2020.2.624.1 in Xamarin Forms project in which there are two different chart:

- a pie chart, where are showed all my data collection
- a stacked bar chart, in which are showed different data derived from the previous dataset.

In my ViewModel I calculate data for the pie chart and then data for the bar chart.  In my XAML View, each chart has different "ItemSource".

What happened is that, at the end of calculation, the same data showed (correctly) in the stacked bar chart are also showed (incorrectly) in the pie chart (see attached image).

On the other hand, when I exclude (comment) calculation for the stacked bar chart, the correct dataset is showed on the pie chart.

I am not able to find any solution.

Thanks in advance,

Davide

Davide
Top achievements
Rank 1
Iron
 asked on 15 Sep 2021
1 answer
494 views

Hi, I'm getting the following error when building my Xamarin.Forms project on iOS. Weirdly enough it was working fine the other day and now it consistently gives me this error. The application itself launches on iOS but half the pages are missing and some pages are missing components. 

The type initializer for 'Telerik.XamarinForms.SkiaSharp.SkiaPainter' threw an exception.  
  Exception of type 'System.Exception' was thrown.
  Telerik.XamarinForms.Common
  at Telerik.XamarinForms.Common.NativeResourceProvider.ToPlatformPixels (System.Double dip) [0x00000] in <c043edb38e3c40609bb9cbd0df9066be>:0 
  at Telerik.XamarinForms.SkiaSharp.SkiaPainter.UpdateExpectedPpxToDpRatio () [0x00000] in <5c673afa45f14dd59e1a272b3f01ee1a>:0 
  at Telerik.XamarinForms.SkiaSharp.SkiaPainter..cctor () [0x00017] in <5c673afa45f14dd59e1a272b3f01ee1a>:0 


    at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Telerik.XamarinForms.Primitives.RadPath..ctor () [0x0001b] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.Animation1.CreatePath (System.Int32 figuresCount, System.Double thickness) [0x0005d] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.Animation1..ctor (Xamarin.Forms.Color color) [0x00049] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.AnimationFactory+<>c.<.cctor>b__1_0 (Xamarin.Forms.Color p) [0x00000] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.AnimationFactory.CreateAnimation (Telerik.XamarinForms.Primitives.AnimationType animationType, Xamarin.Forms.Color color) [0x00019] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.RadBusyIndicator.PrepareAnimations () [0x00029] in <38c0677356f14f22a10877afa8da8671>:0 
  at Telerik.XamarinForms.Primitives.RadBusyIndicator..ctor () [0x0002d] in <38c0677356f14f22a10877afa8da8671>:0

    
Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Sep 2021
1 answer
491 views
Hello, how to implement double-click event
Yana
Telerik team
 answered on 31 Aug 2021
1 answer
139 views

Hello Guys,

According to the meta data,

The Xamarin RichTextEditor's SelectionRange object is settable


 //
// Description:
//     Gets or sets the selection range of the text in the Telerik.XamarinForms.RichTextEditor.RadRichTextEditor.
public RichTextSelectionRange SelectionRange { get; set; }

So I tried to "set" the SelectionRange by code:


 public void SetSelecionRange(int startIndex, int endIndex)
        {
            EditBox.SelectionRange = new RichTextSelectionRange(startIndex, endIndex);
        }

But actually nothing happens, and I am not sure the how the start and end index of the selection is configured, perhaps based on the html code index? or plain text index?

I am not able to find the guide for setting selection range.

 

Please offer some help.

Yana
Telerik team
 answered on 31 Aug 2021
0 answers
130 views
The display box and the drop-down box in the combox are a bit far apart, how to adjust the distance between them
guo
Top achievements
Rank 1
Iron
 asked on 20 Aug 2021
1 answer
133 views
Is it possible to hide certain series in the legend e.g. when they have no series data in it?
Yana
Telerik team
 answered on 18 Aug 2021
0 answers
149 views
Good Evening!
I have a RadLegend linked to a RadCartesianChart with a horizontal orientation.
In summary there are five ScatterSplineSeries and the problem is that the width of my mobile devices is not wide enough to display all five correctly.
The correct behaviour of the radlegend would be to wrap some of the legend items to the next line, but this isn´t going to happen.
How can we fix that? I cant display the legend vertically...

best regards
Nico
Top achievements
Rank 1
Veteran
Iron
 asked on 17 Aug 2021
1 answer
210 views

I'm using <telerikInput:RadCalendar> with All Day option, in which I am able to set the background color dynamically for all appointments within the time slots, but I cannot able to set the background color dynamically for All Day slot alone.

 

 

Yana
Telerik team
 answered on 17 Aug 2021
1 answer
511 views

Hi,

I'm trying to apply Light & Dark theme changes to telerikDataGrid rows and headers,

Header code snippet

 <telerikDataGrid:DataGridTextColumn 
                            HeaderText="StartedAt"                                                                
                            PropertyName="StartedAt">
                            <telerikDataGrid:DataGridTextColumn.HeaderStyle>
                                <telerikDataGrid:DataGridColumnHeaderStyle 
                                    IsOptionsButtonVisible="True"
                                    OptionsButtonMargin="0,0,5,0"
                                    BorderThickness="1"/>
                            </telerikDataGrid:DataGridTextColumn.HeaderStyle>
</telerikDataGrid:DataGridTextColumn>

 

<telerikDataGrid:RadDataGrid.RowBackgroundStyle>
     <telerikDataGrid:DataGridBorderStyle
         BackgroundColor="#ffffff"
         BorderColor="#F0EFF3"
         BorderThickness="1" />
</telerikDataGrid:RadDataGrid.RowBackgroundStyle>

 

abouve code snippet has changed to Like this to apply theme changes

<telerikDataGrid:RadDataGrid.RowBackgroundStyle>
      <telerikDataGrid:DataGridBorderStyle
              BackgroundColor="{AppThemeBinding Dark={StaticResource SecondryBackgroundColorLight},
                                            Light={StaticResource SecondryBackgroundColorLight}}"
              BorderColor="{AppThemeBinding Dark={StaticResource MainBorderColorDark},
                                                                            Light={StaticResource ListItemBorderColorLight}}"
              BorderThickness="1" />
</telerikDataGrid:RadDataGrid.RowBackgroundStyle>

 

But above way is not working, is there any working way to set theme changes to the Telerik data grid header body & text,

Please share with me.

 

Thanks...

Yana
Telerik team
 answered on 11 Aug 2021
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?