The select box I am using has several nodes.  The node I expanded to select from has about 100 items underneath it.

I am using a single-select.  I believe as Bret mentioned that the reason it took over 20 seconds to ClearSelection is because it iterates through all the items.

 

The scary thing is if the user expands ALL the nodes in that select box, it can total up to over 1000 items.

I am only working with 100 items and it took over 20 seconds, and I only want to clear 1 item that was selected.

Imagine doing that for 1000 items!

 

By the way, both of your suggestions to clear the 1 selected item using OLE work beautifully.

This is the command I used that works:

irb(main):012:0> ie.frame("customizeRemoteContent").select_list(:id, "availableC

olumnsSelectBox").getOLEObject.selectedIndex = -1

=> -1

 

 irb(main):014:0> ie.frame("customizeRemoteContent").select_list(:id, "availableC

olumnsSelectBox").getOLEObject.value = ""

=> ""

 

They work in irb, I haven't had the chance to try them in my ruby script yet, but I suspect they will work fine too.

 

THANK YOU!

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to