Telerik Forums
UI for Blazor Forum
4 answers
609 views
I have clients that want to set preferences on which columns in a grid they want visible/hidden when the app loads.  Is there a way to bind the checkbox values in a column chooser to a dataset?
Kristian
Telerik team
 answered on 29 Mar 2021
4 answers
2.0K+ views
I am trying to create some end-to-end automation tests for the grid using Selenium WebDriver. I cannot seem to find out how to access the grids data without just treating it as a html table. I would like to be able to check the search box, filters, grouping etc are all working.... is this possible or do I have to buy Telerik's Test Studio? 
Marin Bratanov
Telerik team
 answered on 29 Mar 2021
1 answer
3.1K+ views

Hi,

How do I set the default number of decimal places for all "NumericTextBoxes" to 2. 

Currently all NumericTextBox decimal places are default to 3.

 

I have multiple Grids with decimal columns which can be edited Inline. 

 

<GridColumn Field="@nameof(Item.Price)" Title="Price" DisplayFormat="{0:N2}"  />

 

All numeric textboxes in edit mode are set to 3 decimal places.

Why is the default three decimal places?

 

 

Marin Bratanov
Telerik team
 answered on 29 Mar 2021
1 answer
787 views

The following code leads to an infinite loop and call stack exhaustion.
How to use the grid with an ObservableCollection as data source?

@page "/Test"
@using System.Collections.ObjectModel
 
<TelerikGrid Data="_data" Pageable="true" OnRead="@Read"/>
 
@code {
    private readonly ObservableCollection<object> _data = new();
 
    protected Task Read(GridReadEventArgs args)
    {
        Console.WriteLine("Read");
        _data.Add(new());
        return(Task.FromResult(0));
    }
}
Marin Bratanov
Telerik team
 answered on 29 Mar 2021
1 answer
369 views

If you look at the two attached screen shots.  The date range picker is initialized with a start and end date.  If the start date is changed, the end date is reset to 1/1/0001.

I have configured the date range picker as:

<TelerikDateRangePicker @bind-StartValue="@NewRecSet.StartDate" @bind-EndValue="@NewRecSet.EndDate" Min="DateTime.Today"/>

 

My expectation is that the end date should not change from what was set as the initial value.

Svetoslav Dimitrov
Telerik team
 answered on 26 Mar 2021
3 answers
658 views

I was wondering if anyone has tried a more advanced drawer template that works with a collapsible hierarchy menu that is still fully useable in its collapsed form?

The menu found in TFS / Azure DevOps is an excellent  example of something like this.  The selected section shows all the subsections and other sections become flyouts for the subsection.

A combo of the Drawer and TreeView or Context Menu might work well for this scenario

 

 

 

Marin Bratanov
Telerik team
 answered on 26 Mar 2021
1 answer
222 views

In my button group, I have a set of buttons, where only one button at a time is allowed to be checked.

I would like to add a separator between specific buttons, just to make the UI easier to read.

I don't see a <ButtonGroupSeparator> or <ButtonGroupSpacer> element.

Is adding a CSS style, that increases the left or right padding, to specific <ButtonGroupButton> the best approach?

Svetoslav Dimitrov
Telerik team
 answered on 25 Mar 2021
3 answers
280 views

I have 3 sections A, B and C. Each is a tilelayoutitem. I have to calculate the rowspan for each with a C# function. for example section A has 47 rows, B has 17 and C has 9. below is the snippet. when it renders there is a bunch of whitespace after the 47 rows in section A, a moderate about for the 17 rows in B and C shows up fine with only a little bit of whitespace. I don't know how to make each tilelayoutitem fit its content properly.  thanks

            @foreach (var item in Groups)
            {
                <TileLayoutItem HeaderText="@item" ColSpan="6" Class="tile-with-overflow" RowSpan="@CalculateRowSpan(@item)">
                    <Content>
                            <SaleDetail Group="@item" FormatDetails="@SalesFormatDetails"></SaleDetail>
                    </Content>
                </TileLayoutItem>
            }

Marin Bratanov
Telerik team
 answered on 25 Mar 2021
5 answers
365 views

Hi,

UI for Blazor does not have a native Map component. I have managed to include a Kendo UI for jQuery Map component in my Blazor WASM project but now want to bind the markers to data provided by the Blazor page hosting the component. Is this possible? If so how, if not what are the alternatives?

Regards

Marin Bratanov
Telerik team
 answered on 25 Mar 2021
3 answers
1.9K+ views

     I'm essentially trying to achieve what's been solved for Kendo UI for JQuery in Blazor Grid: https://docs.telerik.com/kendo-ui/knowledge-base/grid-ellipsis-text-show-tooltip

"How can I show ellipsis in the Grid cells where the text does not fit the specified width and display the full content in a tooltip when the user hovers over the cell?"

Thanks

Marin Bratanov
Telerik team
 answered on 25 Mar 2021
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?