This is a migrated thread and some comments may be shown as answers.

ToolTip and Nested Tables

1 Answer 64 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Janus Knudsen
Top achievements
Rank 1
Janus Knudsen asked on 30 Jun 2008, 11:06 PM
Hello

I'm trying to create a RadGrid with nested tables and tooltips. I want to preserve the attached tooltip OnItemDataBound.

protected

void radGrid_ODS_JobRuns_OnItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item.OwnerTableView.DataSourceID == "ODS_JobRuns") <-- this is my main RadGrid
    {
    RadToolTipValidationInfo.TargetControls.Add(e.Item.Cells[15].ClientID, identifier, true);
    }

if

(e.Item.OwnerTableView.DataSourceID == "OD_InstanceJob") <-- this is my detailsgrid
    {
    some formatting.....
    }


The first isn't hit when dealing with the details table and therefore the RadToolTip isn't applied correctly :(
How do I solve that? Could I place a div inside the RadGrid.TableCell and use a Tooltipify along with a zone? or? and how?

Kind regards
Janus


1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 Jul 2008, 01:15 PM
Hi Janus,

I already answered your support thread and for your convenience I pasted my reply below:

I see from your code that you use a RadGrid, not a Repeater control and as far as I understand you experience problems in accessing the cells of the child, details table.

If I am right I suggest to access the cells as explained here, because your code will not work as expected, due to having a different DataSource for the child table.

In case I have not understand you correctly or you experience problems, please send a sample, fully runnable project along with a detailed explanation of the desired behavior.


Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Janus Knudsen
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or