Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are three divs.
I have created a menu (navMenu) with 5 menuitems say a,b,c,d,e inside first div.
There is a grid(RGridMappedDocument) in second div which contains certain buttons.
There are two dropdowns in third div.
On clicking button inside grid, menu items b,c,d needs and the drop downs need to be disabled.
Using the below code am able to disable only dropdown.I ajaxified the dropdowns.
But when i did ajaxification the whole menu gets disabled on click
Please find a solution to disable only three menuitems on button click.

What I have tried:

C#
onbutton_click(object sender,EventArgs e)
{
navMenu.FindItem("QA").Enabled = false;
navMenu.FindItem("Approve Synonym").Enabled = false;
navMenu.FindItem("Upload").Enabled = false;
ddSelectPriority.Enabled = false;
ddSelectResource.Enabled = false;
}

<telerik:AjaxSetting AjaxControlID="RGridMappedDocument">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RGridMappedDocument" LoadingPanelID="lPanelNoIcon" />
                    <telerik:AjaxUpdatedControl ControlID="RadTabStripClasses" LoadingPanelID="lPanelNoIcon" />
                    <telerik:AjaxUpdatedControl ControlID="ddSelectPriority" LoadingPanelID="lPanelNoIcon" />
                    <telerik:AjaxUpdatedControl ControlID="ddSelectResource" LoadingPanelID="lPanelNoIcon"/>                                                                                              
            </telerik:AjaxSetting>
Posted
Updated 9-Feb-17 23:17pm
v2
Comments
njammy 10-Feb-17 4:54am    
Please can you update your question with markup.
Member 12836035 10-Feb-17 5:17am    
have updated question
njammy 10-Feb-17 5:20am    
Please can you update your question with markup for the menu items.
Karthik_Mahalingam 10-Feb-17 5:04am    
information not enough to provide solution.
use "Improve question" to edit the question.
Member 12836035 10-Feb-17 5:23am    
updated question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900