Page 1 of 1

Combobox not showing on page

Posted: Tue Sep 21, 2021 3:28 am
by alex4orly
Just stated a new page : https://squadron-125.org.il/page5.html

It has one Layoutgrid, 2 columns
In the right column, a Combobox

When I run the page, the Combobox does NOT show on the page

Any suggestions?

Thanks

Re: Combobox not showing on page

Posted: Tue Sep 21, 2021 6:03 am
by Pablo
Do you have a demo project so I can see all your settings?

Re: Combobox not showing on page

Posted: Tue Sep 21, 2021 6:55 am
by alex4orly
Pablo wrote: Tue Sep 21, 2021 6:03 am Do you have a demo project so I can see all your settings?
I wanted to create a new project to send you, but it seems to have fixed itself????
Is there a way in the combobox to load data dinamically from a csv instead of hard coding it?

Cheers

Re: Combobox not showing on page

Posted: Wed Sep 22, 2021 6:07 am
by Pablo
Yes this is possible but it requires custom code.
For example:
https://stackoverflow.com/questions/131 ... ct-element

Re: Combobox not showing on page

Posted: Thu Sep 23, 2021 9:00 am
by alex4orly
I found out in the meantime a better option, in my case I wanted to include in the combo box only data from certain columns, hope this can help someone else here
var myArray;
var coords;
var showList;
$.ajax({
url: './contacts125.csv',
success: function(data)
{
var splitData=data.split("\n");

for (var i = 0; i < splitData.length; i++)
{
let str = splitData;
myArray = str.split(",");
showList = myArray[0] + ',' + myArray[2];

$('#Combobox1').append("<option value=\"" + showList + "\">" + showList + "</option>");
}
}
});


Cheers