..
transport: {
read: {
url: "GetJsonData.p",
data: {
"function": grid_function,
"element": "grid",
"param1": grid_param1,
"param2": grid_param2,
"param3": grid_param3,
"rowid": grid_rowid
},
dataType: "json"
}
},
schema: {
data: "data",
total: "recordsCount",
model: {
id: "field1"
}
}
...
I want to be able to update the DataSource when the user selects a row on a different Grid. For that reason, I am using a JS function that uses the SetDataSouce method and passes different values to the getJsonData.p procedure, which then generates the return data:
function SetGridDS(grid_element,grid_function,grid_param1,grid_param2,grid_param3,grid_rowid) {
grid_element.setDataSource(new kendo.data.DataSource({
transport: {
read: {
url: "GetJsonData.p",
data: {
"function": grid_function,
"element": "grid",
"param1": grid_param1,
"param1": grid_param2,
"param3": grid_param3,
"rowid": grid_rowid
},
dataType: "json"
}
},
schema: {
data: "data",
total: "recordsCount",
model: {
id: "field1"
}
}
}));
grid_element.dataSource.read();
}
However, I am getting the e.slice is not a function error. (hence the schema and the model, as suggested by others in the forum - but with no luck).
Is there a way to better analyse the error and find what exactly is causing it?
Thank you in advance,
Syian
Hi,
We need to display only month view and Agenda view. We don't want other views. so we have hide those views. we have set view properties like 'event per day':2
Now if on one particular day, if there are more than 2 events, Month view shows.. and it will be opening day view which we don't want.
So How we can show event per day dynamically based on the number of events in that particular month?
If we set 'event per day' more than 2 then UI doesn't look good if we don't have single event on particular day.
Can't we implement functionality like SharePoint where in calendar month view, if on any particular day if there are more than 2 events then it gives expand, collapse option? In that case if you expand the events, it increases particular row height of the table rather than entire scheduler rows?
Please find the screenshot for the same.
Thanks,
Hello,
How do I configure the width of the donut chart circle? The default one created by Kendo UI is very thick, but I would like a thinner one. Attached is a screen shot of what I see when I use the donut chart as-is. Also attached is a thinner donut chart image which is what I'm trying to achieve. I tried to use the example for doing this with a bar chart, but it resulted in nothing showing up for the donut chart.
Thanks in advance,
David
A client is asking for both batch edit AND a detail/expand edit.
They like the Excel-like editing of batch, but they want several other UI features in the expanded/detail view that don't make sense in a grid row (think charts, hyperlinks, buttons to calculate things, etc.). The idea is that users could use both, even on the same row, then save all grid changes as usually for batch.
I've got it mostly working here: https://jsfiddle.net/joewilson0/jwcLhtg2/
But I have two questions:
Hi
I don't really know Kendo UI very well but I'm modifying an existing application that was written almost entirely in Kendo UI. Normally, making small changes by studying and re-purposing existing bits of code works fine for me. However, I have found an issue that I can't get past and I need help with.
I have a screen that lists a bunch of people in a kendo.grid. There is an edit button for each row that launches a popup in which there are a bunch of checkboxes that can be checked. Then on update I will send that data to the server for processing.
However, in the popup, when I press update, the datasource: transport: update: clause isn't firing. (For info, the datasource: transport: read: clause fires perfectly).
So, here is the code. Can anybody see where I have made any mistakes?
(For info, I have pasted below just the grid code, but I have also put in attachment the entire JS page, in case it's helpful).
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
function setGrid() {
var command = {};
dataSource = new kendo.data.DataSource({
serverFiltering: false,
serverSorting: false,
serverPaging: false,
sort: {
field: 'per_name',
dir: 'asc'
},
transport: {
read: {
url: 'action.cfm?action=filehandler.list',
dataType: 'json',
cache: false
},
update: {
url: 'action.cfm?action=filehandler.save',
dataType: 'json',
cache: false
}, // THIS NEVER FIRES
parameterMap: function (options, operation) {
console.log(operation);
console.log(options);
if (operation !== 'read') {
return options;
}
}
},
pageSize: 20,
schema: {
model: {
id: 'login',
fields: {
login: {
editable: false
},
per_name: {
editable: false
},
org_name: {
editable: false
},
//lst_user_sec_ids: {
// editable: true
//},
lst_user_sec_labels: {
editable: false
}
}
}
},
change: function (e) {
if (e.action === 'sync') {
lists.loadFilehandlers();
this.read();
}
},
error: function (e) {
app.printMessage({
restError: e.xhr
});
}
});
$screen.find('#filehandler-grid').kendoGrid({
dataSource: dataSource,
sortable: true,
cache: false,
noRecords: true,
pageable: {
pageSize: 20,
pageSizes: [20, 50, 100],
refresh: true,
info: true
},
filterable: {
extra: false,
mode: 'row',
operators: {
string: {
contains: 'Contains'
},
number: {
eq: 'Equals'
}
}
},
editable: {
mode: 'popup',
template: kendo.template($("#sectors-editor").html())
},
edit: function (e) {
$(e.container).parent().css({
top: '50px',
left: '150px',
width: '850px',
height: '600px',
overflow: 'scroll'
});
},
resizable: true,
selectable: 'cell',
columns: [
{
field: 'login',
title: 'ECAS ID',
hidden: true,
type: 'string',
filterable: {
cell: {
showOperators: false
}
},
width: '150px'
},
{
field: 'per_name',
title: 'Name',
hidden: false,
filterable: {
cell: {
showOperators: false
}
}
},
{
field: 'org_name',
title: 'Unit',
hidden: false,
type: 'string',
filterable: {
cell: {
showOperators: false
}
}
},
{
field: 'lst_user_sec_labels',
title: 'Has access to sectors',
hidden: false,
type: 'string',
filterable: {
cell: {
showOperators: false
}
}
},
{
field: 'lst_user_sec_ids',
title: 'hide this later',
hidden: false,
type: 'string',
filterable: {
cell: {
showOperators: false
}
}
},
{
command: [
{
name: 'edit',
text: {
edit: 'Edit',
cancel: 'Cancel'
},
click: function(e) {
// prevent page scroll position change
e.preventDefault();
// e.target is the DOM element representing the button
var tr = $(e.target).closest("tr"); // get the current table row (tr)
// get the data bound to the current table row
var data = this.dataItem(tr);
// Get the data for the list of sectors and write it into the popup window
setSectorsList(data.login, data.lst_user_sec_ids);
}
}
],
title: 'Actions',
width: '225px',
filterable: false
}
]
});
}
Hello Team,
I would like to suggest a new string operator that would allow to filter rows by exact values specified on the list. This could be either list of predefined check boxes (defined in grid data binding or configuration) or list of elements typed in by the user in textbox (i.e. Elements In List [ value1, value2, ... ]). Have you been thinking of such enhancement? This could be helpful for data columns with a few values like statuses or types. Is there a chance to have such feature soon?
Thanks and best regards
Jacek Kłobut
Hello,
Is there an example of a masked textbox inside the kendo form?
Thank you,
Jeff
Hello,
I have created a multiselect that has default values (coming from the server) in an array that I then add to the kendoMultiSelect object as follows:
$("#subscriptionsWindow").kendoMultiSelect({
dataTextField: "text",
dataValueField: "value",
dataSource: multiData,
filter: "contains",
value: defaults //defaults here is an array of default items
});
I want to prohibit the user from deselecting these values, as they are enforced by the admin but must be shown in the drop down list.
I tried the read only option and that didn't work...
Thanks
Hi All,
Can you please help me with following.
We are using a Signature control, that internally uses flashcanvas and jSignature .when attempting to add signature , it is Prompted for Flash Player and unable to add Signature.
Adobe stop supporting flash player(check the below URL) recently
https://www.adobe.com/in/products/flashplayer/end-of-life.html
how to resolve this error, please help me.
Thanks,
Tram
Hello support,
We are looking for documentation about this demo:
https://demos.telerik.com/kendo-ui/m/index?&_ga=2.87831967.627147470.1612949974-420973595.1604377799#mobile-listview/hierarchical-databinding
And more specific about how to use: hierarchical-listview.
Please let us know if any questions.
Kind regards,
Roel Alblas