myothet
8/16/2017 - 10:01 AM

HideColumnInMainGrid

Hi Christoffer,

I have made the changes in Core file for hiding/showing the columns in MainGrid. i.e., in ItemsGrid.html
Below code you have to add in end of this function "onReinitialize".
if(itemTypeName=="part")
{
    for (var inx =0; inx <visiblePropNds.length; inx++)
    {                   
        var propNm = arasObj.getItemProperty(visiblePropNds[inx], "name");
        if(propNm!="created_by_id" || propNm!="classification")// Only this two properties will be visible in Main Grid
        {
            var idx=inx+1;
            grid.SetColumnVisible(idx, false, 0);
        }
    }
}

Regards,
Pankaj B