4 Answers, 1 is accepted
0
                                
                                                    Jack
                                                    
                                            
    Top achievements
    
            
                 Rank 2
                Rank 2
            
                
                     Iron
                    Iron
                
    
                                                
                                                answered on 09 Dec 2014, 08:30 AM
                                            
                                        Please confirm the following workaround:
Just adding the class seems to be enough to disable the call to the click event handler.
                                        $('#user-toolbar-view-profile').addClass('k-state-disabled');Just adding the class seems to be enough to disable the call to the click event handler.
0
                                Hi Jack,
Currently disabling a single menu button of a SplitButton is not supported through the API.
Your workaround is almost valid. In addition you should also add a k-state-disabled class to the button located in the overflow popup (unless you have resizable: false).
IDs receive an _overflow suffix in the overflow popup container.
Regards,
Alexander Valchev
Telerik 
 
                                        Currently disabling a single menu button of a SplitButton is not supported through the API.
Your workaround is almost valid. In addition you should also add a k-state-disabled class to the button located in the overflow popup (unless you have resizable: false).
$('#user-toolbar-view-profile, #user-toolbar-view-profile_overflow').addClass('k-state-disabled');IDs receive an _overflow suffix in the overflow popup container.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
                                
                                                    Thomas
                                                    
                                            
    Top achievements
    
            
                 Rank 1
                Rank 1
            
    
                                                
                                                answered on 28 Sep 2015, 10:50 AM
                                            
                                        The following workaround is not working for me if I have a click function binded to the "Profile" menu which must be disabled.
I am using Kendo UI 2015 Q2 SP2.
Check the updated code: http://dojo.telerik.com/OMemU
0
                                Hi Thomas,
In order to prevent the click function to be executed you may prevent the mousedown event. For example:
Regards,
Alexander Valchev
Telerik 
 
                                        In order to prevent the click function to be executed you may prevent the mousedown event. For example:
$('#user-toolbar-view-profile, #user-toolbar-view-profile_overflow').addClass('k-state-disabled').on("mousedown", function(e) { e.stopImmediatePropagation(); });Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!