PDA

View Full Version : Ext.toast not showing



Richardt
Mar 29, 2020, 6:41 PM
Hi Not sure what I am missing. Copied the example from the mobile examples, but the Ext.toast does not want to show. Code below.


<%@ Register Assembly="Ext.Net.Mobile" Namespace="Ext.Net.Mobile" TagPrefix="ext" %><!DOCTYPE html>
<body>
<form>
<ext:ResourceManager runat="server" ID="rmMainMenu"></ext:ResourceManager>


<ext:Container ID="Container1" runat="server">
<LayoutConfig>
<ext:VBoxLayoutConfig Pack="Center" Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Container ID="Container2" runat="server" Flex="1">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Center" />
</LayoutConfig>
<Defaults>
<ext:Parameter Name="flex" Value="1" Mode="Raw" />
<ext:Parameter Name="margin" Value="10" Mode="Raw" />
</Defaults>
<Items>
<ext:Button ID="Button1" runat="server" Text="Normal" Handler="Ext.toast('User tapped Round', 500);" />
<ext:Button ID="Button2" runat="server" Text="Round" UI="Round" Handler="Ext.toast('User tapped Round', 500);" />
<ext:Button ID="Button3" runat="server" Text="Small" UIName="small" Handler="Ext.toast('User tapped Small', 500);" />
</Items>
</ext:Container>


<ext:Container ID="Container3" runat="server" Flex="1">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Center" />
</LayoutConfig>
<Defaults>
<ext:Parameter Name="flex" Value="1" Mode="Raw" />
<ext:Parameter Name="margin" Value="10" Mode="Raw" />
</Defaults>
<Items>
<ext:Button ID="Button4" runat="server" Text="Action" UI="Action" Handler="Ext.toast('User tapped Action', 500);" />
<ext:Button ID="Button5" runat="server" Text="Round" UI="ActionRound" Handler="Ext.toast('User tapped Action Round', 500);" />
<ext:Button ID="Button6" runat="server" Text="Small" UIName="action small" Handler="Ext.toast('User tapped Action Small', 500);" />
</Items>
</ext:Container>


<ext:Container ID="Container4" runat="server" Flex="1">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Center" />
</LayoutConfig>
<Defaults>
<ext:Parameter Name="flex" Value="1" Mode="Raw" />
<ext:Parameter Name="margin" Value="10" Mode="Raw" />
</Defaults>
<Items>
<ext:Button ID="Button7" runat="server" Text="Decline" UI="Decline" Handler="Ext.toast('User tapped Decline', 500);" />
<ext:Button ID="Button8" runat="server" Text="Round" UI="DeclineRound" Handler="Ext.toast('User tapped Decline Round', 500);" />
<ext:Button ID="Button9" runat="server" Text="Small" UIName="decline small" Handler="Ext.toast('User tapped Decline Small', 500);" />
</Items>
</ext:Container>


<ext:Container ID="Container5" runat="server" Flex="1">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Center" />
</LayoutConfig>
<Defaults>
<ext:Parameter Name="flex" Value="1" Mode="Raw" />
<ext:Parameter Name="margin" Value="10" Mode="Raw" />
</Defaults>
<Items>
<ext:Button ID="Button10" runat="server" Text="Confirm" UI="Confirm" Handler="Ext.toast('User tapped Confirm', 500);" />
<ext:Button ID="Button11" runat="server" Text="Round" UI="ConfirmRound" Handler="Ext.toast('User tapped Confirm Round', 500);" />
<ext:Button ID="Button12" runat="server" Text="Small" UIName="confirm small" Handler="Ext.toast('User tapped Confirm Small', 500);" />
</Items>
</ext:Container>
</Items>
</ext:Container>
</form>
</body>