EasyUI Forum
May 14, 2024, 06:53:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid formatter bug  (Read 9322 times)
azizkhani
Newbie
*
Posts: 37


View Profile Email
« 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

 Huh Huh Huh Huh
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: May 18, 2015, 03:49:33 PM »

You can not use a duplicate field name in the datagrid component.
Logged
azizkhani
Newbie
*
Posts: 37


View Profile Email
« Reply #2 on: May 19, 2015, 08:15:31 AM »

why?Huh??
Logged
eagleeye
Newbie
*
Posts: 19


View Profile Email
« Reply #3 on: May 19, 2015, 09:56:41 AM »

why?Huh??
Check your datagrid definition, you have two columns with the same name of field, and this it refers to diferent formatter
Logged
azizkhani
Newbie
*
Posts: 37


View Profile Email
« Reply #4 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 .
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!