Telerik Forums
UI for Blazor Forum
1 answer
21 views

Hi,
since jQuery has Telerik styles via SASS, is it SASS also available for Blazor? If so, is there direct support for XAML mixins and syntax changes for MAUI clients? Since we want to build Razor pages and WASM for MAUI client with existing Telerik theme which would make consistent appearance within existing jQuery applications ...

Kind regards.

Svetoslav Dimitrov
Telerik team
 answered on 21 Feb 2024
1 answer
253 views

I want my end users to be able to select a "series palette" for the telerik charts I created.

Though I can easily create a handler that assigns colors to series when I create them, I was wondering where the default colors come from when no color was assigned to the series, and if I can "override" this somehow for a specific chart.

I have Examined the source code somewhat, but up to now to no avail.

1) Is it possible to set the "default colors palette" on <TelerikChart > or <ChartSeriesItems> level, but without setting a specific color on <ChartSeries> level?

2) Is there another way (eg CSS) to define the series color palette for a chart series that would not change the palette for other charts on the same page?

3) How could I address the (default color) palette if I wanted to assign eg each column in a column chart with a color from the default palette?

 

TIA - Hans

Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 27 Mar 2023
1 answer
577 views

Attached is the screen shot which shows both Color palette and Color picker in the cell template of the grid. How can I set the Color picker width similar to the Color palette. I have tried setting the class of the Color picker to be width 100 % or fit-content or stretch. But none of them seem to be working.

Attached image file marks the color picker in red and color palette in blue. The color picker should have width similiar to the palatte.

Below is the code and css style.

<GridColumn Field="Color" Title="Color" Width="100px" TextAlign="ColumnTextAlign.Center" FieldType="@(typeof(string))" >              
                        <Template>
                                @{
                                     @colorUpdate.ColorCode;                                        
<TelerikColorPicker @bind-Value="colorUpdate.ColorCode" ValueFormat="ColorFormat.Hex" Class="k-colorpicker" > 
                                            <ColorPickerViews>
                                                <ColorPickerGradientView ShowOpacityEditor="false" Format="ColorFormat.Hex">
                                                </ColorPickerGradientView>                                                
                                            </ColorPickerViews>                       
                                        </TelerikColorPicker>     
 <TelerikColorPalette Colors="@ColorList" TileHeight="25px" TileWidth="25px"  >                                            
                                        </TelerikColorPalette>                      
                                }                
</Template>
</GridColumn>



.k-colorpicker {
    width: stretch;  /*tried using 100% or fit-content */
}

.k-colorpicker .k-selected-color {
    width: stretch; /*tried using 100% or fit-content */
}

span.k-colorpicker{
 width: stretch; /*tried using 100% or fit-content */
}

Thank you for your help.

Beena.

Dimo
Telerik team
 answered on 24 Mar 2022
0 answers
63 views

Hi

It's necessary to set the color palette for the chart, the color data for the color palette is taken from the sql data source.

Is there any way to get all data in one go from sql data source in a user function?

 

Andrey
Top achievements
Rank 1
 updated question on 29 Jun 2021
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?