Suman
Suman

Reputation: 1

JQgrid 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 asp.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.

Upvotes: 0

Views: 387

Answers (3)

Two Seeds
Two Seeds

Reputation: 53

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"},

Upvotes: 0

Kris van der Mast
Kris van der Mast

Reputation: 16613

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.

Upvotes: 0

Krunal
Krunal

Reputation: 3541

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

Upvotes: 2

Related Questions