Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Inserting and Removing combobox items

More
IP: 96.245.179.34 7 years 6 months ago #14069 by grudan
What would be the best way to improve performance on inserting and removing combobox items?
Adding 50 items takes about 14 seconds, and removing 50 items takes about the same amount of time.

The device for testing is an LG VK810 tablet.

The code below is being run after the PDF is rendered in order to be able to correctly find the combobox annotation.

for (int i=0;i<50;i++) {
annot.InsertComboItem(0, "test1", "test1");
}

for (int i=0;i<50;i++) {
annot.RemoveComboItem(0);
}
More
IP: 37.183.44.177 7 years 6 months ago #14072 by support
A better approach shall be to append/remove the item on the last position

for (int i=0;i<50;i++) {
annot.InsertComboItem(i, "test1", "test1");
}
Time to create page: 0.383 seconds
Powered by Kunena Forum