Title: datagrid formatter bug Post by: azizkhani on May 18, 2015, 09:48:59 AM <table id="dg_flatCostPayment" class="easyui-datagrid" align="center" width="100%"
data-options="singleSelect:true,rownumbers:true,pagination:true> <thead> <tr> <th data-options="field:'accountDateShamsi',width:200">accountDateShamsi</th> <th data-options="field:'price',width:100,formatter:formatPrice">price</th> <th data-options="field:'price',width:100,formatter:formatOther">priceOther</th> </tr> </thead> </table> formatter for formatOther dose not work and show formatter for price in price other ??? ??? ??? ??? Title: Re: datagrid formatter bug Post by: jarry on May 18, 2015, 03:49:33 PM You can not use a duplicate field name in the datagrid component.
Title: Re: datagrid formatter bug Post by: azizkhani on May 19, 2015, 08:15:31 AM why??????
Title: Re: datagrid formatter bug Post by: eagleeye on May 19, 2015, 09:56:41 AM why?????? Check your datagrid definition, you have two columns with the same name of field, and this it refers to diferent formatterTitle: Re: datagrid formatter bug Post by: azizkhani on May 19, 2015, 10:36:28 AM yes i know that .i want show another column that format it
for example column is price i want to show price ---- status 100 good -100 bad formatter is good for >0 and bad is for <0 . |