Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用带有自定义聚合的 Telerik RadGrid 时,我试图在页脚行中显示一个简单的字符串,例如“Total”。但是,RadGrid 似乎会在字符串的开头自动为我插入文本,使其显示为“自定义:总计”。我该如何关闭它?
找到了。您只需像这样设置 GridBoundColumn 的 DataFormatString 属性:
<telerik:GridBoundColumn HeaderText="Capacity" UniqueName="CapacityType" DataField="CapacityType" ItemStyle-Width="210" ReadOnly="true" FooterAggregateFormatString="{0:g}" Aggregate="Custom" />