grid edit event handlers

  • 2
  • 2
  • Question
  • Updated 1 year ago
  • Answered

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

Photo of itsjustchuck

itsjustchuck, Champion

  • 80 Points 75 badge 2x thumb

Posted 3 years ago

  • 2
  • 2
Photo of itsjustchuck

itsjustchuck, Champion

  • 80 Points 75 badge 2x thumb
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!
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb
Do you have the code available to color rows in grid edit? The link you posted no longer work
Photo of Nick

Nick

  • 0 Points
.
Photo of itsjustchuck

itsjustchuck, Champion

  • 80 Points 75 badge 2x thumb
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
Photo of Jana

Jana

  • 324 Points 250 badge 2x thumb
this would be so cool, but your link isnt working.  Think you can post it again for us?  Thank you tons!!
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb
thanks I will check it out