Telerik Forums
UI for Blazor Forum
3 answers
3.4K+ views

I'm would like to have the buttons on my form justified right.  I tried various Bootstrap alignment styles, which have no effect.  How can I justify the buttons to the right?

Also, maybe the FormButtons component should support various justification: left, center, right, vertical.

Thanks

 

Svetoslav Dimitrov
Telerik team
 answered on 29 Apr 2021
1 answer
1.5K+ views

Hi,

I have burned some time trying to understand why ComboBox is not selecting predefined value. If myComboData is null/empty initially and loaded from remote API then predefined value is not selected.

Workaround 1: Set _selectedValue to -1 and then back to 2 to trigger selection.

Workaround 2: Wrap combo with if(myComboData != null).

Both seem dirty to me.

In samples (https://demos.telerik.com/blazor-ui/combobox/overview) we don't have a null checks.

<TelerikComboBox @bind-Value=_selectedValue Data="@myComboData" TextField="MyTextField" ValueField="MyValueField" TValue="int" TItem="MyDdlModel">
</TelerikComboBox>

@code {
	int _selectedValue { get; set; } = 2; // Preselected value
	IEnumerable<MyDdlModel> myComboData { get; set; } = Enumerable.Empty<MyDdlModel>();

	protected override async Task OnInitializedAsync()
	{
		myComboData = await LoadData();
		await base.OnInitializedAsync();
	}

	private async Task<IEnumerable<MyDdlModel>> LoadData()
	{
		await Task.Delay(1);
		return Enumerable.Range(1, 20).Select(x => new MyDdlModel { MyTextField = "item " + x, MyValueField = x });
	}

	public class MyDdlModel
	{
		public int MyValueField { get; set; }
		public string MyTextField { get; set; }
	}
}


Marin Bratanov
Telerik team
 answered on 29 Apr 2021
2 answers
513 views

In a grid with FilterMode = GridFilterMode.FilterRow the step size for the up/down controls of a numeric field is 1. How can I change this to 0.1 (like Step="0.1" in TelerikNumericTextBox)? Everything else (resetting filter, selecting filter operator,...) should work as in the standard implementation.

Klaus
Top achievements
Rank 1
Iron
 updated answer on 28 Apr 2021
1 answer
186 views

Hello,

I would like to avoid componente cleans filter user input when an item is clicked and auto-close is set to false.

So, imagine I want to select every item which contains letter 'S'. I type 'S' then when I click on the first item containing 'S', the 'S' in the input is removed and all the items are shown. So I need to type S again and again 1 time for each Item I want to select.

I attach a gif showing the behaviour.

 

Is there any way to avoid this input cleaning on selection?

Thanks.

Marin Bratanov
Telerik team
 answered on 28 Apr 2021
1 answer
529 views

I do not want to auto close my notifications and just let the user close them manually. But I would like to add a "clear all" button if they have not bothered to clear the notifications for some time. Seems like there should be an easy way to reset the collection but I have not found a way yet.

 

Marin Bratanov
Telerik team
 answered on 28 Apr 2021
1 answer
226 views

In the Blazor upload control, is there a way to upload directories?

 

In MVC, its just

.Directory(true)

.DirectoryDrop(true)

 

 

Blazor Upload does not have any similar, properites. Was that functionality not ported over?

Marin Bratanov
Telerik team
 answered on 27 Apr 2021
0 answers
92 views

Hello,

 

I use Telerik Grid and Search Box.

When I clicked edit command in Grid, Search Box is filled automatically.

And in my opinion, this value is GridCommandEventArgs.

 

How can I avoid to fill search box automatically?

 

Sincerely,

Hanna Lee

Jihyun
Top achievements
Rank 1
 asked on 27 Apr 2021
1 answer
819 views

     Dear all,

     we are oing to start a migration of our portal from Razor to Blazor server. Problems comes when i trie to take into telerik UI.

     As soon i did the basics steps explained here

                 https://docs.telerik.com/blazor-ui/getting-started/server-blazor

and here

                 https://docs.telerik.com/blazor-ui/knowledge-base/blazor-in-asp-net

But Kestrel server didnt' go up. It crasched on

app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute("default", "{controller}/{action=Index}/{id?}");

....

on

System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types.
Method 'BeginInvokeJS' in type 'Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime' from assembly 'Microsoft.AspNetCore.Components.WebAssembly, Version=3.2.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.'

 

 

Why it is seaching for 3.2.1.0 while i am in framework 5?

Regards

       Daniele

 

 

 

 

Patrizia
Top achievements
Rank 1
Iron
 answered on 27 Apr 2021
1 answer
117 views

Our company is evaluating Telerik's Blazor DataGrid for our project. 

One thing we would very much like is multi-column sort.

What we want to know is whether the function works in a mobile environment(Hybrid App).

If it works like a mouse click when touching a column header, we are going to actively consider introducing it.

 

Marin Bratanov
Telerik team
 answered on 27 Apr 2021
1 answer
2.8K+ views

So...what's the secret?

 

I have a couple of columns in the grid with a ton of data and I want the contents of the cells with less text to be aligned to the top.

I have no issues doing this in a web forms app, but for the life of me, I cannot get it to behave in blazor.

Marin Bratanov
Telerik team
 answered on 26 Apr 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?