This question is locked. New answers and comments are not allowed.
I have some code worked in 2011.1 version, but it breaks in new version. In order to describe the problem, I have created a simplified version of sample project.
Basically I have a Grid defined, and I use Javascript to bind JSON array to the grid on client side, the sample code snippet is )I also attached entire sample project)
When I clicked on the button the JavaScript code was exeuted, I set break point on grid.dataBind(data), step through, the next line was executed in file telerik.grid.min.js of statement dataBind:function(l){this.dataSource.success(l)}.
The exception message is got from there is
SCRIPT5007: Unable to get value of the property 'success': object is null or undefined
telerik.grid.min.js, line 1 character 25697
Any clue? What is the change from last version or is it a bug?
Thanks
Hardy
Basically I have a Grid defined, and I use Javascript to bind JSON array to the grid on client side, the sample code snippet is )I also attached entire sample project)
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"><%= Html.Telerik().Grid<GridTest.Models.ItemViewModel>().Name("MyGrid").Columns( columns => { columns.Bound(o => o.Name).Title("Name"); columns.Bound(o => o.Keyword).Title("Keyword"); columns.Bound(o => o.Id) .ClientTemplate("<a id='edit<#= GoodsId #>' class='GridEditButtonStyle'>Edit</a>").Title(""); }).Resizable(resizing => resizing.Columns(true)) %><br /><input type="button" id="MyButton" value="Click Me" /><script type="text/javascript"> $(document).ready(function () { $('#MyButton').click(function () { var data = [{ "Id": 1, "Name": "Name 1", "Keyword": null }, { "Id": 2, "Name": "Name 2", "Keyword": "Keyword"}]; var grid = $('#MyGrid').data('tGrid'); grid.dataBind(data); }); });</script></asp:Content>When I clicked on the button the JavaScript code was exeuted, I set break point on grid.dataBind(data), step through, the next line was executed in file telerik.grid.min.js of statement dataBind:function(l){this.dataSource.success(l)}.
The exception message is got from there is
SCRIPT5007: Unable to get value of the property 'success': object is null or undefined
telerik.grid.min.js, line 1 character 25697
Any clue? What is the change from last version or is it a bug?
Thanks
Hardy