开发者

JQgrid in asp.net

开发者 https://www.devze.com 2023-01-05 20:42 出处:网络
I wanted to write a code for JQgrid in asp.net .I have tried the same in asp.net MVC,but i want it now in asp.net .

I wanted to write a code for JQgrid in asp.net .I have tried the same in asp.net MVC,but i want it now in asp.net . In MVC we use Helper class,and return json data,so what to do in as开发者_如何学JAVAp.net where helper class can not be used. Serialization can be done with data to get it in json.,but what about Htmlhelper. Suggest me and guide me.


Asp.net webforms and asp.net mvc are two different things.

You should not go for exact conversion from mvc to webforms, rather checkout the webforms samples available on jqGrid website.

Here is the jqGrid Webforms demo


In my former project we used the standard .js external files and included these in our pages where we needed it (or in a master page to have it in only one place). You can download it here: http://www.trirand.com/blog/?page_id=6.

You can either pay for a control that wraps jqGrid in a control and use that of course. This eases up ASP.NET webforms development if you don't like to fiddle around with jQuery/javascripting.


Are you using the jsonReader and specifying the datatype to json?

jQuery("#gridid").jqGrid({
 datatype:'json',
 jsonReader : {
    root: "rows",
    page: "page",
    total: "total",
    records: "records",
    repeatitems: true,
    cell: "cell",
    id: "id",
    userdata: "userdata"},
0

精彩评论

暂无评论...
验证码 换一张
取 消