FAQ Database Discussion Community


How do I check specific data when reading in data from a remote source with kendo.data.datasource

kendo-ui,telerik,kendo-mobile,kendo-datasource
I am using Telerik Platform to build a hybrid news app. I am pulling in data remotely and I have everything working correctly, but now I need to check to see for featured stories and move them into an variable. I have the data pulling into like this: viewModel =...

Query Kendo UI DataSource

jquery,kendo-ui,kendo-grid,kendo-datasource
I want to use the DataSource as a local DB where by I can query certain data. I tried the following: this.get("productsSource").query({ filter: { field: "dirty", operator: "eq", value: true} }); var dirty = this.get("productsSource").view(); This works great. However, the Drop Down List bound to this DataSource is now showing...

Format Kendo grid column filter for percentages

javascript,kendo-ui,kendo-grid,kendo-datasource
I have a kendo grid and my datasource data returns number with unknown decimal places. So I'm using a parse function on the datasource to compensate for that. DefaultMonoCPP: { editable: false, type: "number", parse: function(e) { return kendo.parseFloat(kendo.toString(e,"p4")); } } Now when I filter, I don't want it to...

How do I attach function to kendo grid after it initialized?

javascript,jquery,kendo-ui,kendo-grid,kendo-datasource
I have a Kendo Grid and I have JavaScript function “getFilters”. The “getFilters” function is scoped function defined in document ready. Currently the grid is calling “getFilters” like below. But this doesn’t work because “getFilters” gets initialized after the grid initialization. So im getting error 0x800a1391 - JavaScript runtime error:...

How use binding in template with datasource?

javascript,kendo-ui,kendo-datasource,kendo-mvvm
I have observable model with a function and datasource. I cant use the function in template by datasource. http://dojo.telerik.com/oHoxI...

How to pass page number to kendo datasource, so it could load data of page 2?

kendo-ui,kendo-asp.net-mvc,kendo-datasource,kendo-listview
Following code builds my kendo DataSource: var dataSource = new kendo.data.DataSource({ serverPaging: true, schema: { data: "ListMediaSummary", total: "RowCount", }, transport: { read: { url: gAppBaseURL + "UniversalSearch/SearchData?searchText=" + searchText + "&pageNumber=" + page, type: "POST", dataType: "json", } }, parameterMap: function (data, type) { if (type == "read") {...

Update KendoUI Grid datasource with new items

javascript,jquery,kendo-ui,kendo-grid,kendo-datasource
I have: $.post('buying-grid/split/' + config.route.params.id, item).success(function(data){ var ds = new kendo.data.DataSource(); ds.data(data) $('#buyingGrid').data('kendoGrid').setDataSource(ds) $('#buyingGrid').data('kendoGrid').dataSource.sync(); }) But I am getting the error Uncaught TypeError: undefined is not a function The data variable is in the correct format of {"data":[{"id":99296,... Why is this not working?...

How to get field type in Kendoui?

kendo-ui,kendo-datasource
Is there any method like that dataSource.getFieldType(field) in datasource: var dataSource = new kendo.data.DataSource({ // somethings here, schema : { model : { post_id : {type: "number" }, post_title : {type:"string"}, post_date : {tyep:"date"} } } }); var fieldType = dataSource.getFieldType("post_title"); // it should return string ...

kendo combobox datasource filtering before bind is not working

kendo-ui,kendo-datasource,kendo-combobox
I am working on a web application using kendo UI. I have a kendo combobox and binding via remote datasource. I need to filter kendo combobox datasource before binding. here's my code: $("#abc").kendoComboBox({ dataSource:{ type: "odata", transport: { read: "http://demos.kendoui.com/service/Northwind.svc/Orders" }, filter: { field: 'Freight', operator: 'neq', value: 11.61 }...

Manually change data items in datasource

javascript,kendo-ui,kendo-datasource
I have the following datasource with data set to an array. var dataArray = [ { Id: 1, Name: "RootA", ParentId: null }, { Id: 2, Name: "ChildA", ParentId: 1 }, { Id: 3, Name: "RootB", ParentId: null }, { Id: 4, Name: "ChildB", ParentId: 3 }, { Id: 5,...

kendo ui grid repeat the destroy action on error

asp.net-mvc,kendo-ui,kendo-grid,kendo-datasource
I have a grid similar to the code below. if an errors occurs on destroy action they accumulate. for example the on the first error 1 call to destroy action, the second 2 calls, the third error 3 calls ....... after some investigation I found out that the items to...

Difference between Kendo dataSource view and data methods

json,kendo-ui,kendo-datasource
I've inherited a project that uses Kendo, and I'm still learning its basics. A feature I'm working on entails getting JSON data from the server and using it to display something in a Web page. For this I'll use a dataSource, call its read function on the appropriate URL, and...

KendoUI Grid: Array as a field

kendo-ui,kendo-grid,kendo-datasource
I have a data source, which gets built from a JSON data string, containing a field called Fruit: [{ ... /other entries fruit: [{ name: 1 }, { name: 2 }, { name: 3 }] }] I'm using this field in a KGrid, and would like to do a comma...

DataBound Event of kendo listview loading previous parameters from dataSource

kendo-ui,kendo-datasource,kendo-listview
I am working on this search feature which takes input through search box and then passed to kendo dataSource which hits the server and gets the results and renders my list view. Here's the code: function searchClick(searchTerm) { var searchText = searchTerm; if (!searchTerm) { return; } var listView =...