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
545
Grid vertical scrollbar issue with last column if text is right align
posted

Hi

I am using jquery grid in our project wher i have defined the grid width and height due to that i am getting the horizontal and vertical scroll bar automatically and my all text in grid cell are right align by following code

$(gridid).unbind('iggriddatarendered');
    $(gridid).on("iggriddatarendered", function (event, args) {
        for (var i = 0; i < metadata.length; i++) {
            j = i + 1;
            var formatType = metadata[i].FormatType;
            if (formatType.toLowerCase() == "int" || formatType.toLowerCase() == "currency" || formatType.toLowerCase() == "percentage" || formatType.toLowerCase() == "wholenumber" || formatType.toLowerCase() == "double" || formatType.toLowerCase() == "number") {
                args.owner.element.find("tr td:nth-child(" + j + ")").css("text-align", "right");
            }
            
        }
    });

 my problem is the last column text is getting overlapped by vertical scroll bar.

i inspect the last column using Google chrome inspect element tools and i saw the last column is getting automatically padding-right:2pxi think so its happening by some infragistics library.

is there any way to increase the padding right value or is there any other solution for this problem.

Please help me on this as early as possible.

Thanks

Vivek

Parents
No Data
Reply
  • 23953
    Suggested Answer
    Offline posted

    Hello Viviek,

    Can you report which version of Ignite UI controls you're using. To do this please execute the following code in your browser JavaScript console:

    $.ui.igGrid.version

    We had a fix for this issue sometime ago, but the padding fix which you see should be 17px and not 2px. 

    I want to test it with your specific version in order to see whether our fix is in there or you have an older version.

    Best regards,
    Martin Pavlov
    Infragistics, Inc. 

Children