Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

WebComboBox to DropdownList

Last post 09-08-2008 11:47 by biat. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-05-2008 9:36

    • biat
    • Not Ranked
    • Joined on 09-04-2008
    • Points 210

    WebComboBox to DropdownList

    I have been trying to implement my webcombo box to look like just a standard dropdown list with fail. How do I implement the combo box to just a standard normal dropdownlist 

    • Post Points: 20
  • 09-05-2008 17:30 In reply to

    Re: WebComboBox to DropdownList

    You'd have to set some display properties in order to make the webcombo look like an ordinary dropdownlist, first you'll have to set the hidden property to true for all those columns you dont want to be display (if there's more than 1 in your webcombo) leaving just one with it's hidden property set to false. Another important thing to make it look good would be to set the combo.DropDownLayout.DropdownWidth to be just as wide as the cell it's embedden in. I'm sure there has to be more but those two are some important ones I can remember ritght now.. Please let me know how it goes.

     

    Regards.

    "Programming is an art form that fights back" _ Se habla español.
    • Post Points: 20
  • 09-08-2008 5:10 In reply to

    • biat
    • Not Ranked
    • Joined on 09-04-2008
    • Points 210

    Re: WebComboBox to DropdownList

    I have tried your changes but it still does not work.  The webcombobox works perfectly fine to change it to a normal dropdown list when I have manually added a collection of rows.  It has a problem when I have have bounded it to an objectdatasource thus showing two columns being the DATATEXTFEILD and the DATAVALUEFEILD of which I want the dropdownlist to only show the DATATEXTFEILD.

    Can you still help?

     

    • Post Points: 20
  • 09-08-2008 9:45 In reply to

    Re: WebComboBox to DropdownList

    You have to explicitly hide the other column.. I'm guessing your data source only has two columns, therefore the webcombo is showing two columns.. If it had 3, 6.. it'd show all of those, so what you have to do is to set the hidden property to true for all those columns you don't want to be displayed and leave false the one column you're using as datatextfield.

    "Programming is an art form that fights back" _ Se habla español.
    • Post Points: 20
  • 09-08-2008 11:47 In reply to

    • biat
    • Not Ranked
    • Joined on 09-04-2008
    • Points 210

    Re: WebComboBox to DropdownList

    Answer

     Thank you, I was able to fix the problem! I changed dropdown layout to 'AutogenerateColumns = False' and had to hardcode (in C#) to hide the next column.

    Thanx again. 

    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems