This is a migrated thread and some comments may be shown as answers.

Hidden Columns showing, also on window resize

4 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 24 Jul 2012, 03:14 PM
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.

4 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 25 Jul 2012, 02:19 PM
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.
0
Eyup
Telerik team
answered on 26 Jul 2012, 05:09 PM
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.
0
Alex
Top achievements
Rank 1
answered on 05 Jul 2019, 02:42 PM

Hello,

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

0
Eyup
Telerik team
answered on 10 Jul 2019, 02:16 PM
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.
Tags
Grid
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Eyup
Telerik team
Alex
Top achievements
Rank 1
Share this question
or