Hi all,
i'm not really sure if i'm right in the development discussion of if my post is more a post for the support forum.
Please decide if you want to move this thread.
I create the FilteringSelect object with an empty store. Store items are filled lateron dynamically with ...store.newItem...
When creating the FilteringSelect i do not know anything about the items created lateron. Therefore i can set just an initial value for the with of the FilteringSelect when creating.
As i see there is no chance to set the width lateron again. FilteringSelectObject.style.width does not fire. The style remains unchanged.
I'm loocking for such functionality very urgent because i want to avoid a hack in my software with delayed creation of the FilteringSelect objects which would blow-up the code.
Do you see a way to implement setting width dynamically? (delaying the startup() could be easily done by me, but without any reaction on the new style settings this is not helpful).
Is this a bug or a feature?
Thomas
Edit: Sorry, i forgot: I'm working currently with dojo 1.1.0

domNode.width?
This sounds unrelated to the data store. If you want to change the width hopefully setting myFilteringSelect.domNode.style.width = "100px" should work but I haven't tried it. Setting "FilteringSelectObject.style.width" will have no effect, just like setting any other widget attribute after creation, because FilteringSelect has no way of knowing that you changed the value.
=========
Bill Keese
Project Lead (aka BDFL) of Dijit