Telerik Forums
UI for Blazor Forum
1 answer
230 views

Hi

I'm using treeview with Hierarchical data

Is it possible change the css for the text ? I need to change some char (color/bold) in some text near the icon.

Otherwise how is possibile to use the template with a list of item with parentid ?

Tnx

 

Marin Bratanov
Telerik team
 answered on 13 Oct 2020
2 answers
181 views

Code:

01.@page "/"
02.@layout MainLayout
03. 
04.<TelerikChart>
05.    <ChartTitle Text="Unrecoverable Errors Per Minute vs. Signal Level" />
06.    <ChartCategoryAxes>
07.        <ChartCategoryAxis Type="@ChartCategoryAxisType.Category" />
08.    </ChartCategoryAxes>
09.    <ChartValueAxes>
10.        <ChartValueAxis>
11.            <ChartValueAxisLabels Visible="true" />
12.        </ChartValueAxis>
13.    </ChartValueAxes>
14.    <ChartTooltip Visible="true">
15.        <Template>
16.            @{
17.                // Null for ChartData2 series
18.                var data = context.DataItem as ModelData;
19.                <div class="card" style="font-size: 0.8rem; color: black">
20.                    <span>@($"{data.Value}")</span>
21.                    <span>@($"{data.Type}")</span>
22.                </div>
23.            }
24.        </Template>
25.    </ChartTooltip>
26.    <ChartSeriesItems>
27.        <ChartSeries Type="ChartSeriesType.Line"
28.                     Data="@ChartData1"
29.                     CategoryField="@nameof(ModelData.Type)"
30.                     Field="@nameof(ModelData.Value)">
31.        </ChartSeries>
32.        <ChartSeries Type="ChartSeriesType.Line"
33.                     Data="@ChartData2"
34.                     CategoryField="@nameof(ModelData.Type)"
35.                     Field="@nameof(ModelData.Value)">
36.        </ChartSeries>
37.    </ChartSeriesItems>
38.</TelerikChart>
39. 
40.@code {
41.    public class ModelData
42.    {
43.        public string Type { get; set; }
44.        public double Value { get; set; }
45.    }
46. 
47.    public List<ModelData> ChartData1 = new List<ModelData>() { new ModelData() { Type = "S1", Value = 1 } };
48.    public List<ModelData> ChartData2 = new List<ModelData>() { new ModelData() { Type = "S2", Value = 5 } };
49.}

 

Getting runtine error "System.NullReferenceException" at line 18 while mouse hover on chartdata2 series point 

Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 13 Oct 2020
5 answers
482 views

How do you apply a class - text formatting to the tabstrip?

 

thx again

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 11 Oct 2020
1 answer
250 views
Would be fine if when you click on a filterable combobox the whole text in it will be selected, so you can click and start digit new text filter without delete the old text before.
Marin Bratanov
Telerik team
 answered on 09 Oct 2020
3 answers
2.2K+ views
How can I programmatically export the grid to excel?  I have a right click context menu that has an option for "export".  When I click this item I need to perform the export.
Marin Bratanov
Telerik team
 answered on 09 Oct 2020
1 answer
301 views

Any plans for a Gantt Chart?  

Any ideas how I can use the Ajax Gantt Control in a Blazor app / page?

thx again

Marin Bratanov
Telerik team
 answered on 08 Oct 2020
3 answers
718 views

1. Replace MainLayout with TelerikDrawer https://github.com/telerik/blazor-ui/tree/master/drawer/template
2. Place simple Grid with detail template https://docs.telerik.com/blazor-ui/components/grid/hierarchy
3. Bug - Latest column from parent grid becomes disabled for sorting.

<TelerikGrid Data="salesTeamMembers" @ref="Grid" Sortable="true" FilterMode=@GridFilterMode.FilterMenu Height="780px">
    <DetailTemplate>
           <span>Any template</span>
        </DetailTemplate>
    <GridColumns>
        <GridColumn Field="Id"></GridColumn>
        <GridColumn Field="Name" ></GridColumn>
        <GridColumn Field="Order"></GridColumn>
    </GridColumns>
</TelerikGrid>

If remove detail tempate, all columns becomes availavle for sorting as expected

Marin Bratanov
Telerik team
 answered on 08 Oct 2020
1 answer
279 views

The Title attribute on the ListViewCommandButton does not appear to work.

I have a button defined  like this:

<ListViewCommandButton Command="Edit" Enabled="@Ticket.Active" Class="float-right ml-1" Icon="@IconName.Edit" Title="Edit"></ListViewCommandButton>

 

When it renders, the title attribute is not being added to the button:

<button class="float-right mr-1 k-button telerik-blazor k-button-icon" tabindex="0" aria-disabled="false" type="button">
       <span class="k-icon k-i-edit"></span>
</button>
Svetoslav Dimitrov
Telerik team
 answered on 07 Oct 2020
7 answers
5.2K+ views

Hey guys, I currently have a grid that outputs values from a database within a grid. This works well however I have one field that contains sets of Url's. This is currently output as text.

Is there anyway to make it a href/link or can you only output text within the grid?

Thanks,

Cameron

Marin Bratanov
Telerik team
 answered on 07 Oct 2020
1 answer
3.0K+ views

What's the best way to add a textbox in Blazor with phone number formatting?

For example the data is 1112223333 but you want it to appear as (111) 222-3333.

Marin Bratanov
Telerik team
 answered on 06 Oct 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?