Telerik Forums
UI for Blazor Forum
1 answer
462 views

I'm trying to create a DataSourceRequest that has several filters that I am creating and inserting into a CompositeFilterDescriptor. One of those filters is an integer data type. When I have the DataSourceRequest output the request via  "ToODataString()" the integer filter is treated as a string, i.e. surrounded by single quotes.  This will then not work in my OData endpoint.

How do I specify that this should be an int and not surrounded by single quotes in the output?

 var request = new DataSourceRequest()
 {
     PageSize = 1,
     Skip = 0,
     Filters = new List<IFilterDescriptor>(),
     Sorts = new List<SortDescriptor>(),
     Groups = new List<GroupDescriptor>()
 };
 var cfd = new CompositeFilterDescriptor
 {
     LogicalOperator = FilterCompositionLogicalOperator.Or
 };
var fd = new FilterDescriptor()
    {
        Value = "MyTestValue",
        Operator = FilterOperator.Contains,
        Member = "Status"
     };
cfd.FilterDescriptors.Add(fd);
request.Filters.Add(cfd);

var cfd2 = new CompositeFilterDescriptor
 {
     LogicalOperator = FilterCompositionLogicalOperator.And
 };
 var fd2 = new FilterDescriptor()
 {
     Value =  123456,
     Operator = FilterOperator.IsEqualTo,
     Member = "MyId"
 };

 cfd2.FilterDescriptors.Add(fd2);
 request.Filters.Add(cfd2);
 var query = request.ToODataString();

The "query" then contains something like :
(contains(Status,%27MyTestValue%27)%20and%20(MyId%20eq%20%27123456%27))
or 
(contains(Status,'MyTestValue') and (MyId eq '123456'))
what I need is

(contains(Status,'MyTestValue') and (MyId eq 123456))

How do I get it to form the correct Odata Url?

Dimo
Telerik team
 answered on 14 Feb 2023
0 answers
87 views
Deleted - bug in css
Torben
Top achievements
Rank 2
Iron
 updated question on 14 Feb 2023
1 answer
123 views
deleted

 

 

 

Torben
Top achievements
Rank 2
Iron
 answered on 13 Feb 2023
1 answer
108 views

I am just creating an application with Blazor using Telerik UI for Blazor. It seems that a few properties and methods from former ASP.NET Core version are missing, at least:

  • SeriesDefaults

  • no more "xxx.visual"

  • "OnRender" event

Especially the "visual" function and the "OnRender" event among other low-level API is sorely missed since I have to draw additional things on the charts. Can anyone give me a tip on how to do the same thing with Blazor?

Thanks in advance!

Heiko

Svetoslav Dimitrov
Telerik team
 answered on 13 Feb 2023
1 answer
215 views
Hi, I don't see an OnClick or OnFocus event for the TelerikComboBox. How can I get the TelerikComboBox to open when its body is clicked (i.e., instead of only opening when the down arrow is clicked)? Also need to make sure the click is handled correctly so that the event does not interfere with a click in the Clear box.
Dimo
Telerik team
 answered on 13 Feb 2023
1 answer
294 views

I have a grid with stock prices.

The server is listen to a message bus for new prices. Then it send the prices using SignalR to all connected clients.

How can I upgrade the grid so it easy to see which rows has changed? In some programs I have seen some animations effects.

Nadezhda Tacheva
Telerik team
 answered on 10 Feb 2023
0 answers
895 views
I know how to hide the Scrollbar completely for the whole time but I just want to hide it if the current rows do not fit in the grid. That must be a common question but I have not found an answer yet....
Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 10 Feb 2023
1 answer
578 views

Hi

Im using the autocomplete component and I want to hide the scrollbar from the popup that displays the results but I don't know which class to modify to set overflow: hidden

Can anyone help?

Thanks

Nadezhda Tacheva
Telerik team
 answered on 10 Feb 2023
1 answer
172 views

How to reproduce:

1. Select an item in the DropDownList using mouse.

2. Press tab to go to the next field. Focus should go to the next field. Instead focus goes back to the first field.

 

I modified REPL from your demos, adding textboxes to reproduce the issue.

demo 1: https://demos.telerik.com/blazor-ui/dropdownlist/templates

modified REPL: https://blazorrepl.telerik.com/cHawYHPd47d0122o27

 

demo 2: https://demos.telerik.com/blazor-ui/dropdownlist/virtualization

modified REPL: https://blazorrepl.telerik.com/QxYmknPR49ZdbVQQ02

 

I fix this focus issue using OnClose event, setting the focus to the current DropDownList with FocusAsync(). But I have to modify all the DropDownList in my projects. 

Yanislav
Telerik team
 answered on 08 Feb 2023
1 answer
202 views

Let's say you have a grid of customers and you want to show the last five order numbers for that customer in a single column. 

How could this be done WITH data binding?

 

So, specifically you have a grid with two columns:  Name & Last 5 Order Numbers and it might looks like

Name | Last 5 Order Numbers

Acme | #1, #100, #200, #201, #202

Ford |  #11, #1100, #1200, #1201, #1202

 

Example Model


public class CustomerModel
{
    public string Name { get; set; }
    public List<string> Last5OrderNumber { get; set; } = new List<string>();
}

 

 

I came up with this, but wondering if there's a better way:

https://blazorrepl.telerik.com/cnEmunlL45zKNYAF51

Svetoslav Dimitrov
Telerik team
 answered on 08 Feb 2023
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?