MVC Telerik Grid 动态数据:如何向网格传递列类型信息

3
在我的Telerik MVC-Grid中,我正在使用与datatable的动态绑定。除了过滤器之外,一切都运行良好,操作员下拉列表保持为空。我猜想网格不知道应该应用什么类型的过滤器,因为没有给出类型。但是如果我知道列的类型,我怎么能将这些信息从控制器传递到视图呢?您可以在这里查看我的样例项目。
祝好, Simon
1个回答

1

我刚刚收到了Telerik团队的答案,它很有效 :) 我会在被允许时(7小时后:-))将其标记为答案。

In order to set column types in your scenario, you should upgrade to the Q3 2011 version of the Telerik Extension for ASP.NET MVC. In this version we have added MemberType setting to GridColumnSettings feature which used in the provided sample.

new GridColumnSettings { Member = "Number", Title="Number", MemberType= typeof(int) }

Regards, Rosen the Telerik team

帖子链接:click


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接