473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

IE Web TreeView Control - Sorting?

I posted this under the webcontrols area as well, however, I didn't
receive any feedback, so please pardon my redundant post.

Dear Group,

My coworker has been working on a project that uses the IE TreeView
control to mimic an explorer window. Everything works close to plan
except the way the control sorts the files. If you take the following
filenames as an example, sorted the way Windows Explorer would handle
them by name:

1-1 Warforged
1-2 Eberron is Wonderful
1-10 Pierce Lives
1-20 Go Vaddi Go
Chapter One
Chapter Two
Chapter Three

If you view these in the TreeView control, it sorts them
alphabetically, returning the results:

1-1 Warforged
1-10 Pierce Lives
1-2 Eberron is Wonderful
1-20 Go Vaddi Go
Chapter One
Chapter Two
Chapter Three

Is there an easy way to handle an alphanumeric search, similar to that
of Windows Explorer using the IE Web TreeView control? I do understand
that the users could put leading zeros on all of their numbers to get
the desired result; however, I'd like to alleviate that strain and aid
my coworker in this task. I'm sure there is a parsing routine I could
use as well, but again, this seems overly complex as though I might be
missing something.

Any assistance in the matter would be most helpful.

Thanks,
Aaron

Nov 19 '05 #1
2 1817
this isn't really supported, you would have to build that type of
functionality in or use some other container to perform the sort and force
the results back to the caller. for instance, you can automate excel and
force the data to a range and apply an excel sort thus returning the data.
that would get you what you want but consider the expense - COM interop to
appy a sort! It's not practical. writing this, another method comes to mind,
you can use a sortedlist and override the default sort to implement your
custom sort

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Aaron Corcoran" <ac*******@lasers.state.la.us> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I posted this under the webcontrols area as well, however, I didn't
receive any feedback, so please pardon my redundant post.

Dear Group,

My coworker has been working on a project that uses the IE TreeView
control to mimic an explorer window. Everything works close to plan
except the way the control sorts the files. If you take the following
filenames as an example, sorted the way Windows Explorer would handle
them by name:

1-1 Warforged
1-2 Eberron is Wonderful
1-10 Pierce Lives
1-20 Go Vaddi Go
Chapter One
Chapter Two
Chapter Three

If you view these in the TreeView control, it sorts them
alphabetically, returning the results:

1-1 Warforged
1-10 Pierce Lives
1-2 Eberron is Wonderful
1-20 Go Vaddi Go
Chapter One
Chapter Two
Chapter Three

Is there an easy way to handle an alphanumeric search, similar to that
of Windows Explorer using the IE Web TreeView control? I do understand
that the users could put leading zeros on all of their numbers to get
the desired result; however, I'd like to alleviate that strain and aid
my coworker in this task. I'm sure there is a parsing routine I could
use as well, but again, this seems overly complex as though I might be
missing something.

Any assistance in the matter would be most helpful.

Thanks,
Aaron

Nov 19 '05 #2
Alvin,

Thank you for the feedback. It is comforting to know that it isn't
something I'm overlooking. However, I think the time comes to weight
the advantages of a quick fix (leading zero) to something similar to
what you mentioned above.

Thank you for your response!
Aaron

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Winterbottom | last post by:
I've a requirement for a treeview control to display a master-detail view. So instead of the old the old 'ActiveX + 1,000 lines of code' method that I've used in the past. I decided to try a...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
5
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
1
by: Vishy | last post by:
Hi, I have a problem on reanming a treenode of a treeview control. The requirement is that once i re-name a node, it should get automatically sorted by name. The way it does in explorer. But in...
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
2
by: Luqman | last post by:
I am using VB.Net 2005 and I want to fill the Tree View with Oracle Scott/Tiger Table which contains Parent/Child keys in one table, how can I ? In VB-6, I used TreeView Key while in VB.Net 2005,...
0
by: NickP | last post by:
Hi there, I am trying to sort a treeview control, which is owner drawn (if that makes any difference). Anyway, It only seems to be sorting the the root nodes for some reason. I have tested...
4
by: Ben | last post by:
Hi We are having random problems with the treeview control. We are loading the data from a database and using the Tag property to hold the database record reference. Occasionally on a child...
2
by: Johnny Jörgensen | last post by:
Anybody know of an easy way of keeping treeview nodes sorted alphabetically? Cheers, Johnny J.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.