This question is locked. New answers and comments are not allowed.
Hi,
I am using Q2 2010 release.
Here is the problem – if a node has link set (has <a class=”t-link…”> </a> inside <li class=”t-item…”> </li>.
The node html attributes will not take affect on the node text. Below is an example:
With item.Uri set: (Note: the node text "A Node" does NOT show blue.
.ItemDataBound((item, p) =>{ item.Text = p.Name; item.Url = "#"; item.HtmlAttributes.Add("style", "color:blue"); })It renders as:...... <li class="t-item" style="color: blue"> <div class="t-mid"> <a class="t-link t-in" href="#">A Node</a></div> </li>......
Without item.Uri set: ( Note: the node text “A Node” DOES show blue.)
.ItemDataBound((item, p) =>{ item.Text = p.Name; //item.Url = "#"; item.HtmlAttributes.Add("style", "color:blue"); })It renders as:.......<li class="t-item" style="color: blue"> <div class="t-mid"> <span class="t-in"> A Node </span></div></li>
.......
Do I miss something?
Thanks,
Propel studio