# Help me! About Json Datatable

**URL:** <https://discuss.jsonapi.org/t/help-me-about-json-datatable/1557>\
**Category:** Uncategorized\
**Created:** [April 1, 2019, 3:24am UTC](https://discuss.jsonapi.org/t/help-me-about-json-datatable/1557 "2019-04-01T03:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phantuan](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@phantuan](https://discuss.jsonapi.org/u/phantuan)\
**Post date:** [April 1, 2019, 3:24am UTC](https://discuss.jsonapi.org/t/help-me-about-json-datatable/1557/1 "2019-04-01T03:24:50Z")

</div>

When I using json table for my data. I’m done from code C# to View. But when they show web like imge below. They don’t created table json.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/jsonapi/original/1X/ec68790d70998144a27508926a0dfcb9bdd859fb.png)

- Code in C#  
public ActionResult listQTTG(string searchString)  
{  
ViewBag.SearchString = searchString;  
string sdd = searchString;  
var list = db.QTTG(sdd).ToList\<QTTG\_Result\>();  
return Json(new { rows = list}, JsonRequestBehavior.AllowGet);  
}
- Code in View

@section scripts{

```
<script>
    $(function () {
        $grid = $("#jqGrid").jqGrid({
            url: '@Url.Action("listQTTG", "Quatrinhthamgia")',
            mtype: 'GET',
            datatype: 'json',
            colModel: [
                { label: "Quá trình tham gia", name: "QTTG_BHXH" },
                { label: "Mã CQQL", name: "BUKRS" },
                { label: "Đơn vị", name: "ORGID" },
                { label: "Hệ số", name: "PERC_SI" },

            ],
            loadonce: true

        });
    });
</script>

```

}  
Thanks.
