Telerik Forums
Kendo UI for jQuery Forum
1 answer
94 views

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!

 
Martin
Telerik team
 answered on 21 Nov 2023
1 answer
72 views

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

Martin
Telerik team
 answered on 20 Nov 2023
0 answers
74 views

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

zhang
Top achievements
Rank 1
 asked on 20 Nov 2023
1 answer
69 views

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?


Eric
Top achievements
Rank 1
Iron
 answered on 17 Nov 2023
1 answer
125 views

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>

Peter Milchev
Telerik team
 answered on 17 Nov 2023
1 answer
317 views

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:

  • support bold and rich html formatting within the chat messages?  The LLM is correctly responding with formatting such as <strong> but this is not respected within the control.
  • add ability to pass additional data in the chat post - doing this results in [Object, Object] in the chat window itself

 

Neli
Telerik team
 answered on 16 Nov 2023
1 answer
104 views

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.

 

 

 

 

Nikolay
Telerik team
 answered on 14 Nov 2023
1 answer
103 views

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

 

 

Neli
Telerik team
 answered on 14 Nov 2023
2 answers
170 views

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

Martin
Telerik team
 answered on 14 Nov 2023
1 answer
156 views

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.

 

Neli
Telerik team
 answered on 14 Nov 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?