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

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

5 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mooka
Top achievements
Rank 1
Mooka asked on 01 Dec 2009, 07:37 PM

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 



5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 02 Dec 2009, 12:31 PM
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.
0
Mooka
Top achievements
Rank 1
answered on 03 Dec 2009, 02:36 AM

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 
 
0
Accepted
Dimo
Telerik team
answered on 03 Dec 2009, 08:21 AM
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.
0
Mooka
Top achievements
Rank 1
answered on 03 Dec 2009, 02:48 PM

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.
0
Dimo
Telerik team
answered on 03 Dec 2009, 02:58 PM
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.
Tags
Grid
Asked by
Mooka
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Mooka
Top achievements
Rank 1
Share this question
or