Listview - AngularJS - Editing

3 posts, 1 answers
  1. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 22 Aug 2014 Link to this post

    It may be im just tired and missed a something.

    I have a few listviews that im converting to use AngularJS. but im having a trouble with the edit mode.

    <div kendo-listview
                id="listView"
                k-data-source="DataSource"
                k-template='ListViewTemplate'
                k-edit-template='ListViewEditTemplate'>
    </div>

    I presume the last part 'k-edit-template' is correct as there is a lack of samples as confirmation.

    It has items, it loads up the view template just fine. I have my edit buttons as before.... but clicking on the edit button does not do anything.
    Do the edit buttons need to change at all to have the listview fire?

    Thanks,
    Matt
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 26 Aug 2014 Link to this post

    Hello Matt,

    the source code you have posted seems correct. I merged our editing example with the AngularJS one, and it works as expected. Perhaps I am missing something? 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 26 Aug 2014 in reply to Petyo Link to this post

    I see where i went wrong.

    The edit template was correct and present. I had incorrectly put the edit button's expected class for the edit button slightly wrong.
    'k-button-edit' <- bad
    'k-edit-button' <- correct.

    it was a tiring Friday ;-)

    Thanks Petyo
Back to Top