Hello,
I am using a RadSplitButtonElement:
DEFINE PRIVATE VARIABLE BtnAnnulerSplit AS Telerik.WinControls.UI.RadSplitButtonElement NO-UNDO.
and I would like to control the number of items displayed. If there are more than can fit, display a vertical scrollbar; otherwise, do not.
I have written the following code:
DEFINE VARIABLE oMenu AS Telerik.WinControls.UI.RadDropDownMenu NO-UNDO.
DEFINE VARIABLE iItemHeight AS INTEGER NO-UNDO.
oMenu = BtnAnnulerSplit:DropDownMenu.
iItemHeight = 10.
oMenu:Maximum = NEW System.Drawing.Size(0, 20 * iItemHeight).
I do have a size, but no vertical scrollbar, which means I can’t see all the items.
Thank you for your feedback
Translated with DeepL.com (free version)
