How to make rowTemplate editable

5 posts, 0 answers
  1. Good
    Good avatar
    2 posts
    Member since:
    May 2012

    Posted 17 May 2012 Link to this post

     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?

  2. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 24 May 2012 Link to this post

    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 #">

     

  3. Kendo UI is VS 2017 Ready
  4. Alex
    Alex avatar
    27 posts
    Member since:
    Oct 2011

    Posted 03 Jun 2012 Link to this post

    Does it work for you?

    I added the uid in my template, but now my lines disappear when I click on them.

    Thanks,

    Alexis
  5. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 04 Jun 2012 Link to this post

    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
  6. Alex
    Alex avatar
    27 posts
    Member since:
    Oct 2011

    Posted 04 Jun 2012 Link to this post

    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
Back to Top
Kendo UI is VS 2017 Ready