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

UseStaticHeader giving problems with template columns

4 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashwani Bhat
Top achievements
Rank 2
Ashwani Bhat asked on 16 Sep 2008, 01:41 PM
Hi,

We have a grid with template item columns, template header columns and custom filter controls.
Now when i try to set the header as fixed by using UseStaticHeader, the grid is displayed without any rows. There is a thin section at the far left of the grid. If i click on this section the rows of the grid magically appear from somewhere. Its like the rows are pushed somewhere to the far left and another section is displayed in the grid.
I could have pasted the screen shot here but it seems uploading is not supported here.
Any help would be appreciated.

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Sep 2008, 03:20 PM
Hi Saurabh K,

Does this issue happen in all browsers, or just Internet Explorer? It seems like a browser issue to me. Please provide a live URL for us to look at or open a support ticket and send us a runnable example, which reproduces the problem.

Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ashwani Bhat
Top achievements
Rank 2
answered on 17 Sep 2008, 01:40 PM
We were able to pinpoint the cause of the issue. We actually have a master page with the ContentPlaceHolders placed inside a table. Something like:

<table>
    <tr>
        <td>
            <asp:ContentPlaceHolder id="GridSection" runat="server">
            </asp:ContentPlaceHolder>
        </td>
    </tr>
</table>

In the Content pages we set the contents for this section with our custom grid user control.
If we remove this table from the master page it starts working perfectly fine. So this table seems to be causing all the problem.
But the main issue is, why is it that only the grid rows get displaced and why not the whole grid. The grid header and pager and everything is ok except for the table view which is thrown somewhere to extreme left out of the grid and that too, only when we set UseStaticHeader=true.
I think you would be able to replicate this issue easily just by using a table in your master page as above. Let me know in case you have any problems in replicating it and i would upload a demo project to show you what i mean.
Please suggest a solution for this problem.
Thanks in advance.
0
Dimo
Telerik team
answered on 17 Sep 2008, 02:06 PM
Hello Saurabh,

A simple table cannot cause such a major layout problem. There must be something else (e.g. styles).

By the way, please check whether you are using HorizontalAlign anywhere in RadGrid or its parents, I have seen it push the RadGrid data table aside in similar scenarios as yours.

If there are no further clues about the issue, please open a support ticket and send us a runnable example. Thanks.


Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ashwani Bhat
Top achievements
Rank 2
answered on 18 Sep 2008, 11:40 AM
Hi Dimo,

I have logged a support ticket for this issue and the Ticket ID is 162723.

Thanks.
Tags
Grid
Asked by
Ashwani Bhat
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Ashwani Bhat
Top achievements
Rank 2
Share this question
or