ThinkGeo.com    |     Documentation    |     Premium Support

Context Menu can't make onClientClick event

Hi, i am trying to create context menu just like here link but second item doesn’t work on your site, when i click on it it gives me this error image I would like to know can i create onClientClick event in the contextmenu

Hi Denis,

I tested the sample, and it looks works without exception if I clicked on the second item.

My browser is chrome 80.0.3987.100.

And the Uncaught ReferenceError looks caused by the object is not defined, I think that’s should be environment issue, could you please let us know your browser version so we can try to reproduce it? Or you can try to load it in other browser or other machine to see whether it can be reproduced by other way.

Regards,

Ethan

Hi, Ethan
Maybe i didn’t explained correctly, but i was talking about ‘Current Position(Ajax Call)’ event, this menu item gives me an error
Information menu item works correctly
And also my browser is chrome version
Google Chrome is up to date

Version 80.0.3987.100 (Official Build) (64-bit)

Hi Denis,

Thanks for your information, I had reproduced it.

I think that’s a bug, our developer will try to solve it.

Any update I will let you know.

Regards,

Ethan

Hi Denis,

Our developer had fixed the issue.

You should want to upgrade your package to https://www.nuget.org/packages/MapSuiteWebForMvc-BareBone/11.0.0-beta054

If you want to test it in your project, please clear your browser cache at first.

And here is a simple sample, you should want to try it.

HelloWorldSample-ForMvc.zip (1.6 MB)

I hope that solved your problem.

Regards,

Ethan

1 Like

Hi Ethan,
Thanks for help

Hi Denis,

I am glad to hear that’s helpful.

Any question please let us know.

Regards,

Ethan