iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
So i am creating shorcuts in a webdesktop and assigning target url to the shortcuts dynamically on Page_Load
This is part of the code in page load
gblIcons oIcons = new gblIcons(ConnectionString);
oIcons.Query.Load();
do
{
webShortCut = new ISNet.WebUI.WebDesktop.WebDesktopShortcut();
ptLocation = new System.Drawing.Point(iX, iY); // i am manipulating the ix and iy to place the icon in order but don't worry abt it in the sample code.
webShortCut.Name = "wc" + oIcons.s_ControlName;
webShortCut.Location = ptLocation;
strCatetory = oIcons.s_Category;
webShortCut.Text = oIcons.s_IconName;
webShortCut.ToolTip = oIcons.s_ToolTip;
webShortCut.TargetURL = oIcons.s_TargerURL;
webShortCut.WindowName = oIcons.s_WindowName
} while (oIcons.MoveNext());
Everything work fine .. when i double click the shorcuts on the desktop the Window that opens is in normal mode.. i need it to be maximized. How can i sent the window to be maximized by default when i click the shorcuts.
I would like to suggest you to utilize Maximize() method of WebDesktopWindow object from client side event (JavaScript). The method will maximize the specified WebDesktopWindow object.
function MaximizeThisWindow() { var WebDesktopManager1 = ISGetObject(controlId); var wnd = WebDesktopManager1.GetWindow("wndWindow1"); wnd.Maximize(); return true; }
In order to set the window to be maximized by default when user click the shortcut, please invoke the Maximize() method in OnWindowCreated client side event. OnWindowCreated event is invoked when a Window is created.
function WebDesktopManager1_OnWindowCreated(controlId, window) { var WebDesktopManager1 = ISGetObject(controlId); if (window.Name == "wndWindow1") window.Maximize(); return true; }
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname