kendo grid datasource read not working

FOB Price :

Min.Order Quantity :

Supply Ability :

Port :

kendo grid datasource read not working

I'm not sure to which issue you are referring to for a status update. Are there small citation mistakes in published papers and how serious are they? } Did you try to use thedemonstratedapproach? Replacing outdoor electrical box at end of conduit, Quick and efficient way to create graphs from a list of list. If you need to filter, it is better to use the filter() method or the query . type: "POST", Stack Overflow for Teams is moving to its own domain! $("#grdApprovalFlow").data('kendoGrid').dataSource.read(); In my case the datasource is currently embedded in a grid, but it amounts to the same thing. Why do I get two different answers for the current through the 47 k resistor when I do a source transformation? Connect and share knowledge within a single location that is structured and easy to search. All Telerik .NET tools and Kendo UI JavaScript components in one package. Problem with DataSource POST request for Read Operation - Telerik Kendo Grid datasource refresh does not work in IE, Making location easier for developers with new data primitives, Stop requiring only one assertion per unit test: Multiple assertions are fine, Mobile app infrastructure being decommissioned. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. read: { return Json(GetApproverDetails(objRequest).ToDataSourceResult(request), JsonRequestBehavior.AllowGet); In order to actually post the changed data it should be return from the parameterMap function, as I have showed in the code snipped provided earlier. }) Join us on our journey to create the world's most complete HTML 5 UI Framework -. Find centralized, trusted content and collaborate around the technologies you use most. Why does Q1 turn on and Q2 turn off when I apply 5 V? columns.Bound(p => p.Approver).Width(120).Title("Approver").HeaderHtmlAttributes(new { style = "text-align:center;font-weight: bold" }); .Read(read => read.Action("SelectApprovalFlow", "Approval")) processData: false, Besides, from your screenshot, it appears that the data returned from the server is also of the correct format (i.e. Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. This thread shows how to deal with caching in IE: Prevent caching of pages in Internet Explorer 8. The jsFiddle test pages posted in my previous replies provide aguidanceon how to implement the required functionality. .AutoBind(false), .DataSource( Thanks for the answer knikolov. Request objRequest = ((Request)Session["Request"]); Doug. Appeared to at least post correctly. Progress, Telerik, Ipswitch, Chef, Kemp, Flowmon and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. read. Does squeezing out liquid from shredded potatoes significantly reduce cook time? I think the problem is to do with how to pass JSON arguments to the web service. What can I do if my pomade tin is 0.1 oz over the TSA limit? Any ideas or assistance would be appreciated. I went back to the jsfiddle page, and updated it to look likethe following. Do I need to make any particular modifications in my code to get it working in Internet Explorer as well? RESULT: 400 - Bad Request [object Object] To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Optional data to pass to the remote service. { ) QGIS pan map in layout, simultaneously with items on top, Transformer 220/380/440 V 24 V explanation. Kendo UI Grid JSON DataSource not loading data - Stack Overflow data: jsonData, Can an autistic person with difficulty making eye contact survive in the workplace? I am trying to refresh the kendo grid in javascript, when a user click on refresh button. return false; . }); REQUEST PAYLOAD AS SHOWN IN NETWORK TAB OF CHROME DEBUGGER: I was trying to refresh my kendo grid after doing an update of the data by using the following piece of code in the success handler of my ajax call: $ ("#grid").data ("kendoGrid").dataSource.read (); $ ("#grid").data ("kendoGrid").refresh (); Well this refreshes and works perfectly as expected in Mozilla and Chrome but in IE the refresh does . url = "../Authentication.svc/Login3". RESULT: 200 - Successful My Button This is a migrated thread and some comments may be shown as answers. Is cycling an aerobic or anaerobic exercise? Please take a look at the followingjsfiddle page, although it does not do much, it will show the usage of parameterMap function. Setting .ServerOperation (false) is also not the problem here. $("#grid").data("kendoGrid").dataSource.read()) it refreshes the grid data as expected. Finally, Telerik sent me a code example that included a function that's not in their API documentation, but darn well should be. .Name("grdApprovalFlow") Saving for retirement starting at 68 years old. This is a migrated thread and some comments may be shown as answers. .Events(events => events.Sync("sync_handler")) Kendo Grid datasource refresh does not work in IE .Columns(columns => Progress, Telerik, Ipswitch, Chef, Kemp, Flowmon and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. --------------------- Max total file size - 20MB. I'm pretty sure the problem is misssing field attribute in your grid's columns array, so Kendo don't know what data from datasource to display in what column of grid.. columns: [ { field: "Title", // attr name in json data title: "Title", // Your custom title . Having trouble with Telerik Kendo Grid Datasource Read function? {"userName":"abc123","password":"abc123"} Iam callinga WCF webservice which exposes a POST method for login (returns user data if successful). rev2022.11.3.43005. What is the effect of cycling on weight loss? I never got this working either. It is not that the success handler does not execute at all cause the rest of the code as specified in the handler does execute and give results as expected. ------------------------------------------. ): In my case thedatasource is currently embedded in a grid, but it amounts to the same thing. I Appreciate for the help , i have the ken do grid where in need to pass the 4 parameters to controller , i am passing the 2 parameters from the Read("Action", "Controller").Data(ReadData("XX","YY")) and function as Progress is the leading provider of application development and digital experience technologies. LO Writer: Easiest way to put line of words into table as rows (list). }); REQUEST PAYLOAD AS SHOWN IN NETWORK TAB OF CHROME DEBUGGER: Making statements based on opinion; back them up with references or personal experience. I can confirm the following Kendo datasource works: var kds = new kendo.data . Reads data items from a remote/custom transport (if the transport option is set) or from a JavaScript array (if the data option is set).. Copyright 2022 Progress Software Corporation and/or its subsidiaries or affiliates. To learn more, see our tips on writing great answers. } columns.Bound(p => p.StepDescription).Width(100).Title("Step").HeaderHtmlAttributes(new { style = "text-align:center;font-weight: bold" }); Was able to resolve the issue by specifying "cache: false" in the transport element of the datasource. Here are the basics: Join us on our journey to create the world's most complete HTML 5 UI Framework -. At least thats what I can see in the console pane. So, if you're having the same issue I did, where you want to call read () on your grid's datasource, but it simply isn't working, here's an example from Telerik that may help you. AJAX CALL (works! When I make the call via jQuery Ajax it works as expected, but when I make the equivelant Kendo UI DataSource call it fails. In IE11 refreshing the grid is working one time . jsonData = {"userName":"abc123","password":"abc123"} Kendo Ui opensource Grid not refresh in Internet Explorer? Thanks for contributing an answer to Stack Overflow! Well I did try that..there are no errors logged in the console and the funniest part is that when I try to run the piece from console directly(i.e. PS: I even happened to try out $("#grid").data("kendoGrid").dataSource.sync(); which too was not working. 4. NewRelic and Ajax Requests from Kendo Grid datasource refresh, Kendo Grid local datasource causing TypeError r is undefined, Kendo UI grid not refresh automatically in Internet Explorer, Dynamic bind kendo grid dataSource binded to directive, How can I refresh "footer" on Kendo Ui Grid using JQuery. processData: false I'm afraid that I'm not sure what may be the cause for the behavior you have described. Maybe you could provide a small sample whichdemonstratesthe issue you are having. 2022 Moderator Election Q&A Question Collection. I guess you are using old IE browser, and the issue that you face is due to caching. Therefore, providing a small sample in which this can be observed locally will beappreciated. Here is a modified version of the jsfiddle page with a return statement. Kendo Grid Datasource.Read("Action", "Controller").Data Do you investigate the debug console, maybe something is throwing error and cutting the kendo's javascript. Now enhanced with: VARIABLES USED IN THE SAMPLE CODE: All Rights Reserved. data: jsonData, transport: { dataType: "json", Well the issue was that the result was being cached as you said(I was using IE10 infact). ----------------- When you call dataSource.read () method, the grid is supposed to update automatically and you shouldn't need to do anything. Kendo Grid dataSource.read () not is working second time. url: url, New answers and comments are not allowed. The function: getKendoGrid . Should we burninate the [variations] tag? Progress is the leading provider of application development and digital experience technologies. But if your service is written as a WCF service that expects JSON arguments, as mine is, then it doesnt work. KENDO CALL (fails): When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on stackoverflow.com. You can see what part of code raise an exception in some debug tool (I'd recommend you Chrome's DevTools (just press F12 key in Chrome). contentType: "application/json", , function btnClick() { By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. a DataSourceResult ). contentType: "application/json", . It is working fine in Mozilla browser but in IE11 it is not working properly. How do I simplify/combine these two methods for finding the smallest and largest int in an array? The standard Ajax call works fine, and passes json data. .Ajax() How many characters/pages could WordStar hold on a typical CP/M machine? var dataSource = new kendo.data.DataSource({ How can we create psychedelic experiences for healthy people without drugs? In IE11 refreshing the grid is working one time after that couldn't be able to reload the grid (calling the action method). See Trademarks for appropriate markings. It is working fine in Mozilla browser but in IE11 it is not working properly. All Rights Reserved. read - API Reference - Kendo UI DataSource - Kendo UI for jQuery I might be looking at it wrongly. ),

TOP