Discussions

Expand all | Collapse all

grid edit event handlers

  • 1.  grid edit event handlers

    Posted 07-21-2016 15:16

    So I made a function that will highlight rows in a grid edit report but I'd like my function to fire whenever a row is changed and I've been unable to bind any events, so far tried like mousedown and click using .on() and .bind() but i keep getting this error. Guessing I can't double bind or something?

    ((f.event.special[s.origType] || (intermediate value)).handle || s.handler).apply is not a function



  • 2.  RE: grid edit event handlers

    Posted 07-21-2016 16:02
    so if anyone is curious I just have this set to go 3 seconds after the page is loaded (because .load and .ready caused it to break the highlighting) Curious though if anyone knows how to do this on an event without saving. But for now this works for me

    For anyone who wants the code here it is
    http://pastie.org/10914436


    Im not sure what other pages this is will work but in my case I have an embedded grid edit report on my master record. I have related tasks and this report is to create assignments for those tasks. There isn't a relationship to the master and assignments, just tasks. So they create multiple assignments and assign the child tasks to it and assign users to complete the assignment so the originator can complete the task. The function just checks to see if Completed is checked, if so its black, if not its red.

    Hope it helps and look forward to feedback!


  • 3.  RE: grid edit event handlers

    Posted 09-09-2016 19:34
    Do you have the code available to color rows in grid edit? The link you posted no longer work


  • 4.  RE: grid edit event handlers

    Posted 09-09-2016 20:44
    .


  • 5.  RE: grid edit event handlers

    Posted 09-09-2016 20:45
    here ya go, hope it helps. This also includes the logic for when no records exist. It didn't work right so this checks to see if no related assignments exist then enters a dummy one in so it loads the grid edit properly

    http://paste.ofcode.org/Mi44YqynVVkEjeRpznfpfY


  • 6.  RE: grid edit event handlers

    Posted 06-08-2018 00:19
    this would be so cool, but your link isnt working.  Think you can post it again for us?  Thank you tons!!


  • 7.  RE: grid edit event handlers

    Posted 09-09-2016 21:21
    thanks I will check it out