[CLOSED] Set x, y position shortcut from desktop (with usercontrols)

  1. #1

    [CLOSED] Set x, y position shortcut from desktop (with usercontrols)

    Hi guys,

    Using your desktop example. Is it possible the set the x,y position of a shortcut for gridwindow.ascx in the code behind from the desktop.aspx

    I know I can set the X and Y in the gridwindow.ascx itself by using:

    <Shortcut Name="Grid Window" IconCls="x-grid-shortcut"  X="100" Y="100"/>
    But would like to have some more control over my layout in the desktop parent page itself.

    Martin
    Last edited by fabricio.murta; Feb 03, 2017 at 1:28 AM.
  2. #2

    Solution..

    Gridwindow.ascx (codebehind)
     public int ShortCutX { get; set; }
     public int ShortCutY { get; set; }
    Gridwindow.ascx (HTML)
    <Shortcut Name="Icon"  X="<%# ShortCutX%>" Y="<%# ShortCutY%>" AutoDataBind="True"/>
    Desktop.aspx(HTML)
    <mod:GridWindow ID="ucGridWindow" runat="server" />
    Desktop.aspx (Codebehind)
    ucGridWindow.ShortCutX = 100;
    ucGridWindow.ShortCutY = 300;
    Works like a charm

    Martin
  3. #3
    Hello Martin!

    Glad you could find yourself the answer for your question so fast! And thanks for sharing the overcome!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Desktop shortcut handler error
    By sercanisik in forum 3.x Help
    Replies: 1
    Last Post: Aug 21, 2015, 12:01 PM
  2. [CLOSED] desktop shortcut position control
    By susanz in forum 3.x Premium Help
    Replies: 2
    Last Post: Aug 12, 2015, 8:16 PM
  3. Can we Remove Desktop Shortcut.
    By nagesh in forum 2.x Help
    Replies: 16
    Last Post: Jan 18, 2013, 2:50 PM
  4. Desktop Shortcut BUG on IE
    By joao.msdn in forum 1.x Help
    Replies: 8
    Last Post: Jun 27, 2011, 7:46 AM
  5. [CLOSED] Desktop Shortcut
    By schellappa in forum 1.x Premium Help
    Replies: 3
    Last Post: Mar 14, 2011, 1:08 PM

Posting Permissions