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
Hi,
Is there a way to auto save a row when you've finished editing and moved to another next row either by tabbing to the next row or editing a cell on another row?
I'm using InCell mode.
Regards,
Tim
HTML
<input type="checkbox" id="chkShowPopEventDay" />
JavaScript
$("#chkShowPopEventDay").kendoCheckBox({
label: "ShowPopEventDay",
checked: true,
});
I tried to use the check box by referring to the address, but the message appears as follows. Is there anything wrong?
Reference URL: https://demos.telerik.com/kendo-ui/checkbox/index
I have an app thats working with SignalR grids, but now we want to add bearer auth.
The token handling stuff has to happen before my SignalR promise is set, but the problem is the Kendo components required the SignalR promise to bind.
How can I set a SignalR promise that the Kendo components can use which will not resolve until my own token handling functions are complete?
Here is a sample of what we're doing:
getTokenPopup({ scopes: ["api://918c95d7-8c39-4486-9e15-83d061a30fa6/access_as_user"] }) .then(response => { $.ajaxSetup({ beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', 'Bearer ' + response.accessToken); } }); myApp.hub = $.connection.searchHub; myApp.hubStart = $.connection.hub.start({ waitForPageLoad: false, transport: "longPolling" }); }) .catch(error => { console.error(error); });
Open the search box. The default condition is fuzzy query, not equal to
If I have the following piece of code on a cshtml view
<div>
@{ Html.BeginForm("test"); }
</div>
@Html.Kendo().NumericTextBox().Name("kendo")
<input name="native" type="text" />
<button type="submit">go</button>
@{ Html.EndForm(); }
When I submit the form, the native input value is on the form data, but not the kendo one.
If I remove the div around the BeginForm, it will submit.
Html.EditorFor controls also include their values on the form data, even on the case of incorrectly closed form tags.
Is this by design? If so, it should be documented as it is different than the native behavior.
If not, then it should be aligned with the native behavior.
Using Kendo.MVC 2022.3.913.545
I filled in the G2 unable to trigger formula. Who can tell me
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
Hi ,
We have a validation related requirement on the datepicker control. The datepicker control should not allow alphabets or special chars to be keyed in. It should allow only numerics, backspace and forward slaces keys for example: 10/10/2022.
The requirement is to validate it as soon as its keyed in instead of when the control lose focus.
Because datepicker control does not have keydown/key press event, I added a jquery script as below and it works fine but we dont want to repeat the script for all the date pickers controls on different screens across the project. Is there any feature of the control it self that can be used everywhere??
Thanks,
Chhavi