[NET6] C1SplitButton separator is not working

Posted by: wknauf on 31 May 2023, 5:14 am EST

    • Post Options:
    • Link

    Posted 31 May 2023, 5:14 am EST - Updated 31 May 2023, 5:19 am EST

    Hi C1,

    just noticed that the separator in C1SplitButton does not seem to be supported in the .NET6 version.

    See attached sample (contains .NET 4.8 and .NET6 projects - I misnamed the solution, the text “Ribbon” is not related to this issue):

    RibbonSplitButton.zip

    In .NET 4.8, I could create a separator with this code:

          DropDownItem item = new DropDownItem();
          item.Text = "-";
          this.button1.Items.Add(item);


    And it looks like this:

    With .NET6, this does not work any more:

          SplitButtonItem item = new SplitButtonItem();
          item.Text = "-";
          this.c1SplitButton1.Items.Add(item);


    The “-” is rendered as a regular text:

    Is there any other way to achieve separators, or is this just a missing feature?

    Best regards

    Wolfgang

  • Posted 1 June 2023, 1:18 am EST

    Hi Wolfgang,

    Unfortunately, this feature is currently missing in the .NET 6 C1SplitButton. An enhancement request for this feature has already been raised to the development team and the ETA is 2023v2 release. We will let you know as soon as this feature is implemented.

    [Internal Tracking ID: C1WIN-29558]

    Thanks, and Best Regards,

    Kartik

  • Posted 3 August 2023, 4:24 am EST

    Hi Wolfgang,

    We are happy to let you know that this feature has been added in the latest 2023v2(611) hotfix release. You can install the latest NuGet package using the link below.

    (https://www.nuget.org/packages/C1.Win.Input/6.0.20232.611)

    Best Regards,

    Kartik

  • Posted 7 August 2023, 8:13 am EST

    Great, thanks!

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels