Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 76 posts 280 karma points
    Mar 20, 2015 @ 18:31
    Matt
    2

    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?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Mar 20, 2015 @ 23:15
    Matt Brailsford
    1

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Mar 23, 2015 @ 11:56
    Matt Brailsford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft