Telerik Forums
UI for Blazor Forum
0 answers
122 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
330 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
616 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
372 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
306 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
209 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
2.9K+ 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
90 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
1 answer
133 views

I am trying to add something like

<a href="#" onclick="doSomething()">do something</a>

Svetoslav Dimitrov
Telerik team
 answered on 11 Mar 2022
1 answer
129 views

Hello,

I am currently working on grids with a server side pager system.
https://docs.telerik.com/blazor-ui/components/grid/manual-operations

Recently I wanted to add multiple line selection but with the server side pager I can't get a correct behavior.

My SelectedItems variable which contains the list of selected items keeps the selected items despite the change of page but on the other hand when I come back to a page with selected items, the checkboxes are not checked.
In addition I can reselect them which adds them several times in my list.

Do you have an example of a server-side paging system with multiple line selection?

 

Marin Bratanov
Telerik team
 answered on 10 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?