Thx for th reply, but it's not quite a useful answer.
Let me explain myself:
I add
row.Attributes.Add("onmouseover", "JSfunction_that_makes_tooltip");
and
row.Attributes.Add("onmouseout", "JSfunction_that_hides_tooltip");
for each row in the DataList.OnDataBinding() event.
The problem is that the whole tooltip is made in javascript (no reference what so ever in my code or design.)
The DropDownList used to select a criteria is located just above the DataList so when you choose a different criteria in de DropDownList the list disapears for 0.5 of a second and the "onmouseover" event is fired in javascript of the row that was just underneath the selected dropdownlist item.
Now the real problem is that when the DataList has no rows. The tooltip still displays the previous row-data of the previous DataList.
So I'm looking for a way to say in my C#-code that:
if(DataList.Rows.Count <= 0) ? "tooltip".visible=false: "tooltip".visible = true;
This would be very simple if I would be able to access that <DIV> in my C#.
|