Hello,
part of my code with filter looks like this:
@(Html.FilterSectionFor<ItemViewModel, ItemFilter>(vm => vm.Filter, gridId)
.Portlet(Lang.Filters)
.LabelEditorValidatorFor(m => m.Filter.Id)
.LabelEditorValidatorFor(m => m.Filter.CreateDateTimeFrom)
.LabelEditorValidatorFor(m => m.Filter.CreateDateTimeTo)
.LabelEditorValidatorFor(m => m.Filter.Model)
)
And Model is dictionary
Whether it is possible to select two options and filter the results for those two options?

Hey Guys,
We upgraded our website to Telerik.UI.for.AspNet.Core 2021.3.1207. There are a lot pages in the site where an additional kendoDialog is loaded via ajax. In the dialog - there are textboxes with duplicated IDs (on purpose) as in the outer screen (for example id="Reference").
The issue is that - the texbox in the dialog is not initialized - it is rendered as simple <input /> (without parent span) and the value in the outer screen became the same as the value from the dialog. My guess is that in version 2021.3.1207 all textboxes are initialized when the page is loaded (maybe for permanence) and they are refereed via ID.
Outer page:
@Html.Kendo().TextBoxFor(model => model.Reference).HtmlAttributes(new { @class = "form-control-x", @onchange = "window.page1.onFormChange();" })kendoDialog - textbox not rendered with kendo html tags and styling
@Html.Kendo().TextBoxFor(model => model.Reference).HtmlAttributes(new { @class = "", @onchange = "window.page2.onFormChange();" })Outer page after the content in kendoDialog is loaded - the value for Reference is the one from the dialog.
We have a lot of screens build in the same way. I know that this is not valid HTML, but we do not use <form action="something"></form> to save the fields. We are using ajax and all inputs are refereed by containderId and controld.
As this is blocking issue, any advice will be appreciated.
Thanks in advance.

Good day I am using a Kendo Grid on one of my applications. The Grid is defined like below. Editing of data is done via a popup that started from the _EditRoute action. Data for the grid is bound serverside via _SelectRouteData but users can apply their own filter to the Data via the header column since we have .Filterable() enabled on the Grid. Currently the state of that filter is lost when context passes back to the main grid after an update on the the Popup Screen as we call grid.rebind() in Javascript to refresh data in the Grid Post update.
Is there an easy way to persist the state of the ClientSide filter?
I have tried saving and reapplying the filter in Javascript like this
var filter = grid.dataSource.filter();
grid.rebind();
grid.dataSource.filter(filter);
but this still loses the filter after grid.rebind()
Any help would be greatly appreciated.
Best Regard
Wilhelm Erxleben
@(Html.Telerik().Grid(Model)
.Name("RouteManagement")
.DataKeys(keys => keys.Add(r => r.RouteID))
.ColumnContextMenu()
.Columns(columns =>
{
columns.Bound(r => r.RouteID).Title("Route ID").Width(40).Hidden(true).IncludeInContextMenu(false);
columns.Command(commands =>
commands.Custom("editRoute")
.Text("Edit Route")
.ButtonType(GridButtonType.Image)
.DataRouteValues(route => route.Add(r => r.RouteID).RouteKey("routeId"))
.Ajax(true)
.Action("_EditRoute", "RouteData")
).Width(50).IncludeInContextMenu(false);
columns.Bound(r => r.AccountNo).Title("Account No")
columns.Bound(r => r.ConsumerNo).Title("Consumer No")
columns.Bound(r => r.DivertCodes).Width(105);
})
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("_SelectRouteData", "RouteData"))
.Sortable()
.Selectable()
.Filterable()
.Resizable(resizing => resizing.Columns(true))
.Scrollable(scroll => scroll.Height("410px"))
.ClientEvents(events => events
.OnLoad("onLoad").OnDataBinding("BindValues")
.OnRowSelect("onRouteRowSelected")
.OnRowDataBound("onRouteRowDataBound")
.OnComplete("onRouteComplete"))
)
The default NumericTextBox widget that is being generated when InCell editing a decimal field in a TreeList widget is constrained to 2 decimal precision. I want to achieve 3 decimal place precision. I have set the format as "{0:n3}" to force the value to be displayed as 3 decimal places, but the NumericTextBox editor is rounding to 2 decimal places. I want to override this but have not been successful. Is there a way to specify the default editor for a TreeList field? For the Grid widget, we can use the DefaultEditorTemplate but no such property seems to exist for TreeList fields. It would be great if I could simply use the editor templates found in ~/Views/Shared/EditorTemplates, but this does not appear to be the case as changes to these default editor template files is not reflected for the InCell editor.

Hello,
We are using the Content-Security-Policy in our ASP.NET MVC application and also using the Kendo UI controls.
Here are the details of the Content-Security-Policy:
<customHeaders>
<add name="Content-Security-Policy" value="default-src https:;
object-src 'none';
script-src 'self' 'unsafe-eval' 'nonce-03148CFC65E74341814490514E0CEDD8';
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
img-src 'self' data:;
font-src 'self' https://fonts.gstatic.com;
connect-src 'self' https://api.zoomcharts-cloud.com;
form-action 'self';"></add>
</customHeaders>
Note:
Please help us out.
Thanks & Regards
Raju Chauhan
I am having some odd behavior in our application where it appears the series label lines are being rendered backwards (see backwards.png). I am trying to construct a test case that displays this behavior, but I haven't had any luck, I just get the correct positioning (see correct.png).
Does anyone here have any thoughts on what might be causing this? Some obscure CSS setting or such?

I am trying to format some cells in a Kendo grid.
Here is the code:
c.Bound(p => p.YTD).ClientTemplate("<td bgcolor=\"red\">#:YTD#</td>");
A new empty column is created in the grid next to the column that I want to change the background color.
If I use c.Bound(p => p.YTD).ClientTemplate("<strong>#: YTD #</strong>"); the alignment is correct.
Why does the td tag add a new column? How can I address this?
Thank you.

Hi,
I have been trying to display an image inside a Kendo Tooltip in MVC.
The image src is from web.
When I deploy my app in Azure and try to view the tooltip. It do not display the image, instead I get a <broken image> icon displayed.
Requirement:
I am displaying list of Image files in a table in a page.
The table has three columns:
Document Name | Date of Upload | Uploader name
The "Document Name" column will display the name of the documents and these names are visible in the form of hyperlink that has the URL of the document location. (The documents are from SharePoint Online).
My requirement is to on hover I must display a tooltip that will display the image file. (which resembles like a preview)
I am using the below code for kendo tooltip
$("td.documentNo").kendoTooltip({
Here "td.documentNo" :- .documentNo is a class name given to identify the column.
Here "a.hasTooltip" :- .hasTooltip is a class name given to identify the Anchor tag
This on testing in my local works absolutely fine. But when I upload this in Azure Cloud the code doesn't work. It display the tooltip but the image is not displayed.
Am I doing anything wrong. Please guide me.
Regards,
Niroj.
Hi all,
I started working with Blazor few weeks ago and recently got introduced to Telerik UI for Blazor so I started making a CRUD to learn.
After coding the update function I tested the app and got this error when I tried to update a register:
The instance of entity type 'Familia' cannot be tracked because another instance with the same key value for {'CodiFamilia'} is already being tracked.
To solve that I added "AsNoTracking" to the Entity Framework Core query located in "ReadList", it worked the first time but the app crashed after the second update. Afterwards I implemented an alternative solution which consists on finding the object by its ID and updating every parameter one by one which worked since it's not using the same object.
I'm wondering if there is any way to implement a functional update which resembles the first solution because the second one is pretty bad if there are many parameters to update azarshagle.
Thanks in advance.