Oct 26, 2012, 11:04 PM
[CLOSED] Linkbutton Tooltip in v2.0
I am currently using version 2.0 via the Nuget package in Visual Studio 2012. My project targets .NET runtime 4.0. When setting a tooltip on a linkbutton in this environment, ext is throwing an exception.
Exception:
The relevant line of source code (b.btnEl is null):
Here is a simple example which should build and illustrate the problem:
Exception:
Unhandled exception at line 18, column 887616 in http://localhost:58196/admin/extjs/e...js/ext.axd?v=0
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'dom': object is null or undefined
The relevant line of source code (b.btnEl is null):
b.btnEl.dom.setAttribute(b.getTipAttr(),c)
Here is a simple example which should build and illustrate the problem:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="TestApp.Test" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" ID="ResourceManager1" Theme="Gray" />
<ext:Window runat="server" ID="Window1" Width="800" Height="600">
<Items>
<ext:LinkButton runat="server" ID="lbTest" Text="Click!" Icon="Bin" ToolTip="Click Here">
</ext:LinkButton>
</Items>
</ext:Window>
</form>
</body>
</html>
Removing the tooltip property from the linkbutton causes the application to display the window / linkbutton correctly instead of blowing up.
Last edited by Daniil; Nov 05, 2012 at 3:39 PM.
Reason: [CLOSED]