For these tasks I always use DoctypeGridEditor. It takes care of all the angular logic and you have IPublishedContent or a strongly typed model when using modelsbuilder.
This combined with nested content takes up only 15 minutes to setup exactly what you are looking for.
Not the answer you asked for but maybe saves some time and frustration in the future?
Sortable inside a grid editor
Hi,
I'm creating a poll-editor for the grid. I want to make it possible to sort the answers.
It works but my problem is that when sorting, the item that has to move gets invisible and the bluegreen block show up.
I would like to use the "regular" way of sorting form jQuery UI, without hiding the item that moves: https://jqueryui.com/sortable/#default
I use this code in my editor controller:
And my view looks like:
Do you have a suggestion how i can make the "default" sorting working in inside a grid-editor?
Kind regards, iNETZO
Hi iNetzo,
For these tasks I always use DoctypeGridEditor. It takes care of all the angular logic and you have IPublishedContent or a strongly typed model when using modelsbuilder. This combined with nested content takes up only 15 minutes to setup exactly what you are looking for.
Not the answer you asked for but maybe saves some time and frustration in the future?
Doctype grid editor
Frans
is working on a reply...