Skip to main content
Question

grid edit event handlers

  • July 21, 2016
  • 0 replies
  • 41 views

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

This topic has been closed for replies.

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!

Forum|alt.badge.img+7
  • Registered
  • September 9, 2016
Do you have the code available to color rows in grid edit? The link you posted no longer work

  • Registered
  • September 10, 2016
.

  • Author
  • Registered
  • September 10, 2016
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

Forum|alt.badge.img+7
  • Registered
  • September 10, 2016
thanks I will check it out