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

[Solved] RadGrid Cuts Off After Filter With No Results

15 Answers 258 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 05 Jun 2009, 07:00 PM
Hey Everyone,

I have a radgrid that is very wide - 50 or so columns.  The majority of the columns have filtering enabled.   If I enter filter criteria that results in no rows the grid gets cut off. I am unable to scroll over to see a good portion of the grid.  If the column I'm trying to filter on is one of the columns that gets cut off I'm unable to re-filter on that column.  I tried upgrading to the latest version of Telerik but the problem persisted.   Has anyone seen this behavior?

Thanks,
Larry

15 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Jun 2009, 06:23 AM
Hi Larry,

I am not sure how to reproduce this problem - the scrollbar appears as expected on my side. Please review the following demo and let me know if I am missing something:

<%@ Page Language="C#" %> 
<%@ Import Namespace="System.Data" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script runat="server"
 
    protected void RadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) 
    { 
        DataTable dt = new DataTable(); 
        DataRow dr; 
        int colsNum = 20
        int rowsNum = 10
        string colName = "Column"
 
        for (int j = 1; j <= colsNum; j++) 
        { 
            dt.Columns.Add(String.Format("{0}{1}", colName, j)); 
        } 
 
        for (int i = 1; i <= rowsNum; i++) 
        { 
            dr = dt.NewRow(); 
 
            for (int k = 1; k <= colsNum; k++) 
            { 
                dr[String.Format("{0}{1}", colName, k)] = String.Format("{0}{1} Row{2}", colName, k, i); 
            } 
            dt.Rows.Add(dr); 
        } 
 
        (sender as RadGrid).DataSource = dt
    } 
     
</script> 
 
<!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"
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
<title>RadControls for ASP.NET AJAX</title> 
</head> 
<body> 
<form id="form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
 
<telerik:RadGrid 
    ID="RadGrid1" 
    runat="server" 
    Width="500px" 
    AllowFilteringByColumn="true" 
    OnNeedDataSource="RadGrid_NeedDataSource"
    <ClientSettings> 
        <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
    </ClientSettings> 
</telerik:RadGrid> 
 
</form> 
</body> 
</html> 


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Larry
Top achievements
Rank 1
answered on 10 Jun 2009, 01:16 PM

Hey Dimo,

 

I'd increase the number of columns to say 50 or so.  Make sure all your columns are visible in the grid.  Then filter on a value that does not exist in the column and see what happens.   I'd pick a column that is towards the end.

HTH,
Larry

0
Yavor
Telerik team
answered on 15 Jun 2009, 07:34 AM
Hi Larry,

I tested the setup locally, and the control behaved as expected.
Attached to this message, you will find the code, which I used for testing. Please, take a look at it and let me know if I am leaving something out.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Larry
Top achievements
Rank 1
answered on 15 Jun 2009, 01:21 PM
Hey Yavor,

Your example definately works.  We create the radgrid programatically. I've attached to code for you to see how we are configuring the grid.  Maybe you might see something that would cause our problem.  In the meantime I'm going to add our configuration settings one at a time to your radgrid to see if I can reproduce the problem.


 

public ReportGrid(string id)

 

{

 

this.ID = id;

 

 

this.Width = Unit.Pixel(950);

 

 

this.Height = Unit.Pixel(650);

 

 

// this.Height = Unit.Pixel(700);

 

 

this.Skin = "Office2007";

 

 

this.AutoGenerateColumns = false;

 

 

this.AllowPaging = true;

 

 

this.AllowSorting = true;

 

 

this.AllowFilteringByColumn = true;

 

 

this.ShowFooter = true;

 

 

this.GroupingEnabled = true;

 

 

this.MasterTableView.ShowGroupFooter = true;

 

 

 

this.ShowGroupPanel = true;

 

 

this.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;

 

 

// this.ClientSettings.AllowGroupExpandCollapse = true;

 

 

this.GroupPanel.Visible = true;

 

 

// this.GroupPanel.Text = "group Here";

 

 

// this.GroupHeaderItemStyle.Height = Unit.Pixel(100);

 

 

this.ClientSettings.AllowDragToGroup = true;

 

 

this.MasterTableView.GroupsDefaultExpanded = false;

 

 

this.MasterTableView.TableLayout = GridTableLayout.Fixed;

 

 

this.MasterTableView.ItemStyle.Wrap = false;

 

 

// this.HeaderStyle.Width = Unit.Pixel(100);

 

 

 

this.ShowStatusBar = true;

 

 

this.GridLines = GridLines.None;

 

 

this.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;

 

 

this.MasterTableView.NoRecordsTemplate = new MyNoRecordsTemplate();

 

 

this.ClientSettings.Scrolling.AllowScroll = true;

 

 

this.ClientSettings.Scrolling.UseStaticHeaders = true;

 

 

this.ClientSettings.Scrolling.SaveScrollPosition = true;

 

 

this.ClientSettings.AllowColumnsReorder = true;

 

 

this.MasterTableView.PageSize = 20;

 

 

this.MasterTableView.AutoGenerateColumns = false;

 

 

this.EnableViewState = true;

 

 

// this.MasterTableView.InsertItemDisplay = GridInsertItemDisplay.Top;

 

 

}

0
Yavor
Telerik team
answered on 17 Jun 2009, 11:33 AM
Hi Larry,

I reviewed the code, and it looks correct. To properly trace the issue, however, you can open a formal support ticket, and send us a small working project, demonstrating your approach. We will review it locally, and get back to you with additional information.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Larry
Top achievements
Rank 1
answered on 17 Jun 2009, 03:35 PM
Hey Yavor,

I was able to reproduce the bug in the project that I was sent.  Basically what caused the bug is when I set "AutoGenerateColumns" to "False", Added 50 GridBoundColumns.   This worked fine but as soon as I added "HeaderStyle-Width" to the GridBoundColumns the bug appeared. I've attached the radgrid definition;

        <telerik:RadGrid   
            ID="RadGrid1"   
            runat="server"   
            Width="950" 
            Height="650" 
            Skin="Office2007" 
            AllowPaging="true" 
            AllowSorting="true"   
            AllowFilteringByColumn="true" 
            ShowFooter="true" 
            GroupingEnabled="true" 
            OnNeedDataSource="RadGrid_NeedDataSource" 
            ShowGroupPanel="true" 
            ShowStatusBar="true" 
            GridLines="None" 
            EnableViewState="true" 
            AutoGenerateColumns="false" 
            > 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView  
             ShowGroupFooter="true" 
             GroupLoadMode="Client" 
             GroupsDefaultExpanded="false" 
             PageSize="20" 
             > 
             <NoRecordsTemplate>There are no records to display....</NoRecordsTemplate> 
             <ItemStyle Wrap="false" /> 
             <Columns> 
                <telerik:GridBoundColumn DataField="Column1" ReadOnly="true" HeaderText="xColumn1" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column2" ReadOnly="true" HeaderText="xColumn2" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column3" ReadOnly="true" HeaderText="xColumn3" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column4" ReadOnly="true" HeaderText="xColumn4" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column5" ReadOnly="true" HeaderText="xColumn5" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column6" ReadOnly="true" HeaderText="xColumn6" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column7" ReadOnly="true" HeaderText="xColumn7" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column8" ReadOnly="true" HeaderText="xColumn8" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column9" ReadOnly="true" HeaderText="xColumn9" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column10" ReadOnly="true" HeaderText="xColumn10" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column11" ReadOnly="true" HeaderText="xColumn11" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column12" ReadOnly="true" HeaderText="xColumn12" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column13" ReadOnly="true" HeaderText="xColumn13" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column14" ReadOnly="true" HeaderText="xColumn14" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column15" ReadOnly="true" HeaderText="xColumn15" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column16" ReadOnly="true" HeaderText="xColumn16" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column17" ReadOnly="true" HeaderText="xColumn17" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column18" ReadOnly="true" HeaderText="xColumn18" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column19" ReadOnly="true" HeaderText="xColumn19" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column20" ReadOnly="true" HeaderText="xColumn20" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column21" ReadOnly="true" HeaderText="xColumn21" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column22" ReadOnly="true" HeaderText="xColumn22" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column23" ReadOnly="true" HeaderText="xColumn23" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column24" ReadOnly="true" HeaderText="xColumn24" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column25" ReadOnly="true" HeaderText="xColumn25" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column26" ReadOnly="true" HeaderText="xColumn26" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column27" ReadOnly="true" HeaderText="xColumn27" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column28" ReadOnly="true" HeaderText="xColumn28" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column29" ReadOnly="true" HeaderText="xColumn29" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column30" ReadOnly="true" HeaderText="xColumn30" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column31" ReadOnly="true" HeaderText="xColumn31" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column32" ReadOnly="true" HeaderText="xColumn32" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column33" ReadOnly="true" HeaderText="xColumn33" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column34" ReadOnly="true" HeaderText="xColumn34" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column35" ReadOnly="true" HeaderText="xColumn35" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column36" ReadOnly="true" HeaderText="xColumn36" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column37" ReadOnly="true" HeaderText="xColumn37" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column38" ReadOnly="true" HeaderText="xColumn38" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column39" ReadOnly="true" HeaderText="xColumn39" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column40" ReadOnly="true" HeaderText="xColumn40" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column41" ReadOnly="true" HeaderText="xColumn41" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column42" ReadOnly="true" HeaderText="xColumn42" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column43" ReadOnly="true" HeaderText="xColumn43" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column44" ReadOnly="true" HeaderText="xColumn44" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column45" ReadOnly="true" HeaderText="xColumn45" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column46" ReadOnly="true" HeaderText="xColumn46" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column47" ReadOnly="true" HeaderText="xColumn47" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column48" ReadOnly="true" HeaderText="xColumn48" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column49" ReadOnly="true" HeaderText="xColumn49" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
                <telerik:GridBoundColumn DataField="Column50" ReadOnly="true" HeaderText="xColumn50" HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="true" AllowSorting="true" ItemStyle-Width="300px" Visible="true"/>  
             </Columns> 
            </MasterTableView> 
            <ClientSettings  
                AllowDragToGroup="true" 
                AllowColumnsReorder="true">  
                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true"/>  
            </ClientSettings> 
     
        </telerik:RadGrid> 
 
0
Yavor
Telerik team
answered on 18 Jun 2009, 11:43 AM
Hi Larry,

Attached to this message, is a small sample, following your code, which behaves as expected.
Please, take a look at it and let me know if this is the expected behavior, or if I am leaving something our.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Larry
Top achievements
Rank 1
answered on 18 Jun 2009, 01:06 PM
Hey Yavor,

I see no difference in the radgrid definition. The only difference I see is in the datasource.   Were you able to reproduce the problem with the radgrid definition I attached?

Thanks,
Larry
0
Larry
Top achievements
Rank 1
answered on 18 Jun 2009, 01:28 PM
Hey Yavor,

I tried your version and I was still able to reproduce the problem in the example you sent me.

Thanks,
Larry
0
Yavor
Telerik team
answered on 22 Jun 2009, 10:26 AM
Hi Larry,

Indeed, the last two columns are cut off in such a scenario. I will escalate the issue to our developers for further investigation! This thread will be updated as new information becomes available.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Josip Jaic
Top achievements
Rank 2
answered on 29 Sep 2009, 10:19 AM
Hi,
I am having same problem with newest release, (2009.2.927.35)
any news about solution?
0
Yavor
Telerik team
answered on 02 Oct 2009, 05:57 AM
Hi Josip,

This issue has not yet been addressed, but will be looked into shortly. I hope that it will be fixed for one of the upcoming versions of the control.

Sincerely yours,
Yavor
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
Yavor
Telerik team
answered on 07 Oct 2009, 11:21 AM
Hello Josip,

I tested the issue with the latest version of the control, and the problem appears to be addressed, and no such behavior was present. You can download the latest version of the controls and give it a try, to let us know if the problem persists at your end.  

Sincerely yours,
Yavor
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
Luca de Candia
Top achievements
Rank 1
answered on 27 Jan 2010, 08:17 PM
Hey Everyone,
I have the same problem of Larry.
My radgrid has 18 columns, and when I enter filter criteria that results in no rows, the grid gets cut off the lastest two columns.
I have this version of telerik: Q3 2009 SP1 (version 2009.3.1208).
This is my code:
<telerik:RadGrid ID="radGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" DataSourceID="objDataSource" 
        AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowAutomaticDeletes="True" 
        GridLines="None" PageSize="100" AllowCustomPaging="True" EnableLinqExpressions="False" 
        OnItemCommand="radGrid_ItemCommand" OnItemCreated="radGrid_ItemCreated" Height="400px" Width="100%" 
         OnInit="radGrid_Init" > 
        <PagerStyle Mode="NumericPages" FirstPageToolTip="<%$ Resources:LocalizedText, FirstPageToolTip %>" 
            PrevPageToolTip="<%$ Resources:LocalizedText, PrevPageToolTip %>" LastPageToolTip="<%$ Resources:LocalizedText, LastPageToolTip %>" 
            NextPageToolTip="<%$ Resources:LocalizedText, NextPageToolTip %>" PageSizeLabelText="<%$ Resources:LocalizedText, PageSizeLabelText %>" 
            PagerTextFormat="<%$ Resources:LocalizedText, PagerTextFormat %>" /> 
        <%--<MasterTableView DataKeyNames="COD_BANCA,COD_TRANSAZIONE" Width="100%" CommandItemDisplay="Top"--%> 
        <MasterTableView DataKeyNames="COD_BANCA,COD_TRANSAZIONE"  CommandItemDisplay="Top" 
            CommandItemSettings-RefreshText="<%$ Resources:LocalizedText, Aggiorna %>" CommandItemSettings-AddNewRecordText="<%$ Resources:LocalizedText, Inserisci %>">  
            <Columns> 
                  
                <telerik:GridEditCommandColumn EditImageUrl="../Images/Modifica.png" ButtonType="ImageButton">  
                    <HeaderStyle Width="80px" /> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn CommandName="Delete" Text="<%$ Resources:LocalizedText, Delete %>" 
                    UniqueName="DeleteColumn" ButtonType="ImageButton" ImageUrl="../Images/Elimina.png">  
                    <HeaderStyle Width="80px" /> 
                </telerik:GridButtonColumn> 
                  
                <telerik:GridDropDownColumn DataField="COD_BANCA" HeaderText="<%$ Resources:ColumnHeaders, COD_BANCA %>" 
                    SortExpression="COD_BANCA" UniqueName="COD_BANCA" ReadOnly="true" ListTextField="COD_BANCA" 
                    ListValueField="COD_BANCA" DataSourceID="bankDataSource" HeaderStyle-Width="150px" > 
                </telerik:GridDropDownColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, COD_TRANSAZIONE %>" 
                    SortExpression="COD_TRANSAZIONE" UniqueName="COD_TRANSAZIONE" DataField="COD_TRANSAZIONE" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox MaxLength="20" ID="txtCodTransaz" runat="server" Text='<%# Bind("COD_TRANSAZIONE") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqCodTransaz" runat="server" ControlToValidate="txtCodTransaz" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>"></asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblCodTransaz" runat="server" Text='<%# Eval("COD_TRANSAZIONE") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, DES_TRANSAZIONE %>" 
                    SortExpression="DES_TRANSAZIONE" UniqueName="DES_TRANSAZIONE" DataField="DES_TRANSAZIONE" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox MaxLength="100" ID="txtDesTransaz" runat="server" Text='<%# Bind("DES_TRANSAZIONE") %>'></asp:TextBox> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblDesTransaz" runat="server" Text='<%# Eval("DES_TRANSAZIONE") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, NUM_GG_LAVORABILI %>" 
                    SortExpression="NUM_GG_LAVORABILI" UniqueName="NUM_GG_LAVORABILI" DataField="NUM_GG_LAVORABILI" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtNumGGLav" runat="server" Text='<%# Bind("NUM_GG_LAVORABILI") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqNumGGLav" runat="server" ControlToValidate="txtNumGGLav" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RegularExpressionValidator runat="server" ID="regExpNumGGLav" ControlToValidate="txtNumGGLav" 
                            ErrorMessage="<%$ Resources:LocalizedText, ErrorNotDecimal %>" ValidationExpression="^\d*[0-9](|,\d*[0-9])?$" 
                            Display="Dynamic"></asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblNumGGLav" runat="server" Text='<%# Eval("NUM_GG_LAVORABILI") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, NUM_TEMPO %>" 
                    SortExpression="NUM_TEMPO" UniqueName="NUM_TEMPO" DataField="NUM_TEMPO"  HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtNumTempo" runat="server" Text='<%# Bind("NUM_TEMPO") %>'></asp:TextBox> 
                        <span id="spNumTempo" style="color: Red;" runat="server"></span> 
                        <asp:RegularExpressionValidator runat="server" ID="regExpNumTempo" ControlToValidate="txtNumTempo" 
                            ErrorMessage="<%$ Resources:LocalizedText, ErrorNotDecimal %>" ValidationExpression="^\d*[0-9](|,\d*[0-9])?$" 
                            Display="Dynamic"></asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblNumTempo" runat="server" Text='<%# Eval("NUM_TEMPO") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, NUM_TEMPO_CASSA %>" 
                    SortExpression="NUM_TEMPO_CASSA" UniqueName="NUM_TEMPO_CASSA" DataField="NUM_TEMPO_CASSA" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtNumTempoCassa" runat="server" Text='<%# Bind("NUM_TEMPO_CASSA") %>'></asp:TextBox> 
                        <span id="spMessageTempo" style="color: Red; margin-right: 3px;" runat="server">  
                        </span> 
                        <asp:RegularExpressionValidator runat="server" ID="regExpNumTempoCassa" ControlToValidate="txtNumTempoCassa" 
                            ErrorMessage="<%$ Resources:LocalizedText, ErrorNotDecimal %>" ValidationExpression="^\d*[0-9](|,\d*[0-9])?$" 
                            Display="Dynamic"></asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblNumTempoCassa" runat="server" Text='<%# Eval("NUM_TEMPO_CASSA") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, NUM_TEMPO_CC %>" 
                    SortExpression="NUM_TEMPO_CC" UniqueName="NUM_TEMPO_CC" DataField="NUM_TEMPO_CC" HeaderStyle-Width="150px"  > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtNumTempoCC" runat="server" Text='<%# Bind("NUM_TEMPO_CC") %>'></asp:TextBox> 
                        <span id="spNumTempoCC" style="color: Red;" runat="server"></span> 
                        <asp:RegularExpressionValidator runat="server" ID="regExpNumTempoCC" ControlToValidate="txtNumTempoCC" 
                            ErrorMessage="<%$ Resources:LocalizedText, ErrorNotDecimal %>" ValidationExpression="^\d*[0-9](|,\d*[0-9])?$" 
                            Display="Dynamic"></asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblNumTempoCC" runat="server" Text='<%# Eval("NUM_TEMPO_CC") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_TARGET_BOC %>" 
                    SortExpression="PRC_TARGET_BOC" UniqueName="PRC_TARGET_BOC" DataField="PRC_TARGET_BOC" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCTargetBoc" runat="server" Text='<%# Bind("PRC_TARGET_BOC") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRCTargetBOC" runat="server" ControlToValidate="txtPRCTargetBoc" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorTargetBoc" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCTargetBoc" Type="Double" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCTargetBoc" runat="server" Text='<%# Eval("PRC_TARGET_BOC") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_TARGET_ATM_TOTEM %>" 
                    SortExpression="PRC_TARGET_ATM_TOTEM" UniqueName="PRC_TARGET_ATM_TOTEM" DataField="PRC_TARGET_ATM_TOTEM" HeaderStyle-Width="150px"  > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCTargetATM" runat="server" Text='<%# Bind("PRC_TARGET_ATM_TOTEM") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRCTargetATM" runat="server" ControlToValidate="txtPRCTargetATM" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorTargetATM" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCTargetATM" Type="Double" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCTargetATM" runat="server" Text='<%# Eval("PRC_TARGET_ATM_TOTEM") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_TARGET_IBK %>" 
                    SortExpression="PRC_TARGET_IBK" UniqueName="PRC_TARGET_IBK" DataField="PRC_TARGET_IBK" HeaderStyle-Width="150px" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCTargetIBK" runat="server" Text='<%# Bind("PRC_TARGET_IBK") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRCTargetIBK" runat="server" ControlToValidate="txtPRCTargetIBK" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorTargetIBK" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCTargetIBK" Type="Double" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCTargetIBK" runat="server" Text='<%# Eval("PRC_TARGET_IBK") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_EFFICENTAMENTO_TEMPO %>" 
                    SortExpression="PRC_EFFICENTAMENTO_TEMPO" UniqueName="PRC_EFFICENTAMENTO_TEMPO"  HeaderStyle-Width="150px" 
                    DataField="PRC_EFFICENTAMENTO_TEMPO">  
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCEffTempo" runat="server" Text='<%# Bind("PRC_EFFICENTAMENTO_TEMPO") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRCEffTempo" runat="server" ControlToValidate="txtPRCEffTempo" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorPRCEffTempo" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCEffTempo" Type="Double" MinimumValue="0" MaximumValue="100"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCEffTempo" runat="server" Text='<%# Eval("PRC_EFFICENTAMENTO_TEMPO") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_EFFICENTAMENTO_CC %>" 
                    SortExpression="PRC_EFFICENTAMENTO_CC" UniqueName="PRC_EFFICENTAMENTO_CC" DataField="PRC_EFFICENTAMENTO_CC" HeaderStyle-Width="150px"  > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCEffCC" runat="server" Text='<%# Bind("PRC_EFFICENTAMENTO_CC") %>'></asp:TextBox> 
                        <span id="spMessageEfficentamento" visible="true" style="color: Red; margin-right: 2px;" 
                            runat="server"></span> 
                        <asp:RequiredFieldValidator ID="reqPRCEffCC" runat="server" ControlToValidate="txtPRCEffCC" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorPRCEffCC" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCEffCC" Type="Double" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCEffCC" runat="server" Text='<%# Eval("PRC_EFFICENTAMENTO_CC") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_EFFICENTAMENTO_CASSA %>" 
                    SortExpression="PRC_EFFICENTAMENTO_CASSA" UniqueName="PRC_EFFICENTAMENTO_CASSA"  HeaderStyle-Width="150px" 
                    DataField="PRC_EFFICENTAMENTO_CASSA">  
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRCEffCassa" runat="server" Text='<%# Bind("PRC_EFFICENTAMENTO_CASSA") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRCEffCassa" runat="server" ControlToValidate="txtPRCEffCassa" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic"></asp:RequiredFieldValidator> 
                        <asp:RangeValidator ID="RangeValidatorPRCEffCassa" runat="server" ErrorMessage="<%$ Resources:LocalizedText, BetwenValue %>" 
                            ControlToValidate="txtPRCEffCassa" Type="Double" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic"></asp:RangeValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRCEffCassa" runat="server" Text='<%# Eval("PRC_EFFICENTAMENTO_CASSA") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnHeaders, PRC_ATTR_VOLUME_OPERATIVO %>" 
                    SortExpression="PRC_ATTR_VOLUME_OPERATIVO" UniqueName="PRC_ATTR_VOLUME_OPERATIVO" HeaderStyle-Width="150px" 
                    DataField="PRC_ATTR_VOLUME_OPERATIVO">  
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtPRC_ATTR_VOLUME_OPERATIVO" runat="server" Text='<%# Bind("PRC_ATTR_VOLUME_OPERATIVO") %>'></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="reqPRC_ATTR_VOLUME_OPERATIVO" runat="server" ControlToValidate="txtPRC_ATTR_VOLUME_OPERATIVO" 
                            ErrorMessage="<%$ Resources:LocalizedText, RequiredFieldValidate %>" Display="Dynamic">  
                        </asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPRC_ATTR_VOLUME_OPERATIVO" runat="server" Text='<%# Eval("PRC_ATTR_VOLUME_OPERATIVO") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings> 
                <EditColumn ButtonType="ImageButton" InsertText="<%$ Resources:LocalizedText, Insert %>" 
                    InsertImageUrl="../Images/Conferma 1.png" UpdateImageUrl="../Images/Conferma 1.png" 
                    CancelImageUrl="../Images/Annulla - 1.png" UpdateText="<%$ Resources:LocalizedText, Update %>" 
                    CancelText="<%$ Resources:LocalizedText, Annulla %>">  
                </EditColumn> 
            </EditFormSettings> 
              
        </MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="True" UseStaticHeaders="true"  /> 
              
        </ClientSettings> 
    </telerik:RadGrid> 

I am missing something or it's a telerik issue?
0
Yavor
Telerik team
answered on 02 Feb 2010, 06:48 AM
Hello Luca,

If the issue is still persisting, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted glitch. We will review it locally, and determine if this is an issue with the control, or whether there are other settings which are causing this behavior.

Sincerely yours,
Yavor
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
Larry
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Larry
Top achievements
Rank 1
Yavor
Telerik team
Josip Jaic
Top achievements
Rank 2
Luca de Candia
Top achievements
Rank 1
Share this question
or