Skip to main content
Participating Frequently
February 28, 2011
Answered

How to make a default selection in a List component?

  • February 28, 2011
  • 1 reply
  • 470 views

Hi!

I need that when the list appears is shows a selected cell, I tried this but didn´t worked:

list.isItemSelected(0)=true;

This topic has been closed for replies.
Correct answer Ned Murphy

You should only need to assign the selectedIndex property, as in...

list.selectedIndex = 0;

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 28, 2011

You should only need to assign the selectedIndex property, as in...

list.selectedIndex = 0;