Hi Guys!
First of all, sorry for my English.
I have a little problem with the inline edit feature.
In my dataSource I have these columns:
columns =
[
{ id: 1, field: 'name', title: 'Name' },
{ id: 2, field: 'extra_info', title: 'Extra Info' },
{ id: 3, field: 'localnames[0]', title: 'Localname 1', template: "#=name#" },
{ id: 4, field: "localnames[1]", title: 'Localname 2', template: "#=name#" },
{ command: [{ name: "edit", text: "Edit" },{ name: "destroy", text: "Remove" }] }
];
In my list, i have an array "localnames", and when I was rendering the grid, in the column "Localname 1" and "Localname 2" the text was showing [Object]. To solve this I used "template: "#=name#"" to render the name of the object localname[0].
But now, while I'm using the inline-edit, when I click on the edit button, the grid show me [Object] to edit. How can I solve this?
Anyone had this problem before?
Thanks for your help and sorry for my English.
First of all, sorry for my English.
I have a little problem with the inline edit feature.
In my dataSource I have these columns:
columns =
[
{ id: 1, field: 'name', title: 'Name' },
{ id: 2, field: 'extra_info', title: 'Extra Info' },
{ id: 3, field: 'localnames[0]', title: 'Localname 1', template: "#=name#" },
{ id: 4, field: "localnames[1]", title: 'Localname 2', template: "#=name#" },
{ command: [{ name: "edit", text: "Edit" },{ name: "destroy", text: "Remove" }] }
];
In my list, i have an array "localnames", and when I was rendering the grid, in the column "Localname 1" and "Localname 2" the text was showing [Object]. To solve this I used "template: "#=name#"" to render the name of the object localname[0].
But now, while I'm using the inline-edit, when I click on the edit button, the grid show me [Object] to edit. How can I solve this?
Anyone had this problem before?
Thanks for your help and sorry for my English.