我制作了几个treetables,每个都放在它自己的div上。 我得到的主要可重现问题是:
这是代码:
var assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Test"),
AssemblyBuilderAccess.Run);
var module = assembly.DefineDynamicModule("Test");
var type = module.DefineType("TestType");
var methodBuilder = type.DefineMethod("MyMethod", MethodAttributes.Public
| MethodAttributes.Static);
methodBuilder.SetReturnType(typeof(decimal));
Expression<Func<decimal>> decimalExpression = () => 42M;
decimalExpression.CompileToMethod(methodBuilder);
var t = type.CreateType();
var result = (decimal)t.GetMethod("MyMethod").Invoke(null, new object[] {});
result.Dump(); // 42 :)
}
答案 0 :(得分:0)
解决方法:添加一个简单的textField并在添加treeTable后隐藏它:
addSimpleHiddenTextField(HIDDEN_TEXTFIELD)
for(var i in config.TABLES){
createTableAndPlaceIt(result[i], i, config.TABLES[i])
}
hideSimpleTextField(HIDDEN_TEXTFIELD)