예제 #1
0
 private string GetColModel()
 {
     Hashtable[] array = new Hashtable[this._grid.Columns.Count];
     for (int i = 0; i < this._grid.Columns.Count; i++)
     {
         JsonColModel jsonColModel = new JsonColModel(this._grid.Columns[i], this._grid);
         array[i] = jsonColModel.JsonValues;
     }
     string input = new JavaScriptSerializer().Serialize(array);
     return JsonColModel.RemoveQuotesForJavaScriptMethods(input, this._grid);
 }
예제 #2
0
        private string GetColModel()
        {
            Hashtable[] array = new Hashtable[this._grid.Columns.Count];
            for (int i = 0; i < this._grid.Columns.Count; i++)
            {
                JsonColModel jsonColModel = new JsonColModel(this._grid.Columns[i], this._grid);
                array[i] = jsonColModel.JsonValues;
            }
            string input = new JavaScriptSerializer().Serialize(array);

            return(JsonColModel.RemoveQuotesForJavaScriptMethods(input, this._grid));
        }