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

Show/hide the menu in treeview after ajax postback

4 Answers 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
jing
Top achievements
Rank 1
jing asked on 19 Jul 2010, 11:21 AM
How do I get the hidden value after the ajax postback so that the menu can enable/disable the menu item?
Thanks.

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Jul 2010, 02:06 PM
Hello Jing,

I'm not sure I understand the your requirements.  I can only suggest to use OnResonseEnd client-side event of the ajax manager.

Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
jing
Top achievements
Rank 1
answered on 21 Jul 2010, 02:44 PM
I rephase my requirement, I have a treeview with context menu that i want to enable/disable menu item based on the value of a asp:hiddenfield and a button to update the hiddenfield value once clicked.

All controls are wrapped around with radajaxmanager.

From my development, i was not able to get the updated value of the hiddenfield by javascript. Do you have any sample that is related to this?

Thanks.

0
jing
Top achievements
Rank 1
answered on 23 Jul 2010, 11:33 AM
I was able to get the value of the HiddenField in javascript by adding the control to the AjaxManager.
0
Yana
Telerik team
answered on 23 Jul 2010, 11:34 AM
Hello jing,

I'm glad you managed to fix this issue.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
jing
Top achievements
Rank 1
Answers by
Yana
Telerik team
jing
Top achievements
Rank 1
Share this question
or