Announcement

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

    Problem with ListGrid contextMenu

    I cannot reproduce this in Feature Explorer but I cannot figure out why it is happening. I've removed all functions that we have overwritten besides the data fetch and still, I cannot get rid of this behaviour (please see attached image). The data only shows up squished when I have set a contextMenu on the listgrid. Any ideas/hints would be great.

    Code:
    isc.VLayout.create({
                    ID:"table",
                    name:"table",
                    title:" ",
                    canHover:true,
                    showResizeBar:false,
                    height:"100%",
                    width:"100%",
                    members:[
                           isc.VLayout.create({
                                 ID:"cwvLayoutfnd_ui_showDetailActionResultTable1",
                                 width:"100%",
                                 height:"100%", 
                                 members:[
                                     isc.ListGrid.create({
                                             title:" ",
                                             fastCellUpdates:false,
                                             data: countryData,
                                             contextMenu:
                                                  isc.Menu.create({
                                                    ID:"MenuItem$menu",
                                                    fastCellUpdates:false,
                                                    canFocus:true,
                                                    title:"Sh ",
                                                     showDown:false,
                                                     data:[
                                                      {iconWidth:18,
                                                        iconHeight:18,
                                                        icon:"\/cwf\/r\/cwf\/acrobat.gif",
                                                        iconOrientation:"right",
                                                        title:"Show Detail",
                                                        ID:"MenuItem1"
                                                       },
                                                      {iconWidth:16,
                                                        iconHeight:16,
                                                        icon:"\/cwf\/r\/cwf\/delete.gif",
                                                        iconOrientation:"right",
                                                        title:"Delete",
                                                        ID:"MenuItem2"
                                                       }],
                                                     showRollOver:false,
                                                     vAlign:"bottom"}),
                                                modalEditing:true,
                                                recordBaseStyleProperty:"velocityRowStyle",
                                                canSelectText:true,
                                                selectOnEdit:true,
                                                willHandleErrors:true,
                                                autoFetchData:false,
                                                canSort:true,
                                                headerButtonProperties:{wrap:true},
                                                width:"100%",
                                                 height:"100%",
                                                 fields:[
    										{title:"<nobr>Boolean - Checkbox&nbsp;<\/nobr>",
    										type:"boolean",
    										name: "boo_CB",
    										align:"left",
    										validateOnChange:true,
    										width:"100"},
    										{title:"<nobr>Boolean - Radio Button - Horizontal&nbsp;<\/nobr>",
    										name: "boo_RBH",
    										align:"left",
    										type: "boolean",
    										validateOnChange:true,
    										width:"100"},
    										{title:"<nobr>Boolean - Radio Button - Vertical&nbsp;<\/nobr>",
    										name:"str_PF",
    										align:"left",
    										validateOnChange:true,
    										width:"100"}
    									]
    											})
    							]})
    						]});
    
    countryData=
    [
    {cwPK__:"84867285",$isCwSelected:false,"boo_CB": false,"str_PF":"ZZZZZZZZ","boo_RBH": false,"boo_RBV": false},
    {cwPK__:"84867286",$isCwSelected:false,"boo_CB": true,"str_PF":"EEEEIIEE","boo_RBH": true,"boo_RBV": true},
    {cwPK__:"84867287",$isCwSelected:false,"boo_CB":false,"str_PF":"HHjjjHjj","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867288",$isCwSelected:false,"boo_CB":true,"str_PF":"mmOOSqOO","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867289",$isCwSelected:false,"boo_CB":false,"str_PF":"pppttptt","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867290",$isCwSelected:false,"boo_CB":true,"str_PF":"ssUsUYYY","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867291",$isCwSelected:false,"boo_CB":false,"str_PF":"XXzXDXDD","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867292",$isCwSelected:false,"boo_CB":true,"str_PF":"aaaCeGii","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867293",$isCwSelected:false,"boo_CB":false,"str_PF":"ddFhFFNN","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867294",$isCwSelected:false,"boo_CB":true,"str_PF":"IIkMooss","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867295",$isCwSelected:false,"boo_CB":false,"str_PF":"LLLLPnLX","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867296",$isCwSelected:false,"boo_CB":true,"str_PF":"OOqqqWqO","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867297",$isCwSelected:false,"boo_CB":false,"str_PF":"ttVVZVVt","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867298",$isCwSelected:false,"boo_CB":false,"str_PF":"wwwAAEAY","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867299",$isCwSelected:false,"boo_CB":true,"str_PF":"zzbzbDfD","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867300",$isCwSelected:false,"boo_CB":false,"str_PF":"eeGeKmKi","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867301",$isCwSelected:false,"boo_CB":true,"str_PF":"hhhJllpN","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867302",$isCwSelected:false,"boo_CB":false,"str_PF":"kkMoMkUs","boo_RBH":true,"boo_RBV":true},
    {cwPK__:"84867303",$isCwSelected:false,"boo_CB":true,"str_PF":"PPrTvTzX","boo_RBH":false,"boo_RBV":false},
    {cwPK__:"84867304",$isCwSelected:false,"boo_CB":false,"str_PF":"SSSSWSSC","boo_RBH":true,"boo_RBV":false},
    {cwPK__:"84867305",$isCwSelected:false,"boo_CB":true,"str_PF":"VVxxxBxh","boo_RBH":false,"boo_RBV":true},
    {cwPK__:"84867306",$isCwSelected:false,"boo_CB":false,"str_PF":"AAccgAcM","boo_RBH":true,"boo_RBV":false},
    {cwPK__:"84867307",$isCwSelected:false,"boo_CB":true,"str_PF":"DDDHHjHD","boo_RBH":false,"boo_RBV":true},
    {cwPK__:"84867308",$isCwSelected:false,"boo_CB":false,"str_PF":"GGiGiimi","boo_RBH":true,"boo_RBV":false},
    {cwPK__:"84867309",$isCwSelected:false,"boo_CB":true,"str_PF":"llNlRRRN","boo_RBH":false,"boo_RBV":true},
    {cwPK__:"84867310",$isCwSelected:false,"boo_CB":false,"str_PF":"oooQsQws","boo_RBH":true,"boo_RBV":false},
    {cwPK__:"84867311",$isCwSelected:false,"boo_CB":false,"str_PF":"rrTvTzbX","boo_RBH":false,"boo_RBV":true},
    {cwPK__:"84867312",$isCwSelected:false,"boo_CB":true,"str_PF":"WWyaCyGC","boo_RBH":true,"boo_RBV":false},
    {cwPK__:"84867313",$isCwSelected:false,"boo_CB":false,"str_PF":"ZZZZdhZh","boo_RBH":false,"boo_RBV":true},
    {cwPK__:"84867314",$isCwSelected:false,"boo_CB":true,"str_PF":"ccEEEgEM","boo_RBH":false,"boo_RBV":false}
    ]
    Attached Files

    #2
    Hard to guess what could cause this, except to say that you may have tried to patch the Menu or ListGrid classes in some invalid way which is causing bad field widths to be calculated.

    Let us know if you can isolate it - try removing any files that apply framework-level customizations until the issue goes away.

    Comment


      #3
      Found the problem...in the actual generated code, I had "autoFit: true" as a property under the listgrid. When I took this property out, it worked fine. I can reproduce this in feature explorer now.

      Technically, the property doesn't exist for listgrid (just rendering problem on our part), but there's def. something behaving differently when this property is set.

      Comment

      Working...
      X