Hi...I am trying to have a tooltip display whenever I hover over the items of a radCombo.
I have done some of the work so far using an Item template, but I only know how to show either the DataTextField or dataValueField , yet the tooltip I want to show is a different field that I pull from the same table as per my query below. I want to show the suburb as my tooltip on hover.
Below is the SQL Query and binding to radcombo:
string AreasQuery = "select AreaID as AreaID,AreaName as AreaName,Suburbs as Suburbs from area order by AreaName ";
dtAreas = dbo.sqldb_select(AreasQuery, 1);
cmbAreas.DataTextField = "AreaName";
cmbAreas.DataValueField = "AreaID";
AreaID is my datavalueField and AreaName is my DataTextField.
Below is my aspx code , and I have also attached a screen shot of how this currently looks at the moment. I just dont know how to bring the Suburb Field into my ItemTemplate...maybe an attribute, but I am not sure how to use that. Kindly assist.
<td align="left" class="style11" valign="middle" bgcolor="#CC3300">
<telerik:RadComboBox ID="cmbAreas" Runat="server" Height="150px" MarkFirstMatch="True"
Skin="Hay" Width="236px" DataTextField="AreaName" DataValueField="AreaID">
<ItemTemplate>
<asp:Label runat="server" ID="Label1" Text='<%# Eval("AreaName")%>' ></asp:Label>
<telerik:RadToolTip ID="RadToolTip1" runat="server" Width="100" Height="10" TargetControlID="Label1" Position="BottomRight" Text='<%# Eval("AreaName")%>' >
</telerik:RadToolTip>
</ItemTemplate>
</telerik:RadComboBox>
</td>
I have done some of the work so far using an Item template, but I only know how to show either the DataTextField or dataValueField , yet the tooltip I want to show is a different field that I pull from the same table as per my query below. I want to show the suburb as my tooltip on hover.
Below is the SQL Query and binding to radcombo:
string AreasQuery = "select AreaID as AreaID,AreaName as AreaName,Suburbs as Suburbs from area order by AreaName ";
dtAreas = dbo.sqldb_select(AreasQuery, 1);
cmbAreas.DataTextField = "AreaName";
cmbAreas.DataValueField = "AreaID";
AreaID is my datavalueField and AreaName is my DataTextField.
Below is my aspx code , and I have also attached a screen shot of how this currently looks at the moment. I just dont know how to bring the Suburb Field into my ItemTemplate...maybe an attribute, but I am not sure how to use that. Kindly assist.
<td align="left" class="style11" valign="middle" bgcolor="#CC3300">
<telerik:RadComboBox ID="cmbAreas" Runat="server" Height="150px" MarkFirstMatch="True"
Skin="Hay" Width="236px" DataTextField="AreaName" DataValueField="AreaID">
<ItemTemplate>
<asp:Label runat="server" ID="Label1" Text='<%# Eval("AreaName")%>' ></asp:Label>
<telerik:RadToolTip ID="RadToolTip1" runat="server" Width="100" Height="10" TargetControlID="Label1" Position="BottomRight" Text='<%# Eval("AreaName")%>' >
</telerik:RadToolTip>
</ItemTemplate>
</telerik:RadComboBox>
</td>