c# - Ajax control toolkit combobox showing weird bullets in dropdown -


I'm using in my website. I am dynamically binding custom type data. Here I have Espace code which I have placed for it.

  & lt; AjaxToolkit: combo box id = "ddlAddAccount" runat = "server" autopost = "false" dropdown style = "dropdown list" AutoComplete = "Suggest" CaseSensitive = "False" CssClass = "combo box style" itemInstate location = " Attached "/>  

Here's the CSS:

  .ComboBoxStyle .ajax__combobox_itemlist {border: 1px solid YellowGreen; Font-size: medium; Font-family: new courier; Padding-left: 0 pixels; List-style: none; List-style-type: none; }  

The problem I am facing is that when DDL is placed on the page, it is showing some strange boxes inside the dropdown. They seem to be bullets But despite putting the list-style-type: none; In CSS, there is no change in output. That is, weird boxes are still visible, given the screen clip of the combo box provided here:

I also checked the rendered HTML markup to see if a letter has been added, but it is not. & Lt; Li & gt; & Lt; Ul & gt; In the tag, there are just a list of elements that are tied.

Any ideas what can happen and how to get rid of them? I tried ddlAddAccount.Items.Clear (); But no help was received before compelling it.

Thanks a lot!

If this is actually a bullet item listed, then you should ensure that ! Important style can not attempt to enter a list style, apply it.

  .ComboBoxStyle .ajax__combobox_itemlist {Border: 1 px solid yellowgran; Font-size: medium; Font-family: new courier; Padding-left: 0 pixels; List-style-type: none! Important; / *  

I can not reproduce your problem, but you should have some type of CSS style that applies to ul or li tags that are due to this Has been there. I know that you have unchecked all the styling controls in the browser but you should remember something.

Hope this works.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -