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

Header Row does not scroll in ASP.NET MVC

3 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wayde
Top achievements
Rank 1
Wayde asked on 25 Nov 2008, 12:21 PM
I'm using the grid in a ASP.NET MVC application and though I've followed the example on scrolling ... the header row does not scroll.  I've tested this is IE7 and Firefox ... same behavior in both.  The data scrolls horizontally but the headers do not.  I've tried all kinds of things to get it to properly scroll to no avail.

Code:

<telerik:RadGrid ID="RadGrid1" AllowPaging="true" AllowSorting="true" runat="server"
                ShowStatusBar="true" ShowFooter="True" GridLines="None" Width="900px"
                AutoGenerateColumns="false" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true">
                <MasterTableView DataKeyNames="ID" EditMode="InPlace" CommandItemDisplay="Top" Width="99%" >
                    <HeaderStyle Width="200px" />

...

<ClientSettings>
                    <Scrolling AllowScroll="true" UseStaticHeaders="true"   />
                </ClientSettings>
            </telerik:RadGrid>



3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Nov 2008, 01:12 PM
Hi Wayde,

Can you verify if the grid scripts and client object are registered?

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Wayde
Top achievements
Rank 1
answered on 25 Nov 2008, 04:58 PM
I think everything is fine ... here are the .js files I have referenced:

    <script type="text/javascript" language="javascript" src="../../content/scripts/jquery-1.2.6.js"></script>
    <script type="text/javascript" language="javascript" src="../../content/scripts/jquery-ui.js"></script>
    <script type="text/javascript" language="javascript" src="../../content/scripts/MicrosoftAjax.js"></script>
    <script type="text/javascript" language="javascript" src="../../content/scripts/MicrosoftMvcAjax.js"></script>
    <script src="../../Content/Scripts/Grid/RadGridScripts.js" type="text/javascript"></script>

I'm not sure what I'm missing .... I pretty much borrowed everything from the sample asp.net mvc grid demo on the telerik site.  But I can't get it or client-side filtering to work either.

Thanks



0
Vlad
Telerik team
answered on 27 Nov 2008, 07:44 AM
Hi Wayde,

I've made for you small example to illustrate you RadGrid client-side features in MVC project. You can find the example attached.

Best wishes,
Vlad
the Telerik team

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