Announcement

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

    groupByField property with TileGrid

    Is this supported for TileGrid? I tried adding the property but it does not work. If it is not supported, how do I modify it so that I can have the same functionality?


    data is in sample isomorphic/system/reference/SmartClient_Explorer.html#tilingBasic
    Code:
    
    
    isc.TileGrid.create({
        tileWidth:150,
        tileHeight:190,
        height:400,
        width:"100%",
        showAllRecords:true,groupByField:"status",
        data:animalData,
        fields: [
            {name:"picture",  
                type:"image", imageURLPrefix:"/isomorphic/system/reference/inlineExamples/tiles/images/"},
            {name:"commonName"},
            {name:"status"}
            
        ]            
    });

    #2
    No, the TileGrid does not support grouping. You would have to build such functionality on your own, or sponsor it.

    Comment


      #3
      Ok. How about customizing the overall look of the tilegrid? I want to remove that grey border but setting the style does not work:

      I ran in feature explorer
      SmartClient Version: v8.2p_2012-06-06/PowerEdition Development Only (built 2012-06-06)

      Code:
      isc.TileGrid.create({
          tileWidth:150,
          tileHeight:190, styleName: "myHighGridCell",
          height:400,
          width:"100%",
          showAllRecords:true,
          data:animalData,
          fields: [
              {name:"picture",  
                  type:"image", imageURLPrefix:"/isomorphic/system/reference/inlineExamples/tiles/images/"},
              {name:"commonName"},
              {name:"status"}
              
          ]            
      });
      
      .myHighGridCell{
          font-family:Verdana,Bitstream Vera Sans,sans-serif; font-size:11px; text-overflow:ellipsis;
          color:black;
          border:none;
          background-color:#ffc0c0;
      }

      Comment


        #4
        That works fine, but note, it's going to affect the border around the TileGrid as a whole, not the individual tiles.

        Comment


          #5
          That is exactly what I want but it's not doing that. Please see attached html file and screenshot. The grey border around the tilegrid is still there.
          Attached Files

          Comment


            #6
            That grey "border" is caused by showEdges:true, it is not a CSS border.

            Comment


              #7
              Oh ok. thanks

              Comment

              Working...
              X