This is a migrated thread and some comments may be shown as answers.

Not able to bind dynamic json data to Kendo UI

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chitra
Top achievements
Rank 1
chitra asked on 21 Dec 2012, 09:19 PM
I tried the same thing explained in other thread. But I am not able to bind the json data to Kendo UI grid.
<div id="grid"></div>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="../../Scripts/kendo/kendo.all.min.js"></script> 
 <script type="text/javascript">
     $(document).ready(function () {     
     var jData = new kendo.data.DataSource({
         transport: {            
             read: {
                 url: "/Test/IndexTest",
                 dataType: "json"
             }
         },
     });   
        
         $("#grid").kendoGrid({
             dataSource: jData,
             columns: [
       {
           field: "TestDe",
           title: "Description"
       },
       {
           field: "Url",
           title: "TestStr"

       }],
             height: 200,
             scrollable: true,
             pageable: true,
             sortable: {
                 mode: "multiple"
             }
         });
     });
</script>

Json format is
 {"TestDe":null,"TestList":[],"Url":"dsgyuddufgufh"}

Code behind Controller
 public JsonResult IndexTest()
        {
            TestTableSql t = new TestTableSql();           
            var a=t.GetTestTableList();               
           return Json(a, JsonRequestBehavior.AllowGet);
        }

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 24 Dec 2012, 11:06 AM
Hello Chitra,

Please refrain from cross-posting the same question in several forum threads -- we monitor all forums and your question will not go unanswered.

We could not guess what causes the issue from the provided information. Please provide a sample solution that shows the problem.

Kind regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
chitra
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or