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.
我需要在剑道网格的单个字段中显示值数组。是否有可能做到这一点
场景:对于网格每一行中的某些列,我得到每行的值列表,并且需要以逗号分隔显示它们。所以给定值['a','b']我需要在列中显示为a,b
['a','b']
a,b
在列定义中,定义用户jQuery.join方法的模板。
jQuery.join
示例:如果字段是Cities(数组),它将类似于:
Cities
{ field: "Cities", width: 300, template: "#= Cities.join(', ') #" }