Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNN TextSuggest Changing the background color of the suggested listDNN TextSuggest Changing the background color of the suggested list
Previous
 
Next
New Post
4/20/2009 12:42 PM
 

Hi

I have implemented a TextSuggest control on my webpage. However i am unable to change the background color of the control to White for the list that shows up below the AutoSuggest TextBox. The list seems to have a transparent background and i want it to have a solid white background. I tried the CSS property that was provided with the control and assigned something like below. Please do let me know if anyone of you has done and implemented this. thanks:

Dim nodes As DNNNodeCollection = e.Nodes
Dim node As DNNNode
SuggestedText = SuggestedText.Replace("[", "").Replace("]", "").Replace("'", "''")
Dim dt As DataTable = GetEmployeeNamesTable(SuggestedText)
dt.CaseSensitive =
Dim drs() As DataRow = dt.Select(String.format("employeeid like '{0}%'", SuggestedText)) '"employeeid like '" & SuggestedText & "%'")
Dim dr As DataRow
For Each dr In drs
If Me.DNNTextSuggest.MaxSuggestRows = 0 OrElse nodes.Count < (Me.DNNTextSuggest.MaxSuggestRows + 1) Thennode = New DNNNode(String.format("{0},{1}", dr("employeeid"), dr("employeename")))
node.ID = dr("id").ToString
node.CSSClass="White"
nodes.Add(suggestionNode)

 

 
New Post
4/21/2009 12:09 PM
 

The cssclass property points to a css classname defined in your stylesheet (.css file).  In your example, you would want a class called

.White {background-color: white}

 


 
New Post
4/21/2009 5:22 PM
 

Thanks a million. That helped.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNN TextSuggest Changing the background color of the suggested listDNN TextSuggest Changing the background color of the suggested list


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out