-
18 Apr 2012 9:37 PM #1
Unanswered: Grid dataIndex customisation and my misunderstanding
Unanswered: Grid dataIndex customisation and my misunderstanding
hello,
I want to put some custom data in to column field... my data located at the local store.
code of my grid:
columns: [
{text: "name", flex: 1, dataIndex: 'name'},
{text: "type", flex: 1, dataIndex: 'type'},
{text: "value", flex: 1, dataIndex: 'function', renderer: this.rendeValueColumn},
{text: "parameter", flex: 1, dataIndex: 'parameter'},
{text: "rule", flex: 1, dataIndex: 'rule'}
],
i want to change 'rule' .
i'm try to : var a = 'test'; {text: "rule", flex: 1, dataIndex: a} etc...
but that way arent help me...
-
19 Apr 2012 10:47 AM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,186
- Vote Rating
- 194
- Answers
- 433
You can use a renderer for that:
Regards,Code:function myRule(val,meta,record){ return val; // make changes here. } { text: "rule", flex: 1, dataIndex: 'rule', renderer: myRule }
Scott.


Reply With Quote