Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Web Combo as dropdownlist - dropdown layout?
posted

Hi, I have customize a web combo to use like a standard combo.

All work now, but I not find a style layout for customize the dropdown layout in "after row selected" situation.

In this situation, after row selection, if web combo are re-open, the row selected before, have a black border (1 px size) on row already selected.

I would like change this stile with a layout without border (or border in another color).

Can you help me?

Parents
  • 769
    posted

    Hello there,

    If I understood your question correctly then the solution is to:

    public void InstantiateIn(System.Web.UI.Control container)
     {
     Infragistics.WebUI.UltraWebGrid.CellItem cellitem1 = ((Infragistics.WebUI.UltraWebGrid.CellItem)(container));
     WebCombo combo = new WebCombo();
     cellitem1.Controls.Add(combo);
     //Set data source
     combo.Width = Unit.Pixel(100);
     combo.DropDownLayout.DropdownWidth = Unit.Pixel(104);
     combo.DropDownLayout.DropdownHeight = Unit.Pixel(70);
     combo.DropDownLayout.ColHeadersVisible = Infragistics.WebUI.UltraWebGrid.ShowMarginInfo.No;
     combo.DropDownLayout.RowSelectors = Infragistics.WebUI.UltraWebGrid.RowSelectors.No;
     }

    whereever you create your webcombo you just need to add these 5 lines of code then you'll see your webcombo display as a dropdownlist.

     combo.Width = Unit.Pixel(100);
     combo.DropDownLayout.DropdownWidth = Unit.Pixel(104);
     combo.DropDownLayout.DropdownHeight = Unit.Pixel(70);
     combo.DropDownLayout.ColHeadersVisible = Infragistics.WebUI.UltraWebGrid.ShowMarginInfo.No;
     combo.DropDownLayout.RowSelectors = Infragistics.WebUI.UltraWebGrid.RowSelectors.No;

    I hope that helps.

     

    HS2

Reply Children