Oct 31, 2017, 4:36 AM
Problem on raising DirectEvent on DesktopModuleProxy Window parameter
Hi there!
There is a problem on raising DirectEvent on DesktopModuleProxy Window prioperty. When I set a window in Window tag of DesktopModuleProxy and setting a SplitButton (inserted in Items of a toolbar object) DirectEvent (Click event) to execute, ResourceManager could not found SplitButton object that is embedded in my Toolbar object of my window. It will return "The control with ID 'ButtonHelp' not found" error. How can I solve it? I changed IDMode of my SplitButton object to anything but nothing changed!!!
My control code is
My code is
There is a problem on raising DirectEvent on DesktopModuleProxy Window prioperty. When I set a window in Window tag of DesktopModuleProxy and setting a SplitButton (inserted in Items of a toolbar object) DirectEvent (Click event) to execute, ResourceManager could not found SplitButton object that is embedded in my Toolbar object of my window. It will return "The control with ID 'ButtonHelp' not found" error. How can I solve it? I changed IDMode of my SplitButton object to anything but nothing changed!!!
My control code is
<ext:SplitButton ID="ButtonHelp" Text="Help" runat="server" Icon="Help" ToolTip="Show help of current view." Scale="Large" RowSpan="3" IconAlign="Top" ArrowAlign="Right">
<Menu>
<ext:Menu runat="server" ID="HelpMenu">
<Items>
<ext:MenuItem ID="MenuItemAboutDiten" runat="server" Text="About DITeN framework" Icon="Information" ToolTip="Show information about DITeN.">
<DirectEvents>
<Click OnEvent="MenuItemAboutDiten_Click"></Click>
</DirectEvents>
</ext:MenuItem>
</Items>
</ext:Menu>
</Menu>
<DirectEvents>
<Click OnEvent="ButtonHelp_Click">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="ContentPanel" Msg="Show help" />
<ExtraParams>
<ext:Parameter Name="HelpID" Value="Diten.Web.UI.WebControls.SystemControls.Explorer" Mode="Value" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:SplitButton>
My code behind isprotected void ButtonHelp_Click(object sender, DirectEventArgs e)
{
HelpWindow.HelpId = e.ExtraParams["HelpId"];
HelpWindow.Show();
}
And finally, why when I use KeyMap object in content tag of my ButtonGroup object, the Window object of DesktopModuleProxy will not be appeared in my Desktop control?!?My code is
<ext:ButtonGroup ID="ButtonGroupSelect" runat="server" Title="Select" Columns="1">
<Content>
<ext:KeyMap runat="server" Target="#{ContentPanel}">
<Binding>
<ext:KeyBinding Ctrl="True" Handler="#{StatsButtonSelectAll}.fireEvent('click');">
<Keys>
<ext:Key Code="A" />
</Keys>
</ext:KeyBinding>
</Binding>
</ext:KeyMap>
</Content>
<Items>
<ext:Button ID="StatsButtonSelectAll" runat="server" Text="Select all" ToolTip="Select all items in this view. (Ctrl+A)" OnDirectClick="ButtonSelectAll_Click" />
<ext:Button ID="StatsButtonSelectNone" runat="server" Text="Select none" ToolTip="Clear all your selections." OnDirectClick="ButtonSelectNone_Click" />
<ext:Button ID="StatsButtonInvertSelection" runat="server" Text="Invert selection" ToolTip="Reverse the CURRENT SELECTION." OnDirectClick="ButtonInvertSelection_Click" />
</Items>
</ext:ButtonGroup>
Last edited by ArashRahimian; Nov 03, 2017 at 5:26 AM.