scroll units & scheduler.serverList

Hello!

May use scroll units with load data not from case, and use
var sections = scheduler.serverList(“temp_id”); ?

it seems is work not correctly =(

Can you provide a code snippet which doesn’t work in your case?

var sections = scheduler.serverList(“class_id”);
scheduler.createUnitsView({
name:“unit”,
property:“class_id”,
list:sections
});

work ok, but:

var sections = scheduler.serverList(“class_id”);
scheduler.createUnitsView({
name:“unit”,
property:“class_id”,
list:sections,
size:10,
step:5
});

is not work, scheduler is not rendering

Try to use the attached js file instead of the original one.
dhtmlxscheduler_units.zip (1.78 KB)

without result =(

With updated js file units can be created correctly, while loading from server side.
Problem can occurs if you have list with elements count smaller than defined size
In your case, is there at least 10 elements in the loaded collection ?

Yes, list have more 10 elements

If necessary I can provide a sample with same init code, it works with latest js file

I could not force to work units scrolling with options fetching from db…
May give me sample?
thanks

I try to use code with
samples\03_extensions\17_connector_units.html,

whithout units scroll it is working ok, but

	var sections = scheduler.serverList("type");
	scheduler.createUnitsView({
		name:"unit",
		property:"section_id",
		list:sections,
		size:3,
		step:1
	});

not working, with error:

list[index] is undefined
if (list[index].css)
dhtmlxscheduler_units.js (line 16)

(with new dhtmlxscheduler_units.js file)

Same sample works fine locally.
Try to update dhtmlxscheduler.js as well
dhtmlxscheduler_unit.zip (30.9 KB)

It’s ok!
Great thanks!!!