[BUG] RadioButtonGroup single attribute does not match

  • Alex K
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the online course Advanced (320)
      1 year ago #39703

      The RadiobuttonGroup Widget for example has the property “selectedKey”
      Due to its nature it does not provide any output to selectedKey, nor can anyone store a variable at its place and modify the widget with it.

      It simply does not exist. See here:
      https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.RadioButtonGroup%23overview

      Armin Winkler
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
        1 year ago #39707
        Up
        0
        Down
        ::

        Hi Alex,

         

        the ‘selectedKey’ property was introduced as a custom property by us to enable app builders to handle RadioButtonGroups in a similar fashion to e.g. a Select widget. This would be the reason why you cannot find said property in the UI5’s official API reference. If you want to preselect and modify the widget using a variable binding, my suggestion would be to use the native ‘selectedIndex’ property of the RadioButtonGroup instead.

         

        If you encounter a bug related to the behaviour of ‘selectedKey’ for RadioButtonGroup when bound to a variable, please raise a ticket for the same so we can find a possible fix for it: Support

         

        Kind regards,

         

        Armin

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.