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
35
Unwanted border in Web Combo
posted

We've got a web application that uses the Web Combo control.  We've got these little borders in between items in the combo box, as seen here in this image.  We've had some complaints about readability, and I was asked to remove this.

 

I can't seem to get rid of this border.  I figured I could change this with the RowStyle.BorderStyle property, like this:

 

ComboTextBox.DropDownLayout.RowStyle.BorderStyle = BorderStyle.None

This doesn't actually change anything, though.  The combo looks exactly the same.  Even if I get silly with it and set it to something like:

ComboTextBox.DropDownLayout.RowStyle.BorderStyle = BorderStyle.Solid

ComboTextBox.DropDownLayout.RowStyle.BorderWidth = New Unit("20px")

That still does not affect the border on the page.  It looks exactly the same.

I began experimenting with different settings, and I only found one property that affected the little borders between the items in the drop down.  It's this one:

ComboTextBox.DropDownLayout.RowAlternateStyle.BorderStyle = BorderStyle.None

When I set that, I do finally see the border go away on alternate rows:


I'm now worried that I might be up against some kind of bug in the control itself.  If AlternateRowStyle changes the border for every other item, shouldn't RowStyle change the style for all the rows?

Am I missing something?  Thanks!

  • 8421
    posted

    Hello John,

    Were you able to reproduce this issue with the sample that Nikila provided?  Please let me know if you require any further assistance with this issue.

  • 145
    posted

    Hello John,

    I followed the steps you suggested and was unable to reproduce the behavior you're describing.  I created a WebCombo sample and set the DropDownLayout.RowStyle.BorderStyle to BorderStyle.None. I was able to see the borders go away with this setting. 

    I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

    If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.  My test was performed using the latest Service Release for version 11.1.20111.2238 in  NetAdvantage for .NET 2011 Volume 1.

    If the project does show the product feature working correctly, this indicates a possible problem in the code of your application.  It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.

    Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

    Please let me know if I can provide any further assistance.

     

    Sincerely,

    Nikila

    WebCombo_Borders.zip