Telerik Forums
UI for Blazor Forum
2 answers
805 views

Hi, i would like to hide the row showed when the grid has no data.

I tried set an empty NoDataTemplate as you can show in this sample, but there is still an empty row in the grid.

https://blazorrepl.telerik.com/mwOKORks03LqmocU06

My actual workaround is using css:

<TelerikGrid Class="hide-no-data-template">...</TelerikGrid>

.hide-no-data-template .k-grid-norecords {
    display: none;
}

or set the diplay attribute via JSInterop for specific cases.

I think when NoDataTemplate is empty you should not show an empty row but simply hide the template row.

Can be solved?

 

Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
 answered on 06 Jun 2022
1 answer
413 views

If i set the TextAlign property on GridColumn it work well for read Template, but not for EditorTemplate.

It's a bug?

There is a workaround?

Thanks

Svetoslav Dimitrov
Telerik team
 answered on 06 Jun 2022
0 answers
417 views

Hi,

Have been focusing on some backend stuff and missed a couple released of Telerik Blazor. Have gone through docs for the missed releases but can't see anything to assist me -

 

After updating to latest, it seems to have broken my ability to export properly.

I am using OnRead and returning the data via the args myself from the database. When I export a CSV or Excel file for a grid which has data in it, I get the headers for each column but I get no data.

Another method I am using elsewhere, though I haven't taken much time to look at it just yet, is using GridRef.Data, where GridRef is an @ref to my Grid, and this also appears to be broken and not be getting any data, yet the grid is showing data clearly in it returned via the OnRead.

Is there something I need to have changed with one of the recent updates?

Pingu
Top achievements
Rank 1
Iron
Iron
 asked on 06 Jun 2022
1 answer
179 views

Hi,

I have a question which is how to  show a field which is one field of child object inside object in blazor grid popup edit interface . Thanks

 

JM
Top achievements
Rank 1
Iron
 answered on 05 Jun 2022
1 answer
258 views

Hi,

I got the following error (in 10805 line of all.css file) while updating @progress/kendo-theme-bootstrap@4.43.0 to @progress/kendo-theme-bootstrap@5.4.1 .

Debug in all.scss:

What should i do to solve this problem?

Teya
Telerik team
 answered on 03 Jun 2022
0 answers
247 views
I have a parent component with a TelerikWindow. The parent component has a bool value that is used via @bind-Visible (two-way binding) to show or hide the TelerikWindow. Once the window was visible (i.e. the bound parameter is set to true), a call to StateHasChanged() causes the window to become visible for a short moment (< 1 sec). 

Since I am using two-way binding at this point, I would expect that hiding the window in both the parent and TelerikWindow components would cause the visibility value to be set to false, so that when StateHasChanged() is called, the window will not become visible again, even for a brief moment.


Martin
Top achievements
Rank 1
 asked on 03 Jun 2022
1 answer
263 views

Hello,

Is there any way to load data for a the DropDownList when the Dropdown gets opened, instead of when it gets initialized.

I've looked over examples and docs and also tried a workaround with virtualization, but even that loads the first page on intialization.

I  have a UI with multiple DropDownList instances on the page that might not be interacted with, and I'd like to defer loading the data until the user actually interacts with them. 

Thank you!

Nadezhda Tacheva
Telerik team
 answered on 03 Jun 2022
1 answer
177 views

Hello all 

 

I am an experienced software developer , but still somewhat a newbie to Blazor and Telerik, so bear with me ;)

I am creating telerik charts, and the charts display historical as wel as future data (in multiple series), and I need the data separated by a "now" marker called "probedate".

I have managed to use ChartCategoryAxisPlotBands on my column charts to have a marker where the current probedate resides. However, this trick does work for e.g. area charts and line charts. (See screenshot)

I have also tried to adding an extra vertical axis, but this didn't work out as I hoped either.

In a nutshell: I would like to have some kind of vertical marker that can show me the position of the probedate in the chart, this can be eg a vertical line, or a chart background color change on the probedate or some other nifty solution.

TIAHans

 


<TelerikChart Transitions=false>
            <ChartTooltip Visible="true" />
            <ChartTitle Text="@nameof(DepreciationBookValueHarvesterDto.Depreciations)" />
            <ChartLegend Visible="false" />
            <ChartSeriesItems>
                <ChartSeries Type="ChartSeriesType.Column" Data="@data?.Data?.Depreciations?.Select(x => new { Value = x.Value })" Field="@nameof(DateTime_DoubleDto.Value)" />
            </ChartSeriesItems>
            <ChartCategoryAxes>
                <ChartCategoryAxis Categories="@ChartUtils.GetXAxisDateLabels(data?.Data?.Depreciations,DateResolution)"
                                   AxisCrossingValue="@ChartUtils.yaxiscrossingvalues">
                    <ChartCategoryAxisLabels Step="@ChartUtils.CategoryAxisLabelStep(data?.Data?.Depreciations?.Count)">
                        <ChartCategoryAxisLabelsRotation Angle="-45" />
                    </ChartCategoryAxisLabels>
                    <ChartCategoryAxisPlotBands>
                        <ChartCategoryAxisPlotBand From="ChartUtils.PositionOfKey(data?.Data?.Depreciations,probeDate)" Color="Blue" Opacity="0.1" />
                    </ChartCategoryAxisPlotBands>
                </ChartCategoryAxis>
            </ChartCategoryAxes>
            <ChartValueAxes>
                <ChartValueAxis AxisCrossingValue="@ChartUtils.xaxiscrossingvalues">
                    <ChartValueAxisTitle Text="@ValueUnitAxisTitle()" />
                    <ChartValueAxisMajorGridLines Visible="false" />
                </ChartValueAxis>
            </ChartValueAxes>
        </TelerikChart>
        <TelerikChart Transitions=false>
            <ChartTooltip Visible="true" />
            <ChartTitle Text="@nameof(DepreciationBookValueHarvesterDto.BookValue)" />
            <ChartLegend Visible="false" />
            <ChartSeriesItems>
                <ChartSeries Type="ChartSeriesType.Area" Data="@data?.Data?.BookValue?.Select(x => new { Value = x.Value })" Field="@nameof(DateTime_DoubleDto.Value)" />
            </ChartSeriesItems>
            <ChartCategoryAxes>
                <ChartCategoryAxis Categories="@ChartUtils.GetXAxisDateLabels(data?.Data?.BookValue,DateResolution)"
                                   AxisCrossingValue="@ChartUtils.yaxiscrossingvalues">
                    <ChartCategoryAxisLabels Step="@ChartUtils.CategoryAxisLabelStep(data?.Data?.BookValue?.Count)">
                        <ChartCategoryAxisLabelsRotation Angle="-45" />
                    </ChartCategoryAxisLabels>
                    <ChartCategoryAxisPlotBands>
                        <ChartCategoryAxisPlotBand From="ChartUtils.PositionOfKey(data?.Data?.BookValue,probeDate)" Color="Blue" Opacity="0.1" />
                    </ChartCategoryAxisPlotBands>
                </ChartCategoryAxis>
            </ChartCategoryAxes>
            <ChartValueAxes>
                <ChartValueAxis AxisCrossingValue="@ChartUtils.xaxiscrossingvalues">
                    <ChartValueAxisTitle Text="@ValueUnitAxisTitle()" />
                    <ChartValueAxisMajorGridLines Visible="false" />
                </ChartValueAxis>
            </ChartValueAxes>
        </TelerikChart>

 

 

Dimo
Telerik team
 answered on 02 Jun 2022
1 answer
232 views

Hi,

According to https://docs.telerik.com/blazor-ui/components/wizard/structure/buttons

"If the next step is disabled, the ["Next"] button will also appear as disabled."

Can I ask why this is?  Shouldn't it simply take you to the next enabled step?

This is the behaviour I need - is there a workaround?

Thanks,
Dean


Dimo
Telerik team
 answered on 02 Jun 2022
1 answer
214 views

Hi is there a way to change the text of the fileselect button.

Thanks.

Svetoslav Dimitrov
Telerik team
 answered on 02 Jun 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?