Master detail edit detail grid

QuestionsMaster detail edit detail grid
David Sims asked 4 years ago

https://gist.github.com/dmsims/cee00e9f4d51463f1aeeb0ef73b5d198

For the first detail table (Owners)

I had to add OwnersPK (primary key) as a hidden column to get column selection and editing to work on each row

When you click edit the console error is

VM799:787 Uncaught TypeError: jQuery(…).trumbowyg is not a function
at <anonymous>:787:16

For the second detail table Publications

click edit give console error and there is no cancel button

jquery-3.3.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #edit_row_list1_1_sub2_01/11/1986
at Function.oe.error (jquery-3.3.1.min.js:2)
at oe.tokenize (jquery-3.3.1.min.js:2)
at oe.select (jquery-3.3.1.min.js:2)
at Function.oe (jquery-3.3.1.min.js:2)
at Function.e.find (jquery-migrate-3.0.1.min.js:59)
at w.fn.init.find (jquery-3.3.1.min.js:2)
at e.fn.init.w.fn.init (jquery-3.3.1.min.js:2)
at new e.fn.init (jquery-migrate-3.0.1.min.js:43)
at w (jquery-3.3.1.min.js:2)
at HTMLTableElement.ondblClickRow (<anonymous>:430:6)

 

1 Answers
Abu Ghufran Staff answered 4 years ago

1) Perhaps, You forget to include trumbowyg js/css files.

https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.21.0/ui/trumbowyg.min.css
https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.21.0/trumbowyg.min.js

2) The first column of grid must have unique alphanumeric data (usually a PK).
This is required for proper display as well as update & delete operations of particular row.
Currently i can see it’s date which contains ‘/’ as non-alphanumeric.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

18 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?