Page 1 of 1 1
Topic Options
#129986 - 2004-11-20 07:59 PM Pimp my Listview ...
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As there aren't any takers on my little problem on kixforms.com bbs I think it's time for a try here.

I will post a link instead of reposting the entire thread here. Please refer to the sample snippet in the last post :

Link to post

thanks
_________________________



Top
#129987 - 2004-11-20 08:03 PM Re: Pimp my Listview ...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Pimp my listview ... roflmao ... thats great.

ja, lets have a lookie at this this weekend ...

Top
#129988 - 2004-11-20 08:06 PM Re: Pimp my Listview ...
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
right ... as long as you guys don't attach pink or chrome things to it
_________________________



Top
#129989 - 2004-11-20 08:10 PM Re: Pimp my Listview ...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
nah, was just going to slap on some big boots and a blaupunkt.
Top
#129990 - 2004-11-20 08:44 PM Re: Pimp my Listview ...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

Pimp my listview ... roflamo ... thats great.



rolling on floor laughing at my outfit?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129991 - 2004-11-20 09:42 PM Re: Pimp my Listview ...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
So cappy, what you think this script needs ? Something to make it faster ?
Top
#129992 - 2004-11-21 12:05 PM Re: Pimp my Listview ...
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Exactly.

Maybe this will be only possible with some new Listview method like reference by item value not by index (as mentioned in original post it can be sorted, therefore index is no option).
maybe even, as Jooel mentioned, some enhancement on Gridview
_________________________



Top
#129993 - 2004-11-21 07:38 PM Re: Pimp my Listview ...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ok. .net listview doesn't support this method (but so what), how about we add this new method ...

$Index = $ListView.FindString("Jochen")

eh, that pimpy 'nough ?, if the string can't be found, it returns -1.

Try the latest dev. build (special build 5) and let me know if its any faster...

-Shawn

Top
#129994 - 2004-11-22 01:43 AM Re: Pimp my Listview ...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Will the FindString method support wildcards, i.e. '?' or '*' ? :-)
_________________________
There are two types of vessels, submarines and targets.

Top
#129995 - 2004-11-22 04:45 AM Re: Pimp my Listview ...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Nope, this version just searches for the first occurence of the string, and returns the index. Like you say though, further enhancement might be:

$ListView.FindString(text, start, partial)

where text = the text to search for, start = the starting index number to search from, and partial = whether text can match just the first part of the string, or has to match the string fully. Can look at these down the road maybe.

Top
#129996 - 2004-11-22 07:59 AM Re: Pimp my Listview ...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now, you are using $listview.blaah here all the time.
where in fact it is searching for the string?
if I wanna search only for first column, I definitely don't want the other ones to slow me down.
_________________________
!

download KiXnet

Top
#129997 - 2004-11-22 01:46 PM Re: Pimp my Listview ...
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
In short: Excellent !!!
You da godfather of pimp'n

Almost stumbled over the same special build description as in last dev build (my kf updater denied to update ), but that was fixed immediately and first tests show a tremendous speed boost. All goofy now

Jooel's got a point though! Will need an optional 'column' param
_________________________



Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.063 seconds in which 0.023 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org