Request objRequest = ((Request)Session["Request"]); Stack Overflow for Teams is moving to its own domain! I went back to the jsfiddle page, and updated it to look likethe following. In IE11 refreshing the grid is working one time after that couldn't be able to reload the grid (calling the action method). processData: false, I might be looking at it wrongly. Setting .ServerOperation (false) is also not the problem here. .Events(events => events.Sync("sync_handler")) 2022 Moderator Election Q&A Question Collection. I think the problem is to do with how to pass JSON arguments to the web service. All Rights Reserved. It is working fine in Mozilla browser but in IE11 it is not working properly. . rev2022.11.3.43005. type: "POST", Copyright 2022 Progress Software Corporation and/or its subsidiaries or affiliates. RESULT: 200 - Successful .Read(read => read.Action("SelectApprovalFlow", "Approval")) a DataSourceResult ). 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 . When I make the call via jQuery Ajax it works as expected, but when I make the equivelant Kendo UI DataSource call it fails. Copyright 2022 Progress Software Corporation and/or its subsidiaries or affiliates. var dataSource = new kendo.data.DataSource({ See Trademarks for appropriate markings. 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. Finally, Telerik sent me a code example that included a function that's not in their API documentation, but darn well should be. 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. At least thats what I can see in the console pane. read - API Reference - Kendo UI DataSource - Kendo UI for jQuery 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. If you need to filter, it is better to use the filter() method or the query . } It is working fine in Mozilla browser but in IE11 it is not working properly. Not the answer you're looking for? Asking for help, clarification, or responding to other answers. Kendo Grid dataSource.read() not is working second time - Telerik 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). { How can we create psychedelic experiences for healthy people without drugs? The args are also split outfor debugging. 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. url: url, return false; dataType: "json" I'm afraid that I'm not sure what may be the cause for the behavior you have described. What is the best way to show results of a multiple-choice quiz where multiple options may be right? }, @(Html.Kendo().Grid() KENDO CALL (fails): Replacing outdoor electrical box at end of conduit, Quick and efficient way to create graphs from a list of list. Having trouble with Telerik Kendo Grid Datasource Read function? Now enhanced with: VARIABLES USED IN THE SAMPLE CODE: KendoUI MVC Grid does not refresh after read - Stack Overflow processData: false 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).. What is the effect of cycling on weight loss? New answers and comments are not allowed. ): 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 . jsonData = {"userName":"abc123","password":"abc123"} Was able to resolve the issue by specifying "cache: false" in the transport element of the datasource. PS: I even happened to try out $("#grid").data("kendoGrid").dataSource.sync(); which too was not working. Making statements based on opinion; back them up with references or personal experience. .Name("grdApprovalFlow") By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Max total file size - 20MB. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Kendo Grid dataSource.read () not is working second time. transport: { All Rights Reserved. I can confirm the following Kendo datasource works: var kds = new kendo.data . Did you try to use thedemonstratedapproach? This is a migrated thread and some comments may be shown as answers. Please find the following code.. public ActionResult SelectApprovalFlow([DataSourceRequest]DataSourceRequest request) columns.Bound(p => p.ApprovalID).Hidden(true); Progress is the leading provider of application development and digital experience technologies. columns.Bound(p => p.StepDescription).Width(100).Title("Step").HeaderHtmlAttributes(new { style = "text-align:center;font-weight: bold" }); Havent tested further than that but might work. }); REQUEST PAYLOAD AS SHOWN IN NETWORK TAB OF CHROME DEBUGGER: Telerik and Kendo UI are part of Progress product portfolio. [object Object] Besides, from your screenshot, it appears that the data returned from the server is also of the correct format (i.e. 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. , function btnClick() { In IE11 refreshing the grid is working one time . This thread shows how to deal with caching in IE: Prevent caching of pages in Internet Explorer 8. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Thanks for contributing an answer to Stack Overflow! Even the latest JSFiddle page appears to pass the parameters as foo=bar. ----------------- All Telerik .NET tools and Kendo UI JavaScript components in one package. Should we burninate the [variations] tag? Here is a modified version of the jsfiddle page with a return statement. --------------------- This is a migrated thread and some comments may be shown as answers. I guess you are using old IE browser, and the issue that you face is due to caching. dataType: "json", url = "../Authentication.svc/Login3". QGIS pan map in layout, simultaneously with items on top, Transformer 220/380/440 V 24 V explanation. What can I do if my pomade tin is 0.1 oz over the TSA limit? Telerik and Kendo UI are part of Progress product portfolio. Can "it's down to him to fix the machine" and "it's up to him to fix the machine"? In my case thedatasource is currently embedded in a grid, but it amounts to the same thing. {"userName":"abc123","password":"abc123"} Progress is the leading provider of application development and digital experience technologies. dataSource => dataSource Now enhanced with: I am trying to refresh the kendo grid in javascript, when a user click on refresh button. return Json(GetApproverDetails(objRequest).ToDataSourceResult(request), JsonRequestBehavior.AllowGet); }. Proper use of D.C. al Coda with repeat voltas, Employer made me redundant, then retracted the notice after realising that I'm about to start on a new project. See Trademarks for appropriate markings. 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: Well this refreshes and works perfectly as expected in Mozilla and Chrome but in IE the refresh does not seem to work nor does the datasource update. Kendo Ui opensource Grid not refresh in Internet Explorer? Kendo Grid Datasource.Read("Action", "Controller").Data AJAX CALL (works! The read method always makes a request to the remote service unless the Data Source is offline.. Parameters data Object (optional). Do you investigate the debug console, maybe something is throwing error and cutting the kendo's javascript. 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. .Columns(columns => }) Optional data to pass to the remote service. LO Writer: Easiest way to put line of words into table as rows (list). Here are the basics: Join us on our journey to create the world's most complete HTML 5 UI Framework -. Saving for retirement starting at 68 years old. ),