Hi all,
I'm in need of a way to programmatically drop down the list in a webcombo. I looked through the Webcombo documentation and also experimented with it, but so far I am unable to find a solution.
Does anyone have any insight?
Regards,
Brad
You can use the setDropDown() function in the client-side object model of WebCombo. Pass in true to drop it down, or false to close it up.
I don't believe that this can be done in server-side code.
Excellent. However, I am using this function inside my javascript code for the InitializeCombo event. It seems to have no effect.
I tested it in other places, and so far it only seems to work in AfterDropDown() using setDropDown(false).
Is there documentation available for the client-side functions of webcombo?
Thank you again.
OOBradm said:Excellent. However, I am using this function inside my javascript code for the InitializeCombo event. It seems to have no effect.
I tested it in other places, and so far it only seems to work in AfterDropDown() using setDropDown(false).That sounds odd, and may require further research for us to determine if this is functioning as intended. If you need us to take a deeper look into this, then I suggest that you submit a support request.
As a more immediate thought, this may be a timing issue. What happens if you try to call this function in the body's onload event instead? If that doesn't work, I'd suggest encapsulating a method call to get a reference to the combo and calling its setDropDown(true) function, and use window.setTimeout() in the InitializeCombo event to call this function after a delay - however, I can't test this at the moment, and I'm very likely to miss important details of the call to setTimeout() if I don't test it first.
OOBradm said:Is there documentation available for the client-side functions of webcombo?
Yes. The following link leads to the landing page in our online help documentation for the client-side object model (CSOM) WebCombo in NetAdvantage Web Client 2008 Volume 3:https://es.infragistics.com/help/aspnet/aspnet-csom
As I mentioned in my first response in this thread, you should be able to use the setDropDown() function of WebCombo, passing in true to drop it down or false to close it.
Can you provide more detail about what you mean by using "cancelClose = false", including when it's being called, what you're expecting to happen, and what's happening instead?
I am also having same problem i use
cancelClose=
false; Its also not working ... Is any one know how to close and open the dropdown layout of a webcombo