Telerik Forums
UI for Blazor Forum
1 answer
163 views
Is it possible to add the Grid control or a component with a grid to one of the forms within a Blazor Wizard?
George
Top achievements
Rank 1
Iron
 updated answer on 29 Sep 2022
2 answers
1.8K+ views

Is it possible to adjust the width of the popup to the length of the items only if it exceeds the width of the control?

Thus default it has the same width as the control, unless there are longer items, then it expands to the right.

The problem I have now is that when using Virtual Scrolling you have to specify an item height.  Text that doesn't fit in de dropdown width is wrapped to a new line, overlapping the next line. I would like instead of wrapping the test the popup to adjust its width to accommodate these texts.

I tried it with MinWidth, but don't know what value to specify, 100% doesn't work because it is rendered at a different place in the DOM.

 

Kind regards,
Kees Alderliesten

Kees
Top achievements
Rank 2
Iron
Iron
 answered on 28 Sep 2022
1 answer
570 views

I created my application using ASP.NET Core Blazor. I am using the Bootstrap Template. I investigated the CSS that is being generated and the class element is as shown below in the html snippet:

<tr role="row" class="k-master-row"

I am trying to do conditional formatting of cells. The cell is highlighting correctly. I am using this sample to do that

https://docs.telerik.com/blazor-ui/knowledge-base/grid-conditional-cell-background?&_ga=2.240489920.275428779.1663859668-574397901.1663859668#css-only-approach

I am using the first approach OnCellRender with OnRowRender. It only happens if there is one row. My Grid is set to a height of 900 px and the row height is 60 and I am using virtual scrolling only for rows and not columns.  

Svetoslav Dimitrov
Telerik team
 answered on 28 Sep 2022
0 answers
269 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
417 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
214 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
171 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
948 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
280 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
190 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?