Hi,
I'm using the RadContextMenu passing in parameters in Context to dynamically load options for a Grid in ASP.NET.
In the backend it's calling database to retrieve links the user can do.
The problem is that when there is no links to return, passing a empty RadMenuItemData array causes javascript error in the aspx.
I first try to raise an ApplicationException, and the error message will get displayed as an alert to the user.
However, this approach will somehow make the contextmenu don't call the web service at all (I set a breakpoint at the populate method, and it's not getting called) the next time you right click. If you right click again then it will be back to normal.
I wonder what's the recommended way to pass empty results so no itemdata will be populated?
Thanks!
I'm using the RadContextMenu passing in parameters in Context to dynamically load options for a Grid in ASP.NET.
In the backend it's calling database to retrieve links the user can do.
The problem is that when there is no links to return, passing a empty RadMenuItemData array causes javascript error in the aspx.
I first try to raise an ApplicationException, and the error message will get displayed as an alert to the user.
However, this approach will somehow make the contextmenu don't call the web service at all (I set a breakpoint at the populate method, and it's not getting called) the next time you right click. If you right click again then it will be back to normal.
I wonder what's the recommended way to pass empty results so no itemdata will be populated?
Thanks!