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?
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
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.
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
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.
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: