PDA

View Full Version : [CLOSED] Gridpanel - tooltip content rendered incomplete



PriceRightHTML5team
Nov 13, 2014, 6:19 AM
Hi,
Mine is an Asp.net MVC Razor view engine application.
I have a gridpanel to which I have applied tooltip.

Following is the markup and js for Tooltip.



@(Html.X().ToolTip()
.Target("={#{grdUDR}.getView().el}")
.Delegate(".x-grid-cell")
.TrackMouse(true)
.Listeners(ls => ls.Show.Handler = "onShow(this, #{grdUDR});")
)


var onShow = function (toolTip, grid) {
if (grid.getView().getHeaderByCell(toolTip.triggerEle ment) != null) {
var view = grid.getView(),
store = grid.getStore(),
record = view.getRecord(view.findItemByChild(toolTip.trigge rElement)),
column = view.getHeaderByCell(toolTip.triggerElement),
data = record.get(column.dataIndex);
if (data == undefined || data == "") {
toolTip.hide();
return false;
}
else {
toolTip.update(data);
}
}
else {
toolTip.hide();
return false;
}
};

Issue - tooltip content is getting rendered incomplete.
This behavior is random, that is for few cells it renders complete whereas for few it renders incomplete.

Below are the snapshots for reference.

http://forums.ext.net/attachment.php?attachmentid=16191&stc=1

http://forums.ext.net/attachment.php?attachmentid=16201&stc=1

http://forums.ext.net/attachment.php?attachmentid=16211&stc=1

Daniil
Nov 13, 2014, 8:37 AM
Hi @PriceRightHTML5team,

I guess it might be related to this:
https://github.com/extnet/Ext.NET/issues/189

What Ext.NET version are you using? It might be fixed since v2.3 inclusive.

PriceRightHTML5team
Nov 13, 2014, 8:52 AM
Hi Daniil,
We are using version number 2.2.0.26551

Daniil
Nov 13, 2014, 9:01 AM
Please test with v2.3 or later.

PriceRightHTML5team
Nov 13, 2014, 9:57 AM
Hi Daniil,
As our application is in production. Thus, we can't go with version changes.

Kindly provide us with the specific fix or provide details of the respective file where we can get the fix.

Daniil
Nov 13, 2014, 12:18 PM
Well, I don't ask to push it into production, please test only. We need to narrow the problem down first.