different answer between browsers (firefox - chrome), Join tables - self referencing join
different answer between browsers (firefox - chrome), Join tables - self referencing join
Hello,
The option defaultContent: "", doesn't work in chome, always show the first data, when shouln't show nothing. Only a whitespace
Is not a problem with my code, because the web exemple is doing the same error.
http://editor.datatables.net/examples/advanced/joinSelf.html
Moltes gracies
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm afraid I don't see the bug in the example you linked to. How can I recreate the error?
Allan
Exemple with Firefox:
https://dl.dropboxusercontent.com/u/25667201/datatables/Captura1.PNG
Exemple with Chrome:
https://dl.dropboxusercontent.com/u/25667201/datatables/Captura2.PNG
In the second one, autoselect by default a manager name,
This is in relation to the select list? The
columns.defaultContent
property has no effect on that. That is entirely up to the browser. You can usefields.def
to set a default value for the field if you like, but it looks like the two browsers do different things when there is no default.Allan
I tested with, fields.def -> option, but this option doesn't work if the code have a select list joined.
In chrome always show que first register of the joined table.
The solution maybe is create a register empty and select this one.
Lambert
Yes, if you want to always have an empty options available, then you'd need to insert that into the options list. You'd also need a validator to ensure that the end user doesn't submit that value.
Allan
thanks for the clarification
Lambert