This is a migrated thread and some comments may be shown as answers.

ContextMenu Out Of Browser

8 Answers 118 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Mike Gorney
Top achievements
Rank 1
Mike Gorney asked on 13 Jan 2010, 07:23 PM
Is it possible to display a right-click initiated context menu when SL3 is running out of browser?

8 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 14 Jan 2010, 09:33 AM
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.
0
Mike Gorney
Top achievements
Rank 1
answered on 14 Jan 2010, 01:42 PM
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?
0
Hristo
Telerik team
answered on 15 Jan 2010, 07:54 AM
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.
0
Prasad Pohnerkar
Top achievements
Rank 1
answered on 15 Jan 2010, 01:27 PM
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?

 

 

 

 

 

0
Hristo
Telerik team
answered on 18 Jan 2010, 02:04 PM
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.
0
Prasad Pohnerkar
Top achievements
Rank 1
answered on 19 Jan 2010, 05:44 AM
Hey Thanks for reply ,i will look into your solution and get back to you if i face any problem
0
Prasad Pohnerkar
Top achievements
Rank 1
answered on 19 Jan 2010, 08:46 AM
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?

0
Hristo
Telerik team
answered on 19 Jan 2010, 11:45 AM
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.
Tags
Menu
Asked by
Mike Gorney
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Mike Gorney
Top achievements
Rank 1
Prasad Pohnerkar
Top achievements
Rank 1
Share this question
or