Forum Stats

  • 3,816,037 Users
  • 2,259,133 Discussions
  • 7,893,366 Comments

Discussions

Popup LOV using Javascript Initialization with GroupName

Matt Smith
Matt Smith Member Posts: 7 Green Ribbon

I am trying to create a popup lov using javascript initialization and groupname.

I have a DD column that contains HTML that I need to not Escape. Their is also a D, R, and G column. If I do not use Javascript Initialization, then it displays D, the drop down uses DD and groups by G without an issue. When I use the following in the Initialization, I get the DD without escape but no grouping. Anyone know the correct way to format this? I have ready all the JSDoc Widget Grid and can not see what im missing.

function(options) {
  options.defaultGridOptions = {
    columns: [{
      DD: {
heading: 'RPT;',
escape: false,
GroupName: "G"
      }
    }],
  columnGroups: [{
      G: {
heading: 'CAT'
      }
    }]

  };
  return options;
}

Above is with the Javascript Code and below is without the Javascript


Best Answer

  • Matt Smith
    Matt Smith Member Posts: 7 Green Ribbon

    Solved it. You don't use the ColumGroup, instead use the ControlBreakIndex stuff.


    function(options) {
        options.defaultGridOptions = {
            columns: [{
                DD: {
    escape: false,
    noStreth: false,
    noHeaderActivate: true,
    index: 1
                },
                G: {
    index: 2,
    controlBreakIndex: 1,
    hidden: true
                }
    
            }]
        };
        return options;
    }
    

Answers

  • Matt Smith
    Matt Smith Member Posts: 7 Green Ribbon

    Solved it. You don't use the ColumGroup, instead use the ControlBreakIndex stuff.


    function(options) {
        options.defaultGridOptions = {
            columns: [{
                DD: {
    escape: false,
    noStreth: false,
    noHeaderActivate: true,
    index: 1
                },
                G: {
    index: 2,
    controlBreakIndex: 1,
    hidden: true
                }
    
            }]
        };
        return options;
    }