This is a migrated thread and some comments may be shown as answers.

Listview - AngularJS - Editing

2 Answers 153 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 22 Aug 2014, 04:27 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 26 Aug 2014, 07:57 AM
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!
 
0
Matt
Top achievements
Rank 1
answered on 26 Aug 2014, 09:14 AM
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
Tags
ListView
Asked by
Matt
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Matt
Top achievements
Rank 1
Share this question
or