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

MenuItem attributes lost on ajax/postback

1 Answer 48 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Compass
Top achievements
Rank 1
Compass asked on 19 Nov 2015, 11:03 PM

I have radcontextmenu where some items have custom attribute "ConfirmationMessage" with a value like "Are you sure you want to delete?"  These attributes are set on the server code-behind on load.

On the client in javascript - the OnClientItemClicking event checks that attribute and presents a radconfirm first. 

It works on the first load of the page, but the attributes are lost after ajax/postback. 

Please advise a fix or workaround.  I am already using the Text, Value properties.  Is there some clever way to use the NavigateURL field without causing it to try to navigate to a page?

Thanks

Sean

1 Answer, 1 is accepted

Sort by
0
Compass
Top achievements
Rank 1
answered on 19 Nov 2015, 11:11 PM

Nevermind I discovered it was something else in the javascript...my bad.  Apologies. 

 

Tags
Menu
Asked by
Compass
Top achievements
Rank 1
Answers by
Compass
Top achievements
Rank 1
Share this question
or