Telerik Forums
UI for Blazor Forum
1 answer
108 views

Since upgrading from Telerik 3.0.1 to 3.1.0, DateInput controls no longer bind to properties for me. 

The following works in 3.0.1 but not 3.1.0

@page "/TestPage"

<p>Message: @Message</p>
<p>MyDate: @MyDate</p>

<TelerikTextBox @bind-Value="Message"></TelerikTextBox>
<TelerikDateInput @bind-Value="MyDate" Format="dd/MM/yyyy"></TelerikDateInput>

@code {
    public string Message { get; set; }
    public DateTime MyDate { get; set; }
}


Missing User
 answered on 16 Mar 2022
1 answer
133 views

I would like to limit how many nested groups in the Filter the user can make.  Something like MaxNestedDepth. 

Does something like this exist? I couldn't see it in the docs. 

Thanks.

PS: there is no tag for the Filter control, Grid was the closest related control I could find. 

Hristian Stefanov
Telerik team
 answered on 16 Mar 2022
0 answers
202 views
When AllowCustom=true, the browser treats it like a textbox and shows Auto Complete choices, yet unlike the TelerikTextbox which has an AutoComplete property which allows us to turn it off, there is no corresponding property for TelerikComboBox, and thus no way for us to disable browser autocomplete for it, aside from setting AllowCustom to false.
Alex
Top achievements
Rank 1
Iron
Iron
 asked on 15 Mar 2022
1 answer
414 views

If I have a field backed by an enum, the Grid will display the name of the enum in the Grid cell, but the Grid search toolbar will not search its string name, despite the string name being what is displayed to the user (it won't search the integer value either, if anyone was wondering) :/ It will work fine for all the other fields that are not an enum.

REPL example:

https://blazorrepl.telerik.com/ccERPPET55C7yHfg40

Apostolos
Telerik team
 answered on 15 Mar 2022
1 answer
740 views

Hello,

I ran into a small quirk when using the Blazor TabStrip component. If I have a list of models for the tabs to be initialized from and I don't set PersistTabContent to be true, only the first tab will call a components OnInitializedAsync method. If I do set PersistTabContent to true then the components get their OnInitializedAsync called, but only once as is to be expected. On the other hand, if I have "hardcoded" the TabStripTabs, then the OnInitializedAsync is called. Is this a bug or am I doing something weirdly?

 

A small demo can be seen at https://blazorrepl.telerik.com/cmadPIvY25vWwvTi23 where if you open the browser devtools and goto the console tab, you can see that when you change the active tab on the upper Strip, OnInitializedAsync is not called if PersistTabContent is false.

 

Regards, Rami

Marin Bratanov
Telerik team
 answered on 15 Mar 2022
1 answer
460 views
I'm looking for an image carousel with both scroll and zoom features. Is that possible with the Telerik carousel?
Marin Bratanov
Telerik team
 answered on 12 Mar 2022
1 answer
358 views
I am trying to figure out how I can put a Grid in a dropdown panel (essentially a DropDownList, but the dropdown panel contains a full grid rather than just the list).  It does not look like DropDownList supports a custom template for the entire dropdown.  Is there a Kendo component that could be used to do this?
Marin Bratanov
Telerik team
 answered on 12 Mar 2022
0 answers
269 views

Hello!

I am wondering if the new FormEditorType approach for automatic form generation could be extended in order to support more input types like ColorPicker for example? 


Thanks.

 

Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 11 Mar 2022
2 answers
3.2K+ views

We have data coming from an API endpoint that handles paging, filtering, and sorting, so we are using manual data source operations through OnRead.

All of the documentation examples show this pattern 

protected async Task OnRead(GridReadEventArgs args) { var result = await FetchData(args.Request.Page, args.Request.PageSize);

args.Data = result.Data; args.Total = result.TotalCount; }

This is not a usable pattern for us.  We dispatch api calls using a Redux/Flux pattern (Fluxor library).  Here is a trimmed down version of what we are doing

<TelerikGrid @* Data=CaseState.Value.Cases // since 3.x does nothing if using OnRead *@
             @*  TotalCount=CaseState.Value.TotalCount // not available since 3.x*@
               PageSize=100
               Pageable=true
               Sortable=true 
               Resizable=true
               Reorderable=true
               OnRead=@OnRead
               Width="100%"
               @ref=_grid>
<GridColumns>
...
</GridColumns>

</TelerikGrid>

Code behind:

...

[Inject] private IState<CaseState> CaseState { get; set; } = default!; ... protected void OnRead(GridReadEventArgs args) { var pageRequest = CreateRequestFromArgs(args); // This is a void method and returns immediately Dispatcher.Dispatch(new GetCaseListAction() { SearchRequest = pageRequest }); }

When the api call returns (handled elsewhere) another action is dispatched to the store which updates the CaseState (which in turn triggers StateHasChanged() for the component).

Prior to 3.x we used to be able to pass the collection to the Data parameter AND make use of OnRead.  This is no longer possible and results in a NullReferenceException because the Data is not being set on the GridReadEventArgs.

I looked at using GridState as it contains some of paging, filtering, and sorting info, but not the Total Count or the actual data.  Is there a way to pass Data, TotalCount and the rest of the state in one place either declaratively through component parameters or programmatically via a component ref?

Ecofip
Top achievements
Rank 1
Iron
 updated answer on 11 Mar 2022
0 answers
111 views

Delete this. I had a class on it that was causing the problem

 

Take a look at the picture. The clear content cross is at the left

Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
 updated question on 11 Mar 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?