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

Columns hidden by default.

4 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jakob Mandery
Top achievements
Rank 1
Jakob Mandery asked on 16 Oct 2008, 11:41 AM
Hello.

I have made a small script that controls the visibility of columns, client side.

To write out columns that should be hidden by default, I set the property Display to false. (As opposed to when Visible is false, where the column wouldn't get rendered at all).

When I choose to display a column, hidden by default, so that the total amount of columns is larger than it was when the page was loaded, one column sticks out, beyond the header and footer.

I find that this is because the colSpan of the header and footer rows' cell, is set to the amount of visible columns during load, and not the total amount of columns in the grid.

Is there a workaround for this?

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Oct 2008, 10:38 AM
Hi Jakob,

I tried to reproduce the issue locally but unfortunately to no avail. Can you please check whether using approach similar to this one (using the client-side API of the grid to show/hide columns) produces the desired result?

If the issue remains, please isolate a working subset of your project and send it attached to a regular support ticket. We will examine your complete code logic in detail and will get back to you with our findings.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jakob Mandery
Top achievements
Rank 1
answered on 20 Oct 2008, 11:40 AM
Hello, Stephen
thank you for your reply.

The main difference is that our implementation uses templates, both for the command row, and the pager.

I have created a sample project, which illustrates the problem I was referring to.

In it I have a rad grid, that has five columns, two visible by default, two hidden by default (Display="false") and one that doesn't get rendered at all (Visible="false").

I programatically add the select columns drop down, in a manner similar to how we do it in live projects.

Note that the scripts are unnecessary complicated for a simple test project, but I thought it was unnecessary to dumb it down.
0
Jakob Mandery
Top achievements
Rank 1
answered on 20 Oct 2008, 11:42 AM
Ops. I didn't read your reply thoroughly and I accidently pressed the submit button.

I will do as you say, and open a support ticket instead.

(That text is of course intended for the ticket)...
0
Sebastian
Telerik team
answered on 20 Oct 2008, 12:06 PM
Hi Jakob,

We will review the example from the support thread you will post and will get back to you with more info on the subject.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Jakob Mandery
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jakob Mandery
Top achievements
Rank 1
Share this question
or