mardi 2 juin 2015

Custom class for format option in jqgrid

I have the public class which name is "ColMod".But formatoptions isn't a string. It is a json object with an unlimited number of possible items.

public class ColMod
{
    public string name { get; set; }
    public string index { get; set; }
    public bool editable { get; set; }
    public bool sortable { get; set; }
    public int width { get; set; }
    public string sorttype { get; set; }
    public string formatter { get; set; }
    public string formatoptions { get; set; }
}

So How can I use for formatoptions that will allow an object like this:

{ "decimalSeparator":".","thousandsSeparator":"," }

Aucun commentaire:

Enregistrer un commentaire