WebGrid TooltipText for cell not working

7 replies. Last post: April 7, 2015 4:07 AM by Yudi
Tags :
Dev AshishMember

Hi,

I am getting problem in WebGrid 8.0.7200.258 with TooltipTest for Grid cell. It is getting overritten by the default tooltip text set by the grid when the value exceeds the column width.

I am using HTML5 doctype with .NET 4.5.1 in Visual Studio 2013.

Here is the sample.

I have used one of the page from the samples provided by Intersoft from below project.

C:\Program Files (x86)\Intersoft Solutions\Intersoft Premier Studio 2013 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\vb\WebGridSamples.sln

Please note that I have changes only in the code behind file that to only one line. Its the underline statement in the below code.  

Protected Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs)

        If e.Row.Type = RowType.Record Then
            Dim deptCell As WebGridCell = e.Row.Cells.GetNamedItem("DepartmentID")
            deptCell.Image = "images/dept_" & deptCell.Value.ToString() & ".png"
            deptCell.CustomObjectAttributes = "height=16"
            deptCell.TooltipText = "###Tooltip###"
        End If
	End Sub

Regards,

Dev

All Replies

Yudi Member

Based on my test result, the custom tooltip works on Mozilla Firefox 28 browser. The problem on the other browsers (IE 11, Safari, Chrome, Opera) has been reported to WebGrid development team. The report is filed under work item ASPNET-27.

I will keep this thread updated with any news I heard from the team regarding work item ASPNET-27.

Hi Yudi,

Thanks for your replay.

I would like to add that I am currently using IE10 the issue is coming in there also.

Regards,

Dev

Yudi Member

I have added a note to the team so that the fix should be applicable for IE 10 browser.
Thank you for the prompt reply.

Any Update?

Yudi Member

The reported problem, custom tooltip text, has been forwarded to WebGrid development team. However, I haven't heard any news regarding the availability of the hotfix.

Hi Yudi,

Is there any way I can set custom tooltip for each cell for a grid where BindingOperationMode="ClientBinding".

I trying to use the below function but it’s not working.

function OnSynchronizeCell(gridId, cell) {
    var grid = ISGetObject(gridId);
    if (cell.Name = "Percent") {
        cell.TooltipText = cell.Text/100 + "%";
    }
}

Regards,
Dev

Yudi Member

This scenario has been forwarded to WebGrid development team. The report is filed under ASPNET-160.
I will keep you informed with any news I heard from the dev team regarding ASPNET-160.

Thank you and have a nice day.

All times are GMT -5. The time now is 4:41 AM.
Previous Next