Search code examples
winformstelerik

Setting the first item on a RadSplitButton


I'm new to the usage of the RadSplitButton on Winforms. I've defined two RadMenuItem and set the DefaultItem to the first item of mine collection but it still shows empty as you can see

enter image description here

Is there a way that I can set the first item

enter image description here


Solution

  • RadSplitButton offers a Text property to set its button content:

    RadSplitButton splitButton = new RadSplitButton();
    splitButton.Text = "Fruits";
    

    For more information please check the documentation: Getting Started.