ContextMenu Out Of Browser

9 posts, 1 answers
  1. Mike Gorney
    Mike Gorney avatar
    12 posts
    Member since:
    Nov 2009

    Posted 13 Jan 2010 Link to this post

    Is it possible to display a right-click initiated context menu when SL3 is running out of browser?
  2. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 14 Jan 2010 Link to this post

    Hi Mike Gorney,

    No it is not possible to use RightClick in OOB scenario. You can however open the context menu with some KeyModifiers (CTRL+LeftClick for example).

    RightClick is supported in OOB and in browser (windowless=false) with Silverlight 4 beta1.

    Sincerely yours,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Mike Gorney
    Mike Gorney avatar
    12 posts
    Member since:
    Nov 2009

    Posted 14 Jan 2010 Link to this post

    cool.  that is what i figured, but just wanted to make sure.  If I continue to use a right click in a windowless mode, when silverlight 4 comes out will i need to make any changes to my code to use it in out of browser mode?
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 15 Jan 2010 Link to this post

    Hi Mike Gorney,

    You don't have to do any changes in order to use RightClick in SL4 (both in and out of browser).
    You can try it - we have Silverlight 4 build (without go-live license - for testing only). Soon we will release new build against Silverlight 4 that will contain some fixes for RadContextMenu in SL4.

    Let us know how it goes.

    Greetings,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Prasad Pohnerkar
    Prasad Pohnerkar avatar
    5 posts
    Member since:
    Jan 2010

    Posted 15 Jan 2010 Link to this post

    Hello Guys,
    I am using SL4 in my application.I have implementated right click funtionality using telrik RadContextMenu.
    It works fine.Now i also want my application to work in out browser mode.
    These are my outOfBrowserSetting.xml

     

     

    <OutOfBrowserSettings ShortName="CSPOC Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True">  
      <OutOfBrowserSettings.Blurb>CSPOC Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb> 
      <OutOfBrowserSettings.WindowSettings> 
        <WindowSettings Title="CSPOC Application"/>  
      </OutOfBrowserSettings.WindowSettings> 
      <OutOfBrowserSettings.SecuritySettings> 
        <SecuritySettings ElevatedPermissions="Required" /> 
      </OutOfBrowserSettings.SecuritySettings> 
      <OutOfBrowserSettings.Icons /> 
    </OutOfBrowserSettings> 

    This is my Default.aspx Page

    body> 
        <form id="form1" runat="server" style="height:100%">  
        <div id="silverlightControlHost">  
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">  
              <param name="source" value="ClientBin/CSPOC.xap"/>  
              <param name="onError" value="onSilverlightError" /> 
              <param name="background" value="white" /> 
              <param name="minRuntimeVersion" value="3.0.40624.0" /> 
              <param name="autoUpgrade" value="true" />         
             <param name="windowless" value="true" />    
              <href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">  
                  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>  
              </a> 
            </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>  
        </form> 
    </body> 

    Now when i am using my application in browser its compulsary to set 

     

     

    <param name="windowless" value="true" /> to use right click functionality

     

    My right click is not working in Out of Browser settings.
    Can you Please Guide me...? what changes i should make to make it work?

     

     

     

     

     

  7. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 18 Jan 2010 Link to this post

    Hello Prasad Pohnerkar,

    There is no need from windowless="true" if you are using SL4. Also there is nothing to change in
    outOfBrowserSetting.xml.

    I'm attaching simple project demostrating RadContextMenu. If you install the application you will see that RightClick works in OOB scenario without any modifications.

    Let me know if you have further questions.

    Regards,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Prasad Pohnerkar
    Prasad Pohnerkar avatar
    5 posts
    Member since:
    Jan 2010

    Posted 18 Jan 2010 Link to this post

    Hey Thanks for reply ,i will look into your solution and get back to you if i face any problem
  9. Prasad Pohnerkar
    Prasad Pohnerkar avatar
    5 posts
    Member since:
    Jan 2010

    Posted 19 Jan 2010 Link to this post

    I really dont know why it is not working in my application.
    I have followed the following link 
    http://www.telerik.com/help/silverlight/contextmenu-set-windowsless-application.html

    and applied the 

    <

    param name="windowless" value="true" />

     



    But when i remove this parameter from my application,i am not able to see my RadContextMenu in normal settings(not out of Browser) and even when  i put my application in out of browser mode.
    Actually i migrated my application from SL3 to SL4.you said that their is no need for <param name="windowless" value="true" />
    if you are using SL4.
    I have created my RadContextMenu in c# code behind.
    I am still facing the same problem ...
    can you tell me where i am going wrong?

  10. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 19 Jan 2010 Link to this post

    Hi Prasad Pohnerkar,

    Please open a support ticket and attach your application. This will help us to identify the problem.
    Also check that you are using Silverlight 4 and that you are using our latest Silverlight 4 build RadControls_for_Silverlight4_2009_3_1314_TRIAL.

    All the best,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner