Announcement

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

    header wrap behaves differently in 9.1

    I tested with SmartClient_v83p_2013-08-18 and with SmartClient_v91p_2014-03-23_PowerEdition.

    In 8.3, the following example wraps the header titles. In 9.1, t only wraps one of the header titles.

    Code:
    
    var testDs = [{
    cwDynamic0:"1",
    cwDynamic1:"2"
    
    
    }];
    
    isc.ListGrid.create({
    			ID: "testWrap",autoDraw:true,
    			confirmDiscardEdits: false,
    			modalEditing: true,width:700,
    			data: testDs,
    			autoSaveEdits: true,
    			showPrompt: false,
    			validateByCell:true,
    			headerHeight: 25,
    			headerButtonProperties: {wrap: true},
    			selectionProperty: "$isCwSelected",
    			$cwIsDynTable: true,
    			fields: [{name:"cwPK__",primaryKey:"true",showIf:" return false"},
    			{name:"cwDynamic0",title:"Generic Product Indicator",type:"text"},
    			{name:"cwDynamic1",title:"Equipment Feature SED Type",type:"text"},
    			{name:"cwDynamic2",title:"Call Forwarding Don't Answer",type:"boolean"},
    			{name:"cwDynamic3",title:"OS Long Product Description",type:"text"},
    			{name:"cwDynamic4",title:"Value (Custom Range Privileges)",type:"text"}],
    			height: "100%"
    			
    		});

    #2
    Hi - any thoughts/fixes/etc?

    Comment


      #3
      This one is still under investigation. We'll follow up with more information soon

      Comment


        #4
        We've added a new attribute - listGrid.wrapHeaderTitles - to address this issue.
        This will be present in the next nightly build (dated March 29 or above) - set to true to ensure your header titles wrap, or false to disable wrapping.

        Note that wrapping of header titles is off by default. One of the features of 9.1 was the introduction of the new title-clipping behavior (see clipHeaderTitles and showClippedTitlesOnHover), and this feature is incompatible with wrapping fields, so will be disabled for fields which wrap.

        Regards
        Isomorphic Software

        Comment


          #5
          So is headerButtonProperties: {wrap: true} now useless?

          Comment


            #6
            It still works, but it's now redundant with wrapHeaderTitles, which is the preferred way to set this now.

            Comment


              #7
              I tried the new property but it still behaves differently from 8.3 - the headers that are wrapping are different. Please see attached. The first image is what I am expecting
              Attached Files

              Comment


                #8
                This is due to us auto fitting the boolean field to the title.
                You can turn this off via autoFitIconFields. Set this to "none" or "iconWidth" to avoid auto-fitting to the title.

                Comment

                Working...
                X