Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Hierachial Grids Expand Column
posted

Hi I  have a Hierachial Grid. Base on user role, I will hide/show the band child by set Grid.DisplayLayout.ExpandableDefault= No/Yes. It works fine but the Expand column use to show the + character is still show when i  set hide the band child. Can I hide this column mark X red like in picture?

Thanks

Parents
No Data
Reply
  • 5
    posted

    I've got a question like this。after trying several solutions ,I got a way .

    using javascript to set the first col attr .

    code :

    function Grid_HideExpansion(grid) {
        for (var index = 0; index < grid.Rows.length; index++) {
            var tabName = grid.Id + '_t_' + index;
            var tab = document.getElementById(tabName);
            if (tab) {
                tab.children[0].children[0].style.display = 'none';
            }
        }
    }

    yeah .hope this may helps   .

Children
No Data