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

RadContextMenu not getting focus

6 Answers 23 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Veteran
Michael asked on 27 Feb 2020, 06:17 PM

Hello,

I have a RadContextMenu specified in the properties of my RadListview and the fist right click will display the context menu just fine, but it doesn't have the focus. Meaning when I mouse over it, the items don't get selected and you cant click on it. When I right click again, the menu works as expected. Meaning it gets the mouse over events and highlights as expected.... Which is to say the first right click always results in a menu that is not usable. Subsequent context menus work just fine... its bizarre. Also, if i don't specify the context menu via the property and display it manually with code, it does the same thing. So weird.

I've attached a small picture that shows the mouse over the menu. You can see no menu item is highlighted. 

Thanks for reading,

Michael.

6 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 28 Feb 2020, 04:28 PM

Hello Michael,

Based on your information I have attached a RadContextMenu both to RadListView and to RadListControl. I have also changed the Theme to VisualStudio2012Dark as in your case (based on the screenshot).

However, every time that I open the RadContextMenu and hover over an item, the hover state is displayed correctly and I can select the item as you can see in the attached .GIF file. As mentioned above I have also tested different scenarios with RadListControl but without replicating the behavior on your end. Am I missing something?

Can you please modify the project that I have attached in order to reproduce the problem so we can investigate further?

Looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Michael
Top achievements
Rank 1
Veteran
answered on 28 Feb 2020, 06:29 PM

Hi Dimitar,

I can't open the form in your project because I do not have the same version installed as you. I'm on version 2019.3.1022.40 if that helps. 

Thanks again,

Michael.

0
Michael
Top achievements
Rank 1
Veteran
answered on 28 Feb 2020, 06:45 PM

I just installed some .net updates and rebooted after a few weeks of uptime with Visual Studio 2019 running the entire time... of course it doesn't repro now. You know how things get weird after VS has been running for a while, maybe thats all it was? I'll keep an eye on it and let you know if I can reproduce it in a test app in the future.

Feel free to close this one out. Thank you for your time, though.

Michael.

0
Dimitar
Telerik team
answered on 04 Mar 2020, 08:53 AM

Hello Michael,

I am glad that everything worked out for you after the .NET updates. In order to run the project that I have attached you will have to delete the "licenses.licx" file that I have left there by mistake. After a Clean and Rebuild of the project it should work as expected. 

If you manage to reproduce the issue again please don't hesitate to contact us.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Michael
Top achievements
Rank 1
Veteran
answered on 23 Mar 2020, 04:52 PM
Quick update, it does it in your demo app too. Meaning, if I open the Telerik Demo app, and go up to the Theme dropdown in the right hand corner of the screen near the search box, i'll click on it and the first time, the menu items don't get the focus and you cannot click on anything. The second time you click the drop down, the menu items highlight and work as expected. Its reproducible if I close the app and relaunch it. I haven't rebooted yet, but last time that resolved it. As far as I can tell, this only impacts Telerik controls. Bizarre isn't it? 
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Mar 2020, 10:32 AM
Hello, Michael,

I am still unable to observe the same behavior even with the Demo application when launching it for the first time. Please refer to the attached gif file illustrating the behavior on my end. Am I missing something?

Have you tried to replicate the problem with the sample project that my colleague, Dimitar, previously provided? Is the issue reproducible there? 

Are you performing any additional actions when the drop down is opened for the first time in your project? For example, focusing another control or application.

Without replicating the issue locally, it wouldn't be easy to determine what causes the undesired behavior and provide an appropriate solution accordingly.  
 
Have you tried to test the same behavior on another computer? Is the issue observed there as well or it is reproducible only on your machine? Thank you in advance for your cooperation.

I am looking forward to your reply.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ListView
Asked by
Michael
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Michael
Top achievements
Rank 1
Veteran
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or