I use columns in grid, the toolbar and command work well,
but when I use towTemplate, I can't edit data,
what I means like this:http://jsfiddle.net/VSaZA/9/
Is it possible to edit row template?
but when I use towTemplate, I can't edit data,
what I means like this:http://jsfiddle.net/VSaZA/9/
Is it possible to edit row template?
4 Answers, 1 is accepted
0
Jerry T.
Top achievements
Rank 1
answered on 24 May 2012, 04:47 PM
We discovered that, when using a rowTemplate in the grid configuration, you have to manually add the data-uid attribute in your template.
Go to your template and be sure your <tr> tag looks like this:
<tr data-uid="#= uid #">
Go to your template and be sure your <tr> tag looks like this:
<tr data-uid="#= uid #">
0
Alex
Top achievements
Rank 2
answered on 04 Jun 2012, 02:14 AM
Does it work for you?
I added the uid in my template, but now my lines disappear when I click on them.
Thanks,
Alexis
I added the uid in my template, but now my lines disappear when I click on them.
Thanks,
Alexis
0
Jerry T.
Top achievements
Rank 1
answered on 04 Jun 2012, 01:20 PM
Alexis,
Perhaps this will help. It's a JSFiddle with a rudimentary version of code that I'm using. It's all thrown into the HTML panel but perhaps something is going on with your CSS?
http://jsfiddle.net/havnfn/cp4mx/18/
Jerry
Perhaps this will help. It's a JSFiddle with a rudimentary version of code that I'm using. It's all thrown into the HTML panel but perhaps something is going on with your CSS?
http://jsfiddle.net/havnfn/cp4mx/18/
Jerry
0
Alex
Top achievements
Rank 2
answered on 05 Jun 2012, 02:58 AM
Hi,
Thank you for your reply. I found out that my issue was that I was trying to put two fields within the same cell in my template. I guess the framework doesn't know what to do with this.
I went back to a more typical grid with one column per field, and it works fine.
Thanks,
Alex
Thank you for your reply. I found out that my issue was that I was trying to put two fields within the same cell in my template. I guess the framework doesn't know what to do with this.
I went back to a more typical grid with one column per field, and it works fine.
Thanks,
Alex