Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Questions about RadioGroupItem

    Hi,

    We notice an OLD behavior change from SmartClient v8.3p_2013_06_03 to current SmartClient v8.3p_2015_05_05 build for RadioGroupItem.

    In SmartClient v8.3p_2013_06_03, the radio items were stretching to what was available. However, in v8.3p_2015_05_05 they are strictly placed next to each other.

    Is there any way/property we can use to bring back the previous behavior in SmartClient v8.3p_2013_06_03?

    Please check the following standalone and the screen shot for reference.

    Thanks,
    Robin

    Code:
    isc.DynamicForm.create({
        top: 45,
        width: 500,
        autoDraw: true,
        showEdges: true,
        fields: [
            {title: "Division",
             _constructor: "RadioGroupItem",
             valueMap: ["Marketing", "Sales", "Manufacturing", "Services"],
             width: 500,
             vertical: false
            }
        ]
    });

    #2
    Try setting itemProperties on the RadioGroupItem to set width on each item to an appropriate value (say 100).

    Comment


      #3
      Thanks for the quick response. I tried itemProperties but it doesn't make any change.

      Code:
      isc.DynamicForm.create({
          top: 45,
          width: 500,
          numCols: 4,
          autoDraw: true,
          showEdges: true,
          fields: [
              {title: "Division",
               _constructor: "RadioGroupItem",
               valueMap: ["Marketing", "Sales", "Manufacturing", "Services"],
               width: 500,
               vertical: false,
               itemProperties: {width: 100}
              }
          ]
      });

      Comment


        #4
        Any updates would be appreciated!

        Thanks,
        Robin

        Comment


          #5
          Hi,

          This is another use case from our customer. Please help how we can get back to the previous behavior.

          Code:
          isc.DynamicForm.create({
          top: 45,
          width: 500,
          autoDraw: true,
          showEdges: true,
          titleOrientation:"top",
          fields: [
          {title: "Division with the very long title",
          _constructor: "RadioGroupItem",
          valueMap: ["Marketing", "Sales"],
          width: 170,
          vertical: false
          },
          {title: "TF"}
          ]
          });
           

          Comment


            #6
            We are taking a look. We'll respond when we have more information for you

            Regards
            Isomorphic Software

            Comment


              #7
              Thanks for the updates. We are under huge pressure from our customer. Any updates would be greatly appreciated.

              Thanks,
              Robin

              Comment


                #8
                Ok - well we have a developer looking into sizing in general for the RadioGroupItem - while we aren't intending to go back to the old behavior as a default, there do appear to be some problems with the current implementation, and we are looking at exactly what the desired behavior is and how to get there.
                If you absolutely need a way to get this working with an existing build, there's an undocumented property "writeWidthAttribute" which you can set to true on your RadioGroupItem. Having done this, the width attribute specified on sub items (via the "itemProperties" object) should work.
                This is an unsupported workaround - a hack really and we can't guarantee it will continue to work going forward but gives you a temporary solution to take the pressure off. We'll let you know when we have a better resolution for this issue in place.

                On the second issue - the wrapping of the top-aligned title: This is coming from the fact that the first column for the dynamic form is not sizing as large as you'd expect.
                Use either explicit colWidths on the form, or set "titleWidth" [applies to every other column by default] to a larger value.

                This should hopefully get you actually running for now. We will be following up with more information and likely a proper, supported approach when this issue has been fully investigated by our development team.

                Regards
                Isomorphic Software

                Comment


                  #9
                  A quick follow up on this:
                  We have made some changes in the current active development branch (10.1) around how RadioGroupItems render. We don't plan to port these back to 8.3, so this information will be most relevant to you for upgrading.
                  - Firstly we have made the 'width' property on RadioGroupItems more robust - it truly governs the width apportioned for the item, rather than relying solely on the colWidths specification as we used to do. This is a minor bugfix.
                  - Secondly we've added a new feature "radioGroupItem.fillHorizontalSpace" - if true, we will render horizontally laid out radioGroupItems such that each item in the group is spread out evenly across the width of the item. This essentially is a supported way to restore the old 8.3 behavior you are describing. You can continue to use the unsupported workaround we suggested above while you are on 8.3, and switch to this new property when you upgrade to the most recent SmartClient version.

                  Regards
                  Isomorphic Software

                  Comment

                  Working...
                  X