Telerik Forums
UI for Blazor Forum
0 answers
174 views

Hi!

In the blazor gantt demo I can see that it should be possible to costumize the template for mouse over in the gantt-chart, but it does not seem to work. It flickers and does not display any information.

Could you please update the example page with a working example?

 

Demopage for template found here: https://demos.telerik.com/blazor-ui/gantt/templates

Example page for template not working here: https://blazorrepl.telerik.com/QwOxHlca49EQ1rgY03?_ga=2.157260347.1214485172.1664189804-2039078829.1642166789&_gac=1.225176296.1661766526.CjwKCAjwx7GYBhB7EiwA0d8oe0Y9E6IZoONYcLxga7yZXoV9ivTM2XM7_bSIJqDDTHjJLd6GLJaQ5RoCJPkQAvD_BwE (also linked from the demo page)

 

Thanks in advance

Morten Poulsen

Morten
Top achievements
Rank 1
 asked on 27 Sep 2022
0 answers
347 views

I am using the Blazor TelerikFileManager.  When the user right-clicks on either a directory of file.  The rename, download, and delete option is displayed.  I need the options rename and delete to not show up.  It is my understanding this functionality is found in some versions of the product but not others. 

Example, https://demos.telerik.com/aspnet-mvc/filemanager

The example here only shows rename and delete. https://www.telerik.com/blazor-ui/file-manager

 

Rich Schone
Top achievements
Rank 1
Veteran
 asked on 23 Sep 2022
1 answer
166 views

Hi,

I have a use case to show the secondary text on dropdown list items. Is there a way currently to show the custom secondary text below the actual individual item in the dropdown list?

I've tried using the ItemTemplate by placing two divs one for option and other for custom description text and provided a separate class. But nothing worked out. 

My expectation is 

ProductName
DescriptionText

ProductName
DescriptionText

But content is being rendered as below


Thanks

Uday
Top achievements
Rank 1
Iron
 answered on 23 Sep 2022
0 answers
98 views

Hi

 

See this image , in our application we use the Telerik calender control en inpubox

How easy or difficult is to get this styling on all controls?


Eric

 

Paul
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 23 Sep 2022
1 answer
773 views

Hey!

Is there a way for me to change the colors of the Wizard Stepper?

I figured out that I can write css in my component that will override the css on the buttons, but I cannot figure out how to change the colors on the stepper. I'm terrible at css and am actually begining to work with Tailwind.

Used this to override the button:

.k-button-solid-primary {
        background-color: rgb(8 145 178);
        color: white;
        border-color: rgb(8 145 178);
    }

    .k-button-solid-primary:hover {
        background-color: rgb(165 243 252);
        color: white;
        border-color: rgb(165 243 252);
    }
Hristian Stefanov
Telerik team
 answered on 23 Sep 2022
1 answer
180 views

Category labels dont appear on the bottom of the grid?

As far as I understood it, it should pick up the names for the label from @strLCCategory

<ChartCategoryAxis Categories="@strLCCategory">

Which has: "2022-07", "2022-08" in it.

What I am getting:

No labels below that 0 line!

Code below

<GridLayoutItem Column="2" Row="5">
            <TelerikChart Height="400px"
                          Width="700px">
                <ChartTitle Text="Line Counts"></ChartTitle>
                <ChartTooltip Visible="true"></ChartTooltip>
                <ChartLegend Position="ChartLegendPosition.Right"></ChartLegend>

                <ChartSeriesItems>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries1Field"
                                 Data="@LineCounts"
                                 Width="2"
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries1Field">
                    </ChartSeries>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries2Field"
                                 Data="@LineCounts"
                                 Width="2"
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries2Field">
                    </ChartSeries>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries3Field"
                                 Data="@LineCounts"
                                 Width="2"                            
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries3Field">
                    </ChartSeries>
                </ChartSeriesItems>

                <ChartCategoryAxes>
                    <ChartCategoryAxis Categories="@strLCCategory">
                        @*<ChartCategoryAxisLabels>
                            <ChartCategoryAxisLabelsRotation Angle="-45" />
                        </ChartCategoryAxisLabels>*@
                    </ChartCategoryAxis>
                </ChartCategoryAxes>

               @* <ChartValueAxes>
                    <ChartValueAxis AxisCrossingValue="@AxisCrossingValue">
                        <ChartValueAxisLabels></ChartValueAxisLabels>
                    </ChartValueAxis>
                </ChartValueAxes>*@

            </TelerikChart>

        </GridLayoutItem>

private string[]? strLCCategory;
 List<chartLineCountsResult> LineCountsResults = new List<chartLineCountsResult>();
 LineCountsResults = clsDataAccessService.doChartInit("LineCounts", GlobalStuff.msDBEnvir);
 List<string> Categories = new List<string>();
 for (int i = 0; i < LineCountsResults.Count; i++)
            {
                Categories.Add(LineCountsResults[i].Periods.ToString());
            };        
 string[] strLCCategory = Categories.ToArray();

Can't see why the Category labels dont appear on the bottom of the grid?
Should be seeing:
2022-07  2022-08

Stamo Gochev
Telerik team
 answered on 23 Sep 2022
1 answer
96 views

I have a SP returning an unknown # of columns.

1st column is the time periods, 2022-07, 2022-08, etc

2nd and to many columns is for each line on the linechart I want to map.

eg: StarWars, Marvel, LOTRs, etc... could be more dont know what the values could be or how many.

The values of those columns is a int #. Example dataset.

Periods   StarWars   Marvel  LOTRs

2022-07       120         50         110

2022-08       125         55         105

So how do I attach that to a line chart control? I have read thru the demo codes but none seem to give me the answer.

In my old days, :), I would return a dataset as structured above and then bind that control to the dataset.

Then set the bottom axis to the Periods column values and the Up axis to the values in the other columns.

With the legend using the column names.

Not sure how to describe that in the data class as I dont know the column names that could be coming in.

And not sure what the controls tags should be looking like.

Any help would be appreciated.

Thanks in advance.

Deasun.

Stamo Gochev
Telerik team
 answered on 23 Sep 2022
1 answer
131 views

Hello,

I am using TelerikGrid with the FilterMode and OnRead property, but when I try to filter by a column that the data type in SQL is Text, it does not bring me results.

Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 22 Sep 2022
1 answer
218 views

Hi,

I want to localize "filter", "search","select all" and clear inside grid filtering.

I have found this example, but this is intended more to create your own personalized filter.

https://demos.telerik.com/blazor-ui/grid/overview

Is it possible to just modify those elements?

Stamo Gochev
Telerik team
 answered on 22 Sep 2022
1 answer
284 views

Hi,

I have this code...

protected void OnRead(GridReadEventArgs args)
{
    DataTable oDataTable = TiMain.DataSource.ToTable();
    DataSourceResult oDataSourceResult = oDataTable.ToDataSourceResult(args.Request);

    args.Data = (oDataSourceResult.Data as IEnumerable<Dictionary<string, object>>)
        .Select(oRow => oRow.ToDictionary(
            oCell => oCell.Key,
            oCell => (oCell.Value == DBNull.Value ? null : oCell.Value)
        ))
        .ToList();

    args.Total = oDataTable.Rows.Count;
}

According to my understanding of the documentation ToDataSourceResult should return only with rows that fit the page. But it always return all - sever hundred - of rows regardless of the current page...

Have I missed something?

Tsvetomir
Telerik team
 answered on 22 Sep 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?