Print Page | Close Window

Problems with ListBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=10829
Printed Date: 26 April 2024 at 7:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems with ListBox
Posted By: upeters
Subject: Problems with ListBox
Date 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



Replies:
Posted By: Oleg
Date Posted: 30 May 2008 at 2:55am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net