Telerik Forums
UI for Blazor Forum
1 answer
385 views
Hi, we are new in Blazor and currently evaluating Telerik UI for Blazor. Simple question how to achieve or similar component like BottomNavigation on ASP.NET Core ??
Marin Bratanov
Telerik team
 answered on 04 Jan 2022
1 answer
274 views

Hi, 

Is there any other way I can scroll the category field in the chart other than the stock chart?

I would like to show only on month's worth of data beyond scroll to generate a chart with one year's worth of materials.

Thank you.

Stamo Gochev
Telerik team
 answered on 03 Jan 2022
1 answer
715 views

Hi,

As the question states, do we need to do this?

A very brief example in REPL: https://blazorrepl.telerik.com/cPlQROaw54hvorQ145

Say I wanted that reference to the button (or any other Telerik Component), to do other things with elsewhere, is the dispose call necessary, or is that totally unnecessary?

Thanks.

Marin Bratanov
Telerik team
 answered on 30 Dec 2021
1 answer
1.3K+ views

Hi. 
I'm wondering if there's a easy way to set a custom order function to a grid column. For example, suppose that I need to sort a column with IP Addresses: 

192.168.168.1
192.168.168.2
192.168.168.101
192.168.168.4
192.168.168.20

Usually the grid sort this column like a string, so the result is: 

192.168.168.1
192.168.168.101
192.168.168.2
192.168.168.20
192.168.168.4

when the desirable result will be: 

192.168.168.1
192.168.168.2
192.168.168.4
192.168.168.20
192.168.168.101

I did several attempts without success. Order by a calculated field created in the column template looks like a workaround more than a real solution. Really don't like it.
Reading about the GridState I've found there is a property: SortCompare (part of SortDescriptor) but I can't make it work assigning a function like this: 

    public class IPAddressComparer : IComparer<IpAddress>
    {
        public int Compare(IpAddress a, IpAddress b)
        {
            return Enumerable.Zip(
                a.Address.Split('.'),
                b.Address.Split('.'),
                (x, y) => int.Parse(x).CompareTo(int.Parse(y)))
                             .FirstOrDefault(i => i != 0);
        }
    }
It seems to be a applicable only for jQuery-based widgets such as UI for ASP.NET MVC. 

What else can I try? Maybe I'm missing something... can't be so complicated. 

Blazorist.
Marin Bratanov
Telerik team
 answered on 30 Dec 2021
0 answers
115 views

Hi everybody.

Is there a possibility to display the valueAxis of the chart to the right?
Can this be configured somehow?

Best regards,
Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 29 Dec 2021
1 answer
228 views

Hi,

Surprisingly, I was not able to find an answer how to solve this so thus this post. 

We are two developers developing a Blazor Server Side Project. I am the one doing all the GUI / Blazor stuff and my colleague is doing only Domain and Database. Now, the problem is that in order to run any of his code, he needs to be able to run the Blazor project from Visual Studio which turns out to be problematic as he does not have a license for Telerik and don't need one as he is never working with the controls or even Blazor. How would he go about to solve this without having to buy a license he would never use? 

If there is no obvious solution, please provide a good workaround. 

Thanks.

Missing User
 answered on 29 Dec 2021
1 answer
365 views

<TelerikComboBox TItem="ObjectSelection" TValue="int?" Data="_testObjs" Value="_objSel" ValueExpression="() => _objSel" ValueChanged="ObjSelected" TextField="@nameof(ObjectSelection.Description)" ValueField="@nameof(ObjectSelection.Id)" ScrollMode="DropDownScrollMode.Virtual" PopupHeight="200px" ItemHeight="20" PageSize="20" ValueMapper="ValueMapper" OnRead="RetrieveObjs" TotalCount="100"></TelerikComboBox> private IEnumerable<ObjectSelection> _testObjs; private int? _objSel; private Task ObjSelected(int? id) { return(Task.Run(() => _objSel = id)); } public Task RetrieveObjs(ReadEventArgs args) { _testObjs = new[] { new ObjectSelection {Id = 1, Description = "Obj 1"}, new ObjectSelection {Id = 2, Description = "Obj 2"}, new ObjectSelection {Id = 3, Description = "Obj 3"}, }; return(Task.Delay(300)); }

In this scenario, when selecting an object in the combobox, the combobox remains emtpy.

If the value changed handler looks like below, the combobox behaves as expected:

private void ObjSelected(int? id)
        {
            _objSel = id;
        }


Joana
Telerik team
 answered on 28 Dec 2021
1 answer
692 views

Hi I am setting the culture in program.cs

var culture = new CultureInfo("da-DK");
culture.DateTimeFormat.ShortDatePattern = "dd-MM-yyyy";
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;

If I don't set it I get "dd.MM.yyyy"

I would like to set it to "dd/MM/yyyy" but when I do that it revert to "dd.MM.yyyy"

Is this me using the culture object in the wrong way or a bug in the Telerik Components?

Joana
Telerik team
 answered on 27 Dec 2021
1 answer
267 views
Hello!
How to disable or localize built-in by default tooltip "Select all rows" and "Select a row" on GridCheckboxColumn's checkboxes?
Stamo Gochev
Telerik team
 answered on 24 Dec 2021
1 answer
966 views

I have a grid where the last few rows show different types of totals with different color highlighting. In the OnRowRenderHandler, I assign the background-color via CSS like args.Class = "bc_orange". This works fine unless the row also has the k-alt class in which case it overrides the background color.

Is there a way in the OnRowRender to remove the k-alt class? Normally in JQuery I would use the .removeClass function.

 

    public void OnRowRenderHandler(GridRowRenderEventArgs args)
    {
        Models.Results item = args.Item as Models.Results;

        switch (item.row)
        {
            case 1:
                args.Class = "bc_orange disable-hover";
                break;
                
            case 2:
                args.Class = "bc_lightgreen disable-hover";
                break;
                
            case 3:
                args.Class = "bc_lightblue disable-hover";
                break;
        }
    }


Dimo
Telerik team
 answered on 23 Dec 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?