Hidden Columns showing, also on window resize

5 posts, 0 answers
  1. Rob
    Rob avatar
    27 posts
    Member since:
    Oct 2012

    Posted 24 Jul 2012 Link to this post

    The RadGrid we have implemented on a page is contained within a RadPageView.  Its width is 100% of that space, dynamically growing as the window is resized.

    I've got one GridTemplateColumn that is set to Display=False that is showing at load.  I can't find any programmatic server or client side logic that could be showing it.

    More importantly when the window is resized, other hidden columns are suddenly no longer hidden.  They are set to Display=False at load and can only be shown through the context menu.  It appears it's client-side scripting that is causing it but I've been unable to catch what it is.  I have some custom client side script running as part of client events, but it still happens even if they are not called so it shouldn't be related.

    Has anyone seen this behavior before?

    Thanks for your assistance or comments.
  2. Rob
    Rob avatar
    27 posts
    Member since:
    Oct 2012

    Posted 25 Jul 2012 Link to this post

    I've discovered the problem, or more precisely the markers that are causing the problem.

    I inherited working on this page.  There are hidden (display = false) columns while frozen columns was being used.

    As noted under Unsupported Scenarios (http://www.telerik.com/help/aspnet-ajax/grid-frozen-columns.html), this combination is not supported.

    If there is a solution out there for using both, I'd be interested.  Thanks.
  3. Eyup
    Admin
    Eyup avatar
    3860 posts

    Posted 26 Jul 2012 Link to this post

    Hi Robert,

    I am afraid this is not a supported scenario. I will post a reply to this thread if any news regarding a possible workaround come out in the future.

    Greetings,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  4. Alex
    Alex avatar
    1 posts
    Member since:
    Jul 2019

    Posted 05 Jul Link to this post

    Hello,

    Does anyone know if this unsupported scenario is now supported? If so, what version was it incorporated?

  5. Eyup
    Admin
    Eyup avatar
    3860 posts

    Posted 10 Jul Link to this post

    Hi Alex,

    Yes, there were improvements in this area and this issue was fixed:
    https://feedback.telerik.com/aspnet-ajax/1377611-hidden-columns-are-shown-on-resize-when-the-static-headers-and-frozen-column-are-used

    The frozen columns are working by changing the Display of the columns internally. It is expected for them to show up if there is enough space and the grid repaints. This may lead to this kind of situation.

    We suggest that generally, you use the Visible property instead of Display when using frozen columns. Alternatively, you can hide the column on the client-side:
    function gridCreated(sender, args) {
        var masterTableView = sender.get_masterTableView();
        columnIndex = masterTableView.getColumnByUniqueName("ShipName").get_element().cellIndex;
        setTimeout(function () {
            masterTableView.hideColumn(columnIndex);
        }, 2);
    }


    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top