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

Pager in Two Lines

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahdi
Top achievements
Rank 1
Mahdi asked on 18 Nov 2014, 10:28 AM
Hello .
I have Problem with grid.sometimes pager render in two lines and it look like awful.how can I solve this Problem?
I am Using telerik 2013 Q1 SP1.
I attach Picture to this thread .

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 21 Nov 2014, 07:22 AM
Hello Mahdi,

I have tested RadGrid with enabled paging and RTL direction with version 2013 Q1 SP1 (as well as with our latest version), but everything is rendering correctly in all browsers.

Following is the RadGrid that I have tested:
<telerik:RadGrid runat="server" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" AllowPaging="true" MasterTableView-Dir="RTL"
     Skin="Office2007">
</telerik:RadGrid>

And some dummy data:
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    DataTable table = new DataTable();
    table.Columns.Add("ID", typeof(int));
    table.Columns.Add("FirstName", typeof(string));
    table.Columns.Add("LastName", typeof(string));
    table.Columns.Add("Age", typeof(int));
    table.Columns.Add("Date", typeof(DateTime));
    table.Columns.Add("BoolValue", typeof(Boolean));
    for (int i = 0; i < 55; i++)
    {
        table.Rows.Add(i, "FirstName" + i, "LastName" + i, 20 + i, DateTime.Now.AddDays(i), i % 2 == 0);
    }
 
    (sender as RadGrid).DataSource = table;
}

Since the above is working correctly and does not break the pager, for testing purposes only, remove all custom CSS styles that you have on your page and see if the issue will persist, because the problem is most probably related to some custom style that overrides the default layout of the grid.


Best Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Mahdi
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or