Given a grid, GridFilterMode.Row, with 3 columns (First Name, Surname, Nick Name) with 100 rows.
Given I have filtered the Surname column and now the grid is displaying 10 rows based on the applied filter on the Surname column.
If type one or more letters in the "First Name" field filter it will suggest all corresponding values to the dataSource even the ones that are not being displayed in the grid due to the applied filter in the column Surname.
Is there any way to suggest only values in the "view()" data (only values displayed in the grid)?
I haven't found any additional information on the documentation.
Any help is welcome.
Example:
Hello,
I've use kendo Grid MVC for my project and want to change the Input type when filter (in one field):
What i want like the below image:
Have any way to config this ?
<div style="height: calc(100vh - 220px);">
Thanks
Focus order is inappropriate after Edit column settings popup is collapsed as focus moves from top of the page
observation:
When Edit column settings popup is collapsed, focus is expected to observed on the triggered respective ‘Edit column settings’ control and on next ‘Tab’ navigation, focus should move to the next control present after ‘Edit column settings’ control
1.Filter buttons present in the table are accessible through keyboard when we press ALT+down arrow but when we try to open filter, respective column header filter is not opening
2.Focus is not retaining back on the filter button after closing the Filter dialog using Esc key.
Hi,
Is it possible to use filtering with List of child objects?
Example :
User
- Guid Id
- String Name
- List<PhoneNumber> PhoneNumbers
- Adress Adress
PhoneNumber
- Guid Id
- String PhoneNumber
Adress
- Guid Id
- String Street
If i filter on the street off a Adress and in the FilterDesriptor member is "Adres.Street" than it works correctly.
But how can you do it if it is a list? Like i want to filter on the PhoneNumbers?
I already tried "PhoneNumbers.PhoneNumber", but than i got the error :
System.ArgumentException: Invalid property or field - 'PhoneNumber' for type: ICollection`1
at Kendo.Mvc.Infrastructure.Implementation.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance)
Greetings,
Maxime
I am using kendo grid UI in my MVC application. I want to filter the multiple comma separated input values row wise, for single input value its working fine but for multiple comma separated values its not working.
Please let me know if it is possible to filter the multiple comma separated values.
Thanks in Advance!
I'm using the Kendo version 2022.3.913.545
The default filter type selected in the dropdown is "DoesNotContain"!
When does it happen? when I add the localization file kendo.messages.**-**.min.js, while it should be "Contains"!
update: it seems Kendo selects the 5th (index 4) element of the filter dropdown as the default filter type! and in our language the order of the elements are as follows:
IsEqualTo,
IsNotEqualTo,
StartsWith,
Contains,
DoesNotContain,
EndsWith,
...
so the DoesNotContain is selected by default!
it is solvable by adding the following line
.Filterable(filter => filter.Operators(op=>op.ForString(t=>t.Clear().IsEqualTo("***").IsNotEqualTo("***").StartsWith("***").EndsWith("***").Contains("***").DoesNotContain("***").IsNotNullOrEmpty("***").IsNullOrEmpty("***"))).Mode(GridFilterMode.Row)))
it clears the filter types from the dropdown and puts item by item as you put in the list! On this occasion, I put the Contains filter type on the fifth position so it works!
but I don't want to use this method and want to use the Kendo localization only!!
Hi everyone,
I have a little problem with filtering my Grid and I hope that you can help me.
I am currently in the process of developing a grid in which I list all my projects with the associated data.
In the first column I list the project number in the form of strings. Usually all project numbers have a length of 9 characters. Due to certain circumstances, I also have entries of projects in my database where the project number is shorter than 9. (but I urgently need this data for another use case)
In the grid that I am developing here, I only want to list projects with a project number length of 9 characters. Is there any filter option where I can specify how long a cell's value must be for it to be displayed?
If a value has less than 9 characters, the entire row should be hidden. It is important to note: the rows cannot be edited and are only listed using a READ function.
In the picture (attachment) you can see an example. In this case, the first two rows should be filtered and hidden.
Thanks in advance
Lars
Model for the Tag property is of complex type object
[UIHint("TaskTagEditor")]
public List<NameId> TaskTags { get; set; }
// Class ----
public class NameId
{
public int Id { get; set; }
public string Name { get; set; }
}
Kendo grid field:
columns.Bound(p => p.TaskTags).Width(240).ClientTemplate("#=taskTagsTemplate(TaskTags)#").EditorTemplateName("TaskTagEditor").Title("Tasks") .Filterable(p => p.Multi(true) .CheckAll(false) .ItemTemplate("TaskTagsFilterItemTemplate") .DataSource(d => { d.Read(read => read.Action("GetTaskTagsEditor", "TaskManager")); }) );
Client Template and Item template js:
function taskTagsTemplate(data) {
var template = "";
for (var i = 0; i < data.length; i++) {
template += (data.length == 1 || i == 0) ? data[i].Name : ("," + data[i].Name);
}
return template;
}
function TaskTagsFilterItemTemplate(e) {
return "<span><label><input class='tag-filter-input' type='checkbox' name='" + e.field + "' value='#= Id #'/><span>#= Name #</span></label></span><br/>"
}
Editor :
GetTaskTagsEditor
@model List<GrapeTree.Core.Model.TaskManager.NameId>
@(Html.Kendo().MultiSelectFor(m => m)
.DataTextField("Name")
.DataValueField("Id")
.AutoBind(false)
.TagMode(MultiSelectTagMode.Multiple)
.DataSource(d =>
{
d.Read(read => read.Action("GetTaskTagsEditor", "TaskManager"));
})
)
Controller method for option:
public ActionResult GetTaskTagsEditor() {
var tagList = _taskManager.GetActiveTaskTags()
.Select(tag => new NameId
{
Id = tag.Id,
Name = tag.Name
}).OrderBy(x => x.Name);
var jsonSerializerSettings = new JsonSerializerSettings { ContractResolver = new DefaultContractResolver() };
var json = JsonConvert.SerializeObject(tagList.ToList(), Formatting.Indented, jsonSerializerSettings);
return Content(json, "application/json");
}
Incell Editor is working fine and Filter about to bind with muti select value but filtering doesn't work for this complex object
I've seen examples in doing this in kendo ui
https://docs.telerik.com/kendo-ui/knowledge-base/use-nested-model-properties
but i can't figure out how in mvc. I have two nested fields that i need to force the grid to treat as dates.