One thing I like about "traditional" grid editors that I write is that when I close the popup dialog (if it has one) then the grid is already updated and "more WYSIWYG" due to the Angular goodness. I know you're running partial views to render and kinda eliminating the html side of traditional grid editors, but do you think there is a way via an ajax call to go grab just the updated part of the grid so you dont have to hit save on the grid to get your WYSIWYG view?
As you noted, we currently render the partial against the published content. We did this to be inline with how the macro renderer works (plus it's a lot easier to implement). In theory we could write something to update the preview on close of the dialog by posting off the returned JSON to the preview render request and have it use this instead.
I'll have a word with Lee to get his thoughts, but in the mean time I've added it to the project issue tracker so we can keep sight of it.
Hold on a sec, I've just realized, we do already update the preview with the unpublished value as soon as the dialog closes. The only thing that relies on published content is if within your partial, you try to access properties of the containing page.
If this isn't what you mean, can you explain what it does now and how you'd like it changed?
Auto Refresh in Grid?
Firstly - well done - "simple idea" executed really really well.
One thing I like about "traditional" grid editors that I write is that when I close the popup dialog (if it has one) then the grid is already updated and "more WYSIWYG" due to the Angular goodness. I know you're running partial views to render and kinda eliminating the html side of traditional grid editors, but do you think there is a way via an ajax call to go grab just the updated part of the grid so you dont have to hit save on the grid to get your WYSIWYG view?
Hi Matt,
As you noted, we currently render the partial against the published content. We did this to be inline with how the macro renderer works (plus it's a lot easier to implement). In theory we could write something to update the preview on close of the dialog by posting off the returned JSON to the preview render request and have it use this instead.
I'll have a word with Lee to get his thoughts, but in the mean time I've added it to the project issue tracker so we can keep sight of it.
https://github.com/leekelleher/umbraco-doc-type-grid-editor/issues/2
Thanks for trying out the DTGE and for you feedback.
Matt
Hold on a sec, I've just realized, we do already update the preview with the unpublished value as soon as the dialog closes. The only thing that relies on published content is if within your partial, you try to access properties of the containing page.
If this isn't what you mean, can you explain what it does now and how you'd like it changed?
Many thanks
Matt
is working on a reply...