我是jQgrid的新手。我的webservice在jSON响应中提供了除jngrid以外的列数据类型的附加数据,而不是页面,总数,记录和行。我的JSON字符串如下:
{"d":
{"__type":"iReg.JQGrid","page":1,"total":20,"records":194,
"rows":[{"id":"560013cb-9c86-4471-8379-031cea98c507","cell":["TENDERSTATUS","Won - PO Received",""]},
{"id":"88170912-1b2a-441f-9002-0be93e0bcd8f","cell":["ORDERTYPE","Development","Development order"]},
{"id":"e67284f7-4f42-456b-b1a9-04cabaf77305","cell":["ORDERSTATUS","Pending","Pending - Default status"]},
{"id":"14ba5274-e60d-441a-887b-0a999f5a4e4c","cell":["ITEMPROCESS_STEP","Blend","Blending Process"]},
{"id":"aa7857a7-de94-42bf-8075-0ab3d3d65bf1","cell":["EXPENSE_SUBTYPE","Stationary","Stationary"]},
{"id":"b0ab6cd8-4e21-4350-8970-03cd4aaa6d61","cell":["EXPENSE_SUBTYPE","Food","Food"]},
{"id":"57a36caa-01f8-489f-b469-0a803d25c1c6","cell":["DOCUMENT_CATEGORY","Acceptance Note","Acceptance Note"]},
{"id":"9d39f81e-a524-49e8-a0b5-09a865533913","cell":["DESIGNATION","Sales Engineer","Sales Engineer"]},
{"id":"880a2441-e0db-4cda-978c-01387c969df6","cell":["CITY","Noida","U.P."]},
{"id":"0000a8c4-82b8-4ad6-a122-00938307e269","cell":["AIPRIORITY","Medium","Medium priority for action item"]}],
"coldatatypes":["String","String","String"]
}}
在上面的JSON字符串中, coldatatypes 是我想在jqgrid中读取的额外数据,并且想要在一个变量中感到疼痛,以便我可以将它用于我的其他目的。可能吗??
.cs文件:要读取和存储值的属性
public class JQGrid
{
........
........
public List<string> coldatatype { get; set; }
public JQGrid()
{
.......
coldatatype = new List<string>();
}
}