PDA

View Full Version : [CLOSED] FieldTrigger Icon doesn t show



xeo4.it
Sep 28, 2012, 2:10 PM
Hi,
I have attached your modified example http://examples2.ext.net/#/TabPanel/Basic/TabMenu/, in the FieldTrigger in the "RenameField" the icon doesn't show.I have tested some different icons but the problem perists.
Thank you

Jimmy



<%@ Page Language="C#" %>


<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>


<!DOCTYPE html>


<html>
<head id="Head1" runat="server">
<title>TabPanel with MenuTab - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
var beforeMenu = function (pnl, tab, menu) {
menu.items.get(0).setText(tab.title);


var item = menu.getComponent(5),
lastTab = pnl.items.get(pnl.items.getCount() - 1);


if (tab.id == "customMenuTab") {
item.show();


if (lastTab.isTabMenuVisible()) {
item.setText("Hide Menu for last Tab");
item.handler = function () {
lastTab.hideTabMenu();
};
} else {
item.setText("Show Menu for last Tab");
item.handler = function () {
lastTab.showTabMenu();
};
}
} else {
item.hide();
}
};
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />

<h1>TabPanel with TabMenu</h1>

<h2>Simple TabMenu</h2>

<ext:TabPanel ID="TabPanel1" runat="server" Height="100">
<Items>
<ext:Panel ID="Panel1"
runat="server"
Title="No Menu"
/>
<ext:Panel ID="Panel2"
runat="server"
Title="Menu 1">
<TabMenu>
<ext:Menu ID="Menu1" runat="server">
<Items>
<ext:MenuItem ID="MenuItem1" runat="server" Text="Item 1" />
<ext:MenuItem ID="MenuItem2" runat="server" Text="Item 2" />
<ext:MenuSeparator ID="MenuSeparator1" runat="server" />
<ext:Label ID="Label1" runat="server" Text="Rename Tab:" StyleSpec="padding-left:30px;" />
<ext:TriggerField ID="RenameField" runat="server" Text="New title" StyleSpec="margin-left:30px;">
<Triggers>
<ext:FieldTrigger Icon="SimpleEdit" Qtip="Click to rename" />
</Triggers>
<Listeners>
<TriggerClick Handler="var menu = this.up('menu'); menu.tab.setTitle(this.getValue());menu.hide();" />
</Listeners>
</ext:TriggerField>
</Items>
</ext:Menu>
</TabMenu>
</ext:Panel>

</Items>
</ext:TabPanel>

</form>
</body>
</html>

Daniil
Sep 28, 2012, 3:04 PM
Hi Jimmy,

We are unable to reproduce.

Please clarify do you use the latest sources from the SVN 2.1 branch?

xeo4.it
Sep 28, 2012, 3:42 PM
Hi Daniil

Yes I use the latest sources from the SVN 2.1, and I have updated SVN today, but the problem persists.

I use VisualStudio 2010, and I have tested in debug widh IE and Chrome.

The SimpleEdit icon in FieldTrigger doesn't show.

4844

Jimmy

Vladimir
Sep 28, 2012, 4:01 PM
Please use Fiddler and monitor all requests while the page is loaded and menu is shown
Do all ext.axd requests have success status?
Do you have online sample?

xeo4.it
Oct 01, 2012, 8:17 AM
Hi Vladimir,
the problem happens only with the debug of visualstudio, so it is not important.
Widh Fiddler when I open the menu a red row appears widh 404 error:
/extnet/resources/images/triggerfield/simple-edit-gif/ext.axd

4850

If I put the page online all works fine.
http://test.rilheva.it/TestChiusuraBrowser/WebForm6.aspx

Thank you very much.

Daniil
Oct 01, 2012, 11:35 AM
Hi Jimmy,

Is there this thing in your Web.config?


<system.web>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
</httpHandlers>
</system.web>

xeo4.it
Oct 01, 2012, 4:12 PM
Hi Daniil,
I have added the :



<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
</httpHandlers>


in my web.config, and now the debug is ok.
Thank you very much.

Jimmy