We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set tooltip in GridGroupingControl [ASP.NET]?

Thread ID:

Created:

Updated:

Platform:

Replies:

106764 Jan 24,2013 12:41 PM UTC Jan 28,2013 04:15 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Claus Konrad
Asked On January 24, 2013 12:41 PM UTC

For the life of me, I simply can't find anywhere to set a tooltip on a cell? This framework is starting to become less and less intuitive?

I simply want to apply a tooltip to the cell that displays 'DN' in the below; the tooltip should show the full value of 'DN'. How do I go about that?

- rest omitted-

GroupDropAreaText="Drag columns here" 
    ReCreateChildControls="True" DataSourceCachingMode="Session">
    <TableDescriptor AllowColumnResize="true" AllowFilter="true" AllowEdit="False" AllowNew="False">
        <Columns>
            <syncfusion:GridColumnDescriptor AllowSort="true" MappingName="AccountName" HeaderText="Account Name">
                <GroupByOptions AllowExpressionFilter="False" ShowFilterStatusMessage="False" FilterStatusBarWidth="450"></GroupByOptions>
            </syncfusion:GridColumnDescriptor>
 
            <syncfusion:GridColumnDescriptor AllowSort="true" MappingName="DN" HeaderText="Full DN" Width="230">
                <GroupByOptions AllowExpressionFilter="False" ShowFilterStatusMessage="False" FilterStatusBarWidth="450"></GroupByOptions>
            </syncfusion:GridColumnDescriptor>

Ranjithkumar R G [Syncfusion]
Replied On January 28, 2013 04:15 AM UTC

Hi Claus,

 

Thanks for using Syncfusion products.

 

Your requirement of setting tooltip for a particular column can be achieved by handling QueryCellStyleInfo event. Please refer to the code snippet below.

 

[CS]

 

void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

        {

            if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType==GridTableCellType.AlternateRecordFieldCell )

            {

                if (e.TableCellIdentity.Column.Name == "Name")

                {

                e.Style.CellTipText = e.Style.CellValue.ToString(); 

 

                }

            }

 

        }

 

 

Sample link: sample.zip

 

Please let us know if you have any concern.

 

Regards,

Ranjithkumar.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;