Column size problem with AllowFilteringByColumn, AllowScroll, and UseStaticHeaders = TRUE

6 posts, 1 answers
  1. Mooka
    Mooka avatar
    16 posts
    Member since:
    Aug 2006

    Posted 01 Dec 2009 Link to this post


    Hi All,

    I have this problem with the grid on IE8 when UseStaticHeaders, AllowScroll and AllowFilteringByColumn are set to true. It causes the filter fields to be offset to the right when using the Internal Build 1129.35. I don't know if its occurring in earlier builds. It does not occur under IE8 compatibility mode.

     <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="SelfService.test" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <title></title>  
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <asp:ScriptManager ID="sc1" runat="server">  
        </asp:ScriptManager> 
        <div> 
          
            <telerik:RadGrid ID="gridSearchGroup" runat="server" AutoGenerateColumns="false" Width="100%" EnableLinqExpressions="false" AllowFilteringByColumn="true">  
                <ClientSettings> 
                    <Scrolling AllowScroll="true"  UseStaticHeaders="true"></Scrolling> 
                     
                </ClientSettings> 
                <MasterTableView  Width="100%" > 
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Group Name" DataField="Name"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Description" DataField="Description" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 
        </div> 
        </form> 
    </body> 
    </html> 

    Public Partial Class test  
        Inherits System.Web.UI.Page  
     
        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
     
     
            gridSearchGroup.DataSource = New Object() {}  
            gridSearchGroup.DataBind()  
     
     
        End Sub 
     
    End Class 



  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 02 Dec 2009 Link to this post

    Hi Mooka,

    The provided example works correctly on my side. Do you have any other settings somewhere, e.g. in an ASP.NET theme? Obviously this is not the complete example, as you are using the Simple skin, which is not stated in the RadGrid declaration.

    I suggest you to send a complete runnable example.

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mooka
    Mooka avatar
    16 posts
    Member since:
    Aug 2006

    Posted 02 Dec 2009 Link to this post


    Thanks for responding Dimo.

    This is all the code there is for this test page. I am using a theme by way of cookie on my master page but that is not included as part of this example.

    I mixed up my wording on the problem. It occurs under IE 8 compatability mode only or when using this tag:

    <

     

    meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

     


    Both IE7 and IE8 do not exhibit this problem.

    You should be able to open up in IE 8 and toggle compatabiliy mode on and off to see it.

    This is the code for a brand new project:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <title></title>  
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
            <Scripts> 
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            </Scripts> 
              
        </telerik:RadScriptManager> 
           
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager> 
        <div> 
      <telerik:RadGrid ID="gridSearchGroup" runat="server" AutoGenerateColumns="false" Width="100%" EnableLinqExpressions="false" AllowFilteringByColumn="true">     
                <ClientSettings>    
                    <Scrolling AllowScroll="true"  UseStaticHeaders="true"></Scrolling>    
                        
                </ClientSettings>    
                <MasterTableView  Width="100%" >    
                    <Columns>    
                        <telerik:GridBoundColumn HeaderText="Group Name" DataField="Name"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">     
                        </telerik:GridBoundColumn>    
                        <telerik:GridBoundColumn HeaderText="Description" DataField="Description" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">     
                        </telerik:GridBoundColumn>    
                    </Columns>    
                </MasterTableView>    
            </telerik:RadGrid>    
             
        </div> 
        </form> 
    </body> 
    </html> 
     
    Imports Telerik.Web.UI  
     
    Partial Class _Default  
        Inherits System.Web.UI.Page  
     
        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
     
            gridSearchGroup.DataSource = New Object() {}  
            gridSearchGroup.DataBind()  
     
        End Sub 
     
       
    End Class 
     
  5. Answer
    Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 03 Dec 2009 Link to this post

    Hi Mooka,

    Now I see. We identified the problem and fixed it. Changes will take effect in the next internal build and the Q3 2009 SP1 release (due next week). Thank you. Your Telerik points have been updated.

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Mooka
    Mooka avatar
    16 posts
    Member since:
    Aug 2006

    Posted 03 Dec 2009 Link to this post


    Thank you so much Dimo. I can't express enough the benefit your products have provided me. I've gone thru all your competitors and only wish I tried Telerik first.
  7. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 03 Dec 2009 Link to this post

    Hi Mooka,

    Thank you for your kind words :) We are happy that your experience with Telerik RadControls is so positive.

    Greetings,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017