Hello,
I get data from ajax call,i have two fields which are Boolean and want to apply the filter on these two fields:
$.ajax({
dataType: "json",
type: "POST",
url: "@Url.Action("fnction", "Dashbrd")",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ "regionalManager": dtDrpVals.drpValue, "dtFrom": dtDrpVals.fromDate}),
success: function (result) {
var dataSource = new kendo.data.DataSource({
data:result,
filter:[{
"logic": "and",
"filters": [{
"field": "m_grid",
"operator": "eq",
"value": false},
{"field": "crew_present",
"operator": "eq",
"value": false}]},]
});
the result has 40 records,if the filter i set works,must give me 10 records


Hi guys, I've a case where I'm grouping with the grid, but want to sort in a different order.
E.g. by default if my group data field has values A, B, C, D this would be the group order.
I have data that is sorted by sections of data, that have an order the client wants displayed in a priority order.
To simplify it something like:
Display Field Value Sort Field Value
A 2
B 4
C 1
D 3
I want the grouping text to be A, B, C, D, but the order to be C, A, D, B as per the sort field value (a field not to be visible).
I haven't been able to find anyway to do this. Any help greatly appreciated.
Hi
in a kendo grid column I'm trying to render column sparklines from this markup:
<span class="compliance-dev" data-source="-1,-1,-1,1,1,-1,-1,-1"></span>
in grid.dataBound I do this:
var $spans = $(".compliance-dev", "#grid");
$.each($spans, function() {
var $span = $(this);
var ds = $span.data("source").split(',');
$span.kendoSparkline({
data: ds,
//series: [{
// type: "column",
// color: "#ff0000",
// negativeColor: "#0099ff"
//}]
});
});
This renders into a sparkline of type line: https://dojo.telerik.com/UsUluTaK
How do I render the sparkline as a column graph?
/Morten
I am use in popup window TreeList, and bind treeList to array. Simple example http://dojo.telerik.com/OjipACUQ
Update button in popup window save record and array as one record.
Some problems i fix.
Add new record then edit and press cancel, record will be removed, but record is not dirty and not isNew()
How can i fix it?
In my application editing and adding works, in the example does not work. i don't know why.

How do I set the uid for files in the initial file list options for the upload widget?
When I upload files the guid is auto generated and easily available in the upload event via e.files[0].uid
I have saved this information in the database along with the file and can repopulate the widget with previously uploaded files, but not set the uid, a new, different one is generated. I would like to set it so I can use the existing uid when a user clicks remove on a previously uploaded file and I can delete it from the database.
The initial files array seems not to support it, is there another way?
http://docs.telerik.com/kendo-ui/api/javascript/ui/upload#configuration-files

Hi All,
I am working on grid filter and I meet such a problem. The type of field "status" is string and it will return 0 for Female and 1 for Male. I use a template to show "Male" or "Female" instead of "0" or "1" respectively in grid. However, the filter doesn't work because it only receives "0" or "1" and "Female" or "Male" will show nothing in grid. The code is below.
{ 'field': 'status' , 'title': 'Gender', 'width': 110, 'template': "#= status === '1' ? 'Male' : 'Female' #", }
I wanna use filter to accept "Male" or "Female", or create a multiple selection, how should I make it? Thanks for your help.
James

I want to use pagination to display data, but it won't be in a grid form, I would just show some documents in a div, but still want to be able to paginate - i.e. request html for n-th page.
Is this possible?