Announcement

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

    [SC10 Bug] booleanTrueImage and booleanFalseImage do not work

    Description:

    Setting the properties "booleanFalseImage" and "booleanTrueImage" does not work (as expected) in SC10.


    1. Smartclient versions: 9.0_20130729 / 10.0_20141202

    2. IE 9-10 / FF 32-34

    6. sample code if applicable

    Based on the examples:
    SC 9 [Working] : http://smartclient.com/docs/9.0/a/sy....types_Boolean
    SC 10[Not working] : http://www.smartclient.com/docs/rele...taTypesBoolean

    The code on both the examples (versions of SC) as below:

    Note: only added booleanFalseImage: "pieces/16/star_yellow.png" to the original example


    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true,
        canEdit:true, editEvent:"click", modalEditing:true, booleanFalseImage: "pieces/16/star_yellow.png",
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
            {name:"countryName", title:"Country"},
            {name:"member_g8", title:"G8",
                type: "boolean"
            }
        ]
    })
    Edit: Additional info

    SC9 html
    Code:
    <div style="overflow:hidden;text-overflow:ellipsis;WIDTH:18px;" cellclipdiv="true" role="presentation"><nobr><img width="13" height="13" border="0" align="TEXTTOP" suppress="TRUE" class="checkboxFalse" style="margin-left:2px;margin-right:2px;" eventpart="valueicon" src="http://smartclient.com/docs/9.0/a/system/reference/exampleImages/pieces/16/star_yellow.png"></nobr></div>
    SC10 html
    Code:
     <div style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;WIDTH:18px;" cellclipdiv="true" role="presentation"><span class="checkboxFalse" eventpart="valueicon" style="display:inline-block;background-size:100% 100%;background-image:url(&quot;http://www.smartclient.com/docs/release/a/system/reference/exampleImages/pieces/16/star_yellow.png&quot;);width:13px;height:13px;vertical-align:text-top;margin-left:2px;margin-right:2px"></span></div>
    Last edited by Strag; 8 Dec 2014, 04:51. Reason: added html snippets

    #2
    Thanks for pointing this out. This is fixed for tomorrow's builds for all affected versions.

    Comment

    Working...
    X