I'm looking at using a single datasource object to populate two separate Kendo UI DropDownList objects. My datasource returns JSON in the following format:
[{
"TableName": "Table_A",
"FieldCode": "Title_MR",
"FieldDescription": "MR"
},
{
"TableName": "Table_A",
"FieldCode": "Title_MRS",
"FieldDescription": "MRS"
},
{
"TableName": "Table_B",
"FieldCode": "Code",
"FieldDescription": "Z0912"
}]
I know I can filter the datasource itself but I need the filtering to be done on the dropdown objects themselves (using the TableName field).
Is this even possible?
Here the filter method of the datasource given by the Kendo UI
Related
I want to display min, max and average of the same data field. Tried the designer on demo page and it is not possible to add same column into Values list, nor is it possible to check multiple aggregation functions in the dropdown.
I tried to edit report JSON manually, but this doesn't seam to be supported:
"measures": [
{
"uniqueName": "myvalue",
"aggregation": "min"
},
{
"uniqueName": "myvalue",
"aggregation": "max"
},
You can add multiple aggregations with the calculated values option, e.x.
"measures":[
{
"uniqueName": "Min myValue",
"formula": "min('myValue')",
},
{
"uniqueName": "Max myValue",
"formula": "max('myValue')",
}
Also, you can find the "Add calculated value" button on the top of the Fields List window. It allows creating calculated values in runtime using UI tools.
You can find more examples with calculated values here
How can we map kendo UI query to elastic search query..
here is my standard Kendo query..
filter:{
logic:and,
filters:[
{
field:"firstname",
operator:"eq",
value:"john"
},
{
field:"lastname",
operator:"eq",
value:"doe"
},
{
field:"faiser",
operator:"lte",
value:"doe"
},
{
field:"faiser",
operator:"lte",
value:"doe"
}
]
},
sort:{
field:"fullname",
dir:"asc",
},
{
field:"fullname",
dir:"desc",
}
Can we search this result from elastic search
Both types of search are quite different and mapping them would be quite difficult. If you want to perform the search on the server I would rather recommend you to generate the endpoint url according to Elastic search syntax and consume it directly with the Kendo DataSource as it comes. If you need a client side filter for part of the data you could use the Kendo query syntax.
I'm creating a custom connector in Microsoft flow, it has an action so when there is a new record created in CRM i want to push it to my application using flow.
In my application i have different modules, there is a dropdown to select module in flow, on selection of module I want populate the input fields.i want to know if there is a way to achieve this. I see some existing flow connectors has this feature but i couldn't find the useful resource to implement this.
Yes you can achieve this.
If the list is static you can use the enum attribute and
if your list is dynamic you can use the x-ms-dynamic-values property to populate your input fields of any attribute.
Static dropdown example :
"action": {
"type": "string",
"description": "",
"title": "Action",
"enum": [
"Car",
"Bike"
]
}
Dynamic dropdown example :
{
name: "listID-dynamic",
type: "string",
in: "path",
description: "Select List you want outputs from",
required: true,
x-ms-summary: "Select List",
x-ms-dynamic-values: {
operationId: "GetLists",
value-path: "id",
value-title: "name"
}
}
Complete example can be viewed here :
https://procsi.blob.core.windows.net/docs/sampleDynamicSwagger.json
Here is the detailed documentation for the same :
https://learn.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#x-ms-dynamic-values
I'm using a Kendo DataGrid and want to programmatically set the sort and the group of its datasource without it making 2 separate network calls to get the data. The datasource is using a Web API OData URL, serverPaging, serverFiltering, serverSorting are all set to true.
The following results in 2 separate network calls:
grid.dataSource.sort([{ field: "Name", dir: "asc" }]);
grid.dataSource.group([{ "field": "Region", "dir": "asc" }]);
Is there any way to achieve a programmatic sorting/grouping in a single request?
Use the query method of the data source:
dataSource.query( {
sort: [ /* sort descriptors */],
group: [ /* group descriptors */ ],
page: dataSource.page(),
pageSize: dataSource.pageSize()
});
My syntax was a little different but it work well
datasource.query({
sort: { field: "Sort", dir: "asc"},
group: { field: "CategoryName" },
pageSize: 50
});
I am using Kendo UI for a long while (months ago) and I built web app prototypes. Usually I use "serverSorting" and "serverFiltering" options to "true" as I do theses operations on my servers.
This worked fine until I began using KendoUI's last version (I am using kendo_2013.2.716 and jquery-1.9.1.min.js). Since that moment I realized Kendo Datasource or Grid (through Datasource, I guessed) wasn't sending field "field" in "sort object". Before now it was sending object containing { dir = 'asc', field = 'id'}, p.e., but now it is sending { dir = 'asc', compare : null }
Also, when I debug var "options" in
parameterMap: function(options, operation)
I see it isn't containing "field" which I am trying to sort by (I attach a screenshot about "options" containing)
Also, when ServerFiltering is true, I noticed field "field" in avoid and removed from array and don't sent to server, so I must use another variable name as "myfield" or whatever.
Is this problem familiar to you?
Thanks for your attention.
Kind Regards.
I would like add I tested adding option
sort: [ { field: 'id', dir: 'asc' } ]
in Datasource. This is sent to serverside accurately, but it seems KendoGrid does something wrong when it sends field name (in fact, it doesn't send it) in order to change sort options in DataSource.
The version 2013.2.716 has an issue with the sort
http://www.kendoui.com/forums/kendo-ui-web/grid/grid-sort-no-longer-working-in-version-2013-2-716-sort-is-undefined-.aspx
Try this in grid definition
sortable: {
mode: "single",
allowUnsort: false
}