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

Can't use RadSplitButton normally

2 Answers 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 22 Dec 2017, 11:31 AM

Hello guys.

I want to add to my app RadSplitButton, but I can't configure it normally. I was looking to example code from telerik how to use this type of buttons. But when I added it to my project with all settings, buttons behavior was diffrenet from the telerik example. Allways when I am pressing on the button in all the places(Arrow button, Action button) the DropDownMenu is opened (the differance is that in the telerik example DropDownMenu opened only when Arrow button pressed).

The 1st question is why example has't all the settings? And I think I am not telling about one property that has be forgotten, because selection of the button in example was modified too.

I tried to find a property that can disable menu popupping, but my attempt was failed.

I found ugly solution:

- Set property DropDownButtonElement.DropDownMenu.PopupElement.Visibility = ElementVisibility.Collapsed 

- Add click method to Click Event for DropDownButtonElement.ActionButton, and add to the start of the method this function: DropDownButtonElement.DropDownMenu.Hide()

This solution works fine, but I believe that there is another way to disable menu popup on. Have you guys any ideas?

 

 

 

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 Dec 2017, 02:19 PM
Hi Ivan,

I have tested this and it appears to work on my side. I have attached my test project. 

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ivan
Top achievements
Rank 1
answered on 22 Dec 2017, 07:37 PM

 Thx alot, all works great! It was my bad.

I forgot to add RadSplitButton.DefaultItem = defaultItem

Tags
GridView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or