public void test_shape() { IEnumerable <dynamic> results = tbl.Paged(where : "objid > 1", currentPage: 1, pageSize: 20).Items; ExpandoObject eo = new ExpandoObject(); string a = "Description"; // Use delegate instance to call UppercaseString method //string name = "Dakota"; //string myshape = convertMethod(name); // List<string> myGridData = convertMethod(results); List <string> myGridData = new List <string>(); //Func<string, List<string>> convertMethod = ShapeGridRow; DelegateShapeGridRow convertMethod = ShapeGridRow; foreach (dynamic result in results) { dynamic desc = result; myGridData = convertMethod(result); } this.IsPending(); }
public jgridDisplayHelper(DelegateShapeGridRow convertMethod) { this.ConvertMethod = convertMethod; }
public jgridDisplayHelper(DynamicModel _tbl, DelegateShapeGridRow convertMethod) { tbl = _tbl; this.ConvertMethod = convertMethod; }