ToolTip and Nested Tables

2 posts, 0 answers
  1. Janus Knudsen
    Janus  Knudsen avatar
    2 posts
    Member since:
    May 2008

    Posted 30 Jun 2008 Link to this post

    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


  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 02 Jul 2008 Link to this post

    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
Back to Top