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
486
WebCombo with editor and grid
posted

Hi,

I need a functionality of dropdownbox with text editor in it. So I decided to use WebCombo. But I want to display only single column in webcombo & want it to look like normal dropdown. Also want a texteditor in webcombo. I achieved this by using editing property = true;

 

How to change the layout of ultrawebgrid in webcombo?

 

Please help me on this.

  • 185
    Verified Answer
    posted

    Hi,

     Bind the WebCombo with whatever column you want and apply the following properties in the InitializeLayout event of WebCombo

    WebCombo1.Editable = true;

    WebCombo1.DropDownLayout.RowSelectors = RowSelectors.No;

    WebCombo1.DropDownLayout.ColHeadersVisible = ShowMarginInfo.No;

    WebCombo1.DropDownLayout.ColFootersVisible = ShowMarginInfo.No;

    WebCombo1.DropDownLayout.DropdownWidth = 100;

    WebCombo1.DropDownLayout.ColWidthDefault = 100;

    WebCombo1.Width = 100;

    WebCombo1.DropDownLayout.GridLines = UltraGridLines.None;

     UltraWebGrid myGrid = WebCombo1.Controls[0] as UltraWebGrid;

    myGrid.DisplayLayout.ScrollBarView = ScrollBarView.Vertical;