ID field is not rendered in grid, it is an expected use-case ( because making ID visible or editable creates a confusing situation , when client side rows can’t be linked to related DB records )
If you are using grid only for loading, you can duplicate ID in list of fields
Hello! Thanks for your quick reply. I think i found my problem as well. I forgot to put an id field with auto_increment in the database. after i done that it works!
I want to use this script to view/edit/add…is this the wrong script that i am using?
If you are using ID field only as row-ID and not plan to show it as column in grid - default version of dhtlmxconnector will work fine. ( because you are using auto-increment field - it seems as your case )
If you need to show and edit the ID data on the client side - alternate connector class can be used ( can be taken from link in previous post ), also it can be used when ID is non-auto-increment.
Thanks again for your quick reply. I won’t have to edit or show the row id. So i will work on with this script…
I have one more last question for now. Since im not very good at scripting, does anyone know, if i can start this script with 20-30 rows allready showing (blank) so i dont have to add a row everytime? Lets say like Excel has… Or wont this work with this script?
The only way to have such functionality and auto-saving by connector - add some count of empty records to the database - so they will be shown as empty rows in client side grid as well.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan