Jump to:

23369 Posts in 18145 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » onAfterwrite on GridField?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 365 Views
  • esakrielaart
    Avatar
    Community Member
    54 Posts

    onAfterwrite on GridField? Link to this post

    Hi all,

    digging into GridField, I'm wondering if there is a way to perform actions like page-reload when a relation is written using GridField and the GridFieldConfig_RelationEditor (so handleAction is called with action 'addto' for instance).

    I know onAfterWrite() is triggered upon saving a form generated with getCMSFields(), but this GridField is a form generated within getCMSFields and may save relations before clicking the 'general' save button.

    Friendly regards,
    Maurice

  • Reflektera
    Avatar
    49 Posts

    Re: onAfterwrite on GridField? Link to this post

    Did you solve this? Pls say you did...

  • esakrielaart
    Avatar
    Community Member
    54 Posts

    Re: onAfterwrite on GridField? Link to this post

    Hi,

    although I did not yet solve this, you might try things using jQuery/entwinte as I think you need some technique of those to be able to 'dynamically' add or remove classes from the gridfield. I didn't have the need for it anymore at this point, but if I work it out in the future, I sure let you know.

    Friendly regards,
    Maurice

    365 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.