예제 #1
0
        private static IDictionary <string, object> JsonForForeignKeyColumn <T, TValue>(Expression <Func <T, TValue> > expression, SelectList data, Action <GridForeignKeyColumn <T, TValue> > configure)
            where T : class
        {
            var column = new GridForeignKeyColumn <T, TValue>(GridTestHelper.CreateGrid <T>(), expression, data);

            configure(column);
            return(column.CreateSerializer().Serialize());
        }