Problems with ListBox |
Post Reply |
Author | |
upeters
Groupie Joined: 31 May 2007 Location: Brazil Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 29 May 2008 at 3:42pm |
I am having problems with the ListBox component, which is not working as documented. I am currently using the last version of branch 11.x.
Following the documentation, when using the "Selected" property, it should return a collection of all items that are selected. I can't see this at all, all I get is a boolean as response. When processing the selected items of the ListBox (defined as xtpListMultiSelectSimple), the property "Text" returns always the last selected item, and I never get a chance to retrieve what other fields were selected. At last, you state that there is a ColumnWidth property, which would allow to set multicolumns. Could somebody please show an example, as this doesn't seem to work at all? If possible, I would ask you to provide a small example to show how to retrieve the multiple selections. I found nothing in the articles, and the sample code doesn't make use of multiple selections, or multiple columns. Thank you, Ulrich |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You need check SelCount property if it > 1, you need loop all items and check
List.Selected(i)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |