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

[Solved] RadContextMenu won't display in debug mode

3 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill Jindrich
Top achievements
Rank 1
Bill Jindrich asked on 07 Dec 2009, 04:08 PM
I have a RadGrid with RadContextMenu items added for the rows. The menus work fine for a "production" (non-debug) build, however when I try to debug using Visual Studio 2008, the contex menus are not displayed on the grid. This makes it very hard to debug the code behind the menu items. Any suggestions for making the menu items available when running in debug mode?

thanks in advance

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 09 Dec 2009, 01:31 PM
Hi Bill Jindrich,

Are you using RightClick for the ContextMenu?
If that is so did you run the project from WebSite or directly from SilverlightApplication?
I'm asking this because if it is SilverlightApplication (as startup project) and you rely on right click then you need windowless mode but when you rebuild the application VS is generating new TestPage.html and removes the manually added windowless="true" attribute.
If WebApplication is your startup project then please check if your startup page (.html and/or .apsx) both have added windowless="true" attribute.

Let us know if that is not the case.


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.
0
Bill Jindrich
Top achievements
Rank 1
answered on 09 Dec 2009, 02:13 PM
We've added the windowless setting to the html page that hosts the silverlight app, but as you've said VS is generating a new host page (and removing the windowless setting) when I Debug. To start a debug session, here's what I do: Right-click on the Silverlight application & select Debug > Start New Instance. Is there something different that I should be doing?
0
Hristo
Telerik team
answered on 09 Dec 2009, 02:40 PM
Hi Bill Jindrich,

I think the easiest way will be to add WebApplication project to your solution, add the SL Application to it and then modify the generated startup page and add windowless="true".
I hope this will help you.

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
GridView
Asked by
Bill Jindrich
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Bill Jindrich
Top achievements
Rank 1
Share this question
or