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.
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.
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);
}
}
Hi everybody.
Is there a possibility to display the valueAxis of the chart to the right?
Can this be configured somehow?
Best regards,
Cipri
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.
<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;
}
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?
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;
}
}