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

Blank row after the footer. Is it a known bug?

3 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
LamKhoa
Top achievements
Rank 1
LamKhoa asked on 27 Jun 2012, 09:16 PM
Hi,

Attached, pls take a look at my picture. First let me say that for confidential purpose, I have edited the pic by white-out the data rows.
 
As you can see, at the very bottom of the grid, right below the footer, there is a blank, white row. It's happen when I first loaded the page,  selected two dates above and click "View" to populate the grid. It's automatically fixed (The blank row automatically go away) upon subsequent operation on the grid (Refresh, filter, etc). It didn't happen to every project that I'm working on. I have spent tremendous time to compare these projects to find out the cause, but still couldn't. Would you please help?

Thanks

Lamk.

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Jul 2012, 01:57 PM
Hello LamKhoa,

Could you please try to modify the ScrollHeight property and let me know if it helps you? For example:
<ClientSettings>
     <Scrolling ... ScrollHeight="260px" />
</ClientSettings>

Basically, this issue could arise if the grid is located in a container and  there is some disparity within that container. Could you please check out any additional styling which may influence the grid scroll height?

If the problem remains, please open a support ticket and send as a runnable sample application demonstrating the erratic behavior. Thus, we will be able to further analyze the issue and provide a more-to-point solution.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
LamKhoa
Top achievements
Rank 1
answered on 02 Jul 2012, 08:35 PM
I tried like you have suggested (Adding ScrollHeight property), however, the problem is still persisted.
Sorry that I can't upload the code on Telerik. It's contained some sensitive data.

Anyone who got the same problem like I did and have eventually figured out a workaround, please let me know.

Thanks

Lamk
0
LamKhoa
Top achievements
Rank 1
answered on 03 Jul 2012, 06:47 PM
I have found out a way to fix it. It was caused by the Page Size combobox, after I set its visible to false, the blank row is gone as well.  Here is what I did:

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
{   

    if (e.Item is GridPagerItem)

    {

        RadGrid grd = sender as RadGrid
        int PageSize = grd.MasterTableView.PageSize; 
         GridPagerItem pager = (GridPagerItem)e.Item; 
        Label lbl = (Label)pager.FindControl("ChangePageSizeLabel");

        {

            lbl.Text = "<b>Item Per Page: " + PageSize + "</b>";

        }

        RadComboBox PageSizeComboBox = (RadComboBox)pager.FindControl("PageSizeComboBox");

        {

            PageSizeComboBox.Visible = false;

        }

    }
}



With this, user won't be able to change the page size by themselves, however, it does not matter in my case.
Please mark this thread as "Answered"

Thanks
Lamk.
Tags
Grid
Asked by
LamKhoa
Top achievements
Rank 1
Answers by
Eyup
Telerik team
LamKhoa
Top achievements
Rank 1
Share this question
or