Hi!
I'm using a Grid with a key-based field with a large list of values.
It works Ok, but when i want to filter by this field, (multi filter) appears hundreds of possible values.
¿Can I reduce the filter values to only existing options in grid elements?
Here is the example:
https://dojo.telerik.com/@larras/atuFikoP
The filter for field country allows all possible values, buy I want to limit the filtering options to the two countries that appear in the grid.
I have tried to use a new reduced collection for values, but in this case, when I add a new row, the country column has not text value and shows the id number.
¿Is possible to change dinamically the "multi" filter collection of values?
Thanks and greetings!
After calling 'saveAsExport' function, the file downloaded fine.
However, only the headers of the grid are displayed and the data does not appear.
My kendo version is '2021.1.330'.
please help me..........
When I use display to switch multiple Kendogrids or open kendoGrid with the layer pop-up, I have problems with the height of kendoGrid and the page at the bottom, and I can't find a solution
Like the title says, my grid doesn't "call home" on row deletion... read/update/create work just fine (and all go to the same .aspx on the server).
Here's my (edited slightly) code:
var sThisPage = location.pathname.substring(location.pathname.lastIndexOf("/") + 1);
$("#divGrid").kendoGrid({
columns: [
{
field: 'Department1',
title: 'Department',
width: 100,
editable: telerik_grid_column_onEditable,
editor: deptDropDownEditor,
template: "${displayDept(Department1)}",
},
{
field: 'EmployeeID',
title: 'Employee',
width: 200,
editable: telerik_grid_column_onEditable,
editor: emplDropDownEditor,
template: "${displayEmpl(EmployeeID)}",
},
{
field: 'SecurityLevel',
title: 'Security level',
width: 100
},
{
field: 'EmplActive',
title: 'Active',
width: 80,
template: "#= EmplActive ? '<span class=\"fa-solid fa-check\"></span>' : '' #"
},
],
dataSource: new kendo.data.DataSource({
serverPaging: false,
serverFiltering: false,
serverSorting: false,
//autoSync: true,
requestStart: function (telerikEvent) {
},
requestEnd: function (telerikEvent) {
},
sync: function (telerikEvent) {
var oToolbar = $("#divToolbar").data("kendoToolBar");
var oFirstLine = this._data[0];
if (!oFirstLine.ID || oFirstLine.ID == '') { //First line is a new recordif ((!oFirstLine.Department1 || oFirstLine.Department1 == '')
|| (!oFirstLine.EmployeeID || oFirstLine.EmployeeID == '')
|| (!oFirstLine.SecurityLevel || oFirstLine.SecurityLevel == '' || oFirstLine.SecurityLevel == 0)) {
alert('New line not saved as some values are missing.');
}
}
oToolbar.enable("#btnSave", false);
oToolbar.enable("#btnCancel", false);
},
error: function (e) {
if (e.xhr) {
alert(e.xhr.responseText);
}
$("#divGrid").data("kendoGrid").cancelChanges();
},
transport: {
read: {
url: sThisPage,
type: "POST",
dataType: "json",
cache: false,
data: { action: "R" }
},
update: {
url: sThisPage,
type: "POST",
dataType: "json",
cache: false,
data: { action: "U" }
},
create: {
url: sThisPage,
type: "POST",
dataType: "json",
cache: false,
data: { action: "C" }
},
destroy: {
url: sThisPage,
type: "POST",
dataType: "json",
cache: false,
data: { action: "D" }
},
},
schema: {
model: {
id: "ID",
fields: {
Department1: {
type: "number"
},
EmployeeID: {
type: "number"
},
DeptName: {
type: "string"
},
EmployeeName: {
type: "string"
},
SecurityLevel: {
type: "number",
validation: { required: true, min: 1, max: 100 }
},
EmplActive: {
type: "boolean",
editable: false
},
}
}
},
}),
editable: true,
sortable: true,
selectable: "row",
change: telerik_grid_onChange,
beforeEdit: telerik_grid_onBeforeEdit,
edit: telerik_grid_onEdit,
cellClose: telerik_grid_onCellClose,
remove: function (telerikEvent) {
var x = telerikEvent;
this.dataSource.sync();
},
});
function telerik_toolbar_button_onClick(telerikEvent) {
var x = telerikEvent;
var oGrid = $("#divGrid").data("kendoGrid");
switch (telerikEvent.id) {
/*snip*/
case 'btnDelete':
var oSelected = oGrid.select();
oGrid.removeRow(oSelected);
break;
}
} //telerik_toolbar_button_onClick
If I set breakpoints on the requestStart and requestEnd functions in the data source and delete a line, neither gets hit.
Am I doing something wrong?
Hi,
In following scenario:
- Configure Date Time Picker with Modern view
- Open Browser Console
- Open date picker
- Now move your cursor in the browser window randomly
- Your date picker window permanently changed to time window
In this i cannot go back to data/month view. I am stuck with time view. Is it expected or am i missing something?
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="css/default-main.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<input id="datetimepicker"/>
<style>
</style>
<script>
$(function () {
$("#datetimepicker").kendoDateTimePicker({
componentType: "modern",
interval: 1
});
});
</script>
</body>
</html>
We are exploring using Kendo Chat for JQuery to support LLM interactions but are finding the control very limiting compared to Bootstrap 5 MDB. Does anyone know if you can:
Hi,
I want to hide TimeStamp from Planned Start, Planned End, Start, and End in Kendo UI for the jQuery Gantt Chart Tooltip.
Also if there is any way to completely hide/block time from Gantt as I want to work on days and weeks only without time.
HI,
I have a requirement to disable the Planned Start and Planned End column when the user clicks on Planned Task to show Planned on Gantt view and to enable columns for editing when the user hides Planned on Gantt view
Hi,
Kendo version 2023.3.1010 installed via nuget package manager downloads corrupt excel spreadsheet files on export.
The workaround for it was to manually download jszip.min.js from the following cdn: https://kendo.cdn.telerik.com/2023.3.1010/js/jszip.min.js
and to replace the one in the nuget installed package.
Please verify your jszip that you're shipping with nuget package manager,
Thanks
HI,
How to hide timestamp from Planned Start, Planned End, Start, and End in Kendo UI for jQuery Gantt Chart Task Tooltip
Also can I completly hide/block time from my Gantt Chart as I don't want time anywhere and want to work on dates only.