The form doesn’t autoselect the ‘N’ value. Why, please? Does it have something to do with the form being bound to the grid? The simple examples you show online seem to work, and the code is no different than mine, from what I can tell. Sample code would be appreciated. Thanks.
Thanks, Darya, but removing the quotes around the Boolean value didn’t work, either. I refreshed the browser and look at the dropdown, and there was no change.
Thanks, Darya. I can get the dropdown select to work locally here, using a very simple example. It doesn’t work in the app I wrote, which involves a number of objects (form, grids) sharing a datastore and bound to each other.
I’ll look through the link you sent and try to provide you the code in the format you request. Thank you again.
Darya, I’m sorry, I don’t understand what you are asking for. I believe I gave you a ‘complete demo’ in line with your requirements. Please advise? Thank you.
Sorry.
In completed demo you haven’t any linked js and css files. And file connectorFRST2, which loads the form data is missed.
Your demo (after many local code editings is the next) are the next:
Thanks, I thought I’d copied all the libraries my code is using into the ‘completed example’. Not sure why there are broken references.
I’ve written a stand-alone form with a Select field, which includes a selected:true option, copied exactly from one of the online DHTMLX demos. The selected:true part just doesn’t work. Not sure why, as it seems like it would be a very simple thing to implement.
I got the selected:true code to work; it turns out it was the order of the DHTMLX JavaScript libraries which was the problem, solved by putting these libraries in this order:
Strangely, I already had each one of the libraries in my app code, just not in that particular order (I found the order in a DHTMLX combo box example).
Which raises another question: is there a specific order in which the libraries must be listed in the app code, please?
But now the form won’t add records … so obviously, the libraries must be kept in some specific order. I wonder if there is an order which would allow both the form to add records, and giive me selection defaults?