Telerik Forums
UI for Blazor Forum
3 answers
379 views

I have a use case where I need to write an SSRS report that is based off of the data displayed in a TelerikGrid. I obviously have a reference to the source data the the grid is displaying but if the user filters the grid and then wants to run the report I can't figure out how to get a reference to the filtered data the grid is displaying. Thinking I should be able to respond to the OnStateChanged event but I can't see how to get a reference to the IEnumerable from the GridStateEventArgs object which I would need to package up and send to my SSRS report. If I respond to OnRead I can get the data using the ToDataSourceResult extension method but then the default filtering doesn't work. I don't need to implement custom filtering so is there an easy way to get the data I need?

Marin Bratanov
Telerik team
 answered on 30 Mar 2021
4 answers
657 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.2K+ 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.2K+ 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
891 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
428 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
713 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
294 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
325 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
397 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?