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

custom tooltip inside radgrid control getting cut off

2 Answers 176 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 13 Mar 2014, 12:22 AM
I have custom tooltip control which attach to a column
(every row), and it shows up fine, but if gets cut off by radgrid boundaries if tooltip is too big
or row (for which tooltip is showing up) close to  the footer. I played with z-index of tooltip but have no
luck. Any idea how to resolve this issue?

Thanks

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Mar 2014, 05:28 AM
Hi Arun,

I'm not able to replicate such an issue at my end. Please take a look at the sample code snippet below to display tooltip for a column. Provide your code if this doesn't help.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridDataItem)
  {
    GridDataItem item = (GridDataItem)e.Item;
    item["ColumnUniqueName"].ToolTip = item["ColumnUniqueName"].Text;
  }
}

Thanks,
Princy
0
Arun
Top achievements
Rank 1
answered on 13 Mar 2014, 01:51 PM
Hi Princy , thank you for your response. I am calling tooltip from GridTemplate column.
Regards,
Partha
                               
<telerik:GridTemplateColumn HeaderText="Name" HeaderStyle-Width="10%" DataField="Name"
                                        SortExpression="VisitorDisplayName" UniqueName="VisitorDisplayName">
                                        <ItemTemplate>
                                            <div class="clip"
                                              onclick="toolTip(this,parameters)" //where toolTip is a javascript function 
                                            </div
                                        </ItemTemplate>
                              </telerik:GridTemplateColumn>
Tags
Grid
Asked by
Arun
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Arun
Top achievements
Rank 1
Share this question
or