EasyUI Forum
September 18, 2025, 07:56:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Same data field for two columns in TreeGrid  (Read 6977 times)
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« on: July 03, 2015, 02:56:30 PM »

I have the following columns in TreeFrid:
Code:
columns: [[
                       { field: 'name', title: 'Name' },
                       [b]{ field: 'category', title: 'Alarm State', align: 'center', formatter: scope.formatAlarmState },
                       { field: 'category', title: 'Alarm Category', align: 'center' },[/b]
......

As you can see I am using same field for two different columns. In first column I am changing cell's content using scope.formatAlarmState. In the second column I am just showing a value.
When I have first column only I see new content, but when I use both columns they both show values.
Not sure what I am doing wrong.

Thanks
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: July 03, 2015, 05:55:05 PM »

The column fields must be unique in datagrid and treegrid.
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!