Click here to Skip to main content
15,912,082 members
Articles / Web Development / ASP.NET
Article

PickList 2.0

Rate me:
Please Sign up or sign in to vote.
3.02/5 (17 votes)
17 Feb 2005 97.4K   777   35   25
Updated version of Drieske's PickList.

Sample Image - Picklist2.gif

Introduction

This is an update to Drieske's Picklist. This code has the following updates and features.

  • Double click support for moving items from the left to right listbox and vice-versa. Works in IE and Firefox browsers.
  • Added CopyItemLeft and CopyItemRight. These options appear in Visual Studio design mode properties. These properties allow the items to be copied over from the left to the right or vice-versa.

    Note: only set one of these properties to true, not both.

  • AllButtons property which appears also in design mode enables or disables the move all items left and move all items right buttons.
  • IsMoveItemLeft and IsMoveItemRight allows you to move the items up and down the listbox without Postback.
  • Image button support by setting the ImageAllLeft, ImageAllRight, ImageLeft, or ImageRight, you can apply an image instead of the text button (and also the move up/down button). There's no width or height settings.
  • Fix for Firefox suggested by M6rk (see the forum in PickList) to change ':' to '_' in the id.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Austria Austria
Programmer, Cook, Photographer I guess that's me.

http://www.i386.com

http://blog.glyons.at

Comments and Discussions

 
Generalgreat Control...small bug? [modified] Pin
pgarbutt6-Aug-07 6:37
pgarbutt6-Aug-07 6:37 
Hi,

I'm using this control (multiples actually) to populate information but when I click on a Button that is not part of the PickList and the screen refreshes, it strips the ItemsLeft and ItemsRight viewable text and replaces it with the value instead.

For example my list may contain stuff like "EX1234 (On test)" but after postback it states just "EX1234", which is the actual value I record, not the view text!

Any ideas?

I've tried to capture each ItemList into a separate ItemList and then clear and read those back into the PickList, but no joy....Frown | :(


I've remembered that I'm actually using V1 of this control, but this question will probably apply to V2 also, unless the bug (listed on V1's discussion section) has been removed in this one?

For info, I've used a DataReader to grab values from SQL2000 using Data Access Application Block V1 from MS and its "ExecuteReader" method to supply connection & query. I then read through the DataReader and assign Text and Value to a DataItem then add the DataItem to the ItemsLeft Collection of the control. Like I say, works fine on PageLoad and looks nice, but if another button on screen is clicked (which I use to transfer ItemsRight to somewhere else), then both Item lists have their Text values changed for their Value values, if you see what I mean?
GeneralRe: great Control...small bug? Pin
pgarbutt6-Aug-07 23:02
pgarbutt6-Aug-07 23:02 
GeneralNot work inside user control Pin
fzardoya25-May-07 1:01
fzardoya25-May-07 1:01 
GeneralJS Error - Object Required Pin
jvan8524-Jan-07 10:56
jvan8524-Jan-07 10:56 
GeneralRe: JS Error - Object Required Pin
jvan8525-Jan-07 13:39
jvan8525-Jan-07 13:39 
QuestionRe: JS Error - Object Required Pin
Gloki31-May-07 21:05
Gloki31-May-07 21:05 
AnswerRe: JS Error - Object Required Pin
Gloki4-Jun-07 0:32
Gloki4-Jun-07 0:32 
GeneralCan't retrieve list items when using Firefox Pin
frankosaurus26-Sep-06 14:58
frankosaurus26-Sep-06 14:58 
GeneralRe: Can't retrieve list items when using Firefox Pin
frankosaurus26-Sep-06 16:21
frankosaurus26-Sep-06 16:21 
GeneralDesign time error when on panel inside panel Pin
Tim Schwallie21-Jun-06 0:52
Tim Schwallie21-Jun-06 0:52 
GeneralJust a suggestion Pin
darthtim200426-Apr-06 1:17
darthtim200426-Apr-06 1:17 
QuestionHow to get the selected values Pin
sunsmile27-Mar-06 12:46
sunsmile27-Mar-06 12:46 
QuestionWhat am I missing? Pin
rcamire13-Jan-06 3:36
rcamire13-Jan-06 3:36 
AnswerRe: What am I missing? Pin
pgarbutt6-Aug-07 8:09
pgarbutt6-Aug-07 8:09 
QuestionHow i can place it on a WebControl Pin
WDI9-Aug-05 21:55
WDI9-Aug-05 21:55 
AnswerRe: How i can place it on a WebControl Pin
i386.com9-Aug-05 22:06
i386.com9-Aug-05 22:06 
GeneralRe: How i can place it on a WebControl Pin
WDI10-Aug-05 2:07
WDI10-Aug-05 2:07 
AnswerRe: How i can place it on a WebControl Pin
antoine beloeuvre3-Jan-06 23:47
antoine beloeuvre3-Jan-06 23:47 
GeneralQuestion Pin
WDI26-Jun-05 6:34
WDI26-Jun-05 6:34 
GeneralRe: Question Pin
i386.com26-Jun-05 6:48
i386.com26-Jun-05 6:48 
Questionusing System.Web.UI.Design ? Pin
WDI26-Jun-05 4:02
WDI26-Jun-05 4:02 
GeneralDll Pin
raide_s13-Apr-05 3:58
raide_s13-Apr-05 3:58 
GeneralRe: Dll Pin
Member 108570413-May-05 3:42
Member 108570413-May-05 3:42 
GeneralRe: Dll Pin
jiataiping17-Jun-05 13:49
jiataiping17-Jun-05 13:49 
GeneralGreat work Pin
3sL18-Feb-05 4:48
3sL18-Feb-05 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.