Last Updated:
21 Dec 2021 09:35
by David Stacey
The horizontal scrollbar is not visible in iOS when the grid is empty.
Code to reproduce the problem:
<style>
html, body, body > form {
height: 100%;
padding: 0;
margin: 0;
}
</style>
...
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" Width="100%"
AutoGenerateColumns="true"
OnNeedDataSource="RadGrid1_NeedDataSource">
<ClientSettings>
<Scrolling AllowScroll="true" />
</ClientSettings>
<MasterTableView Width="1500px">
</MasterTableView>
</telerik:RadGrid>
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
(sender as RadGrid).DataSource = GetData();
}
private object GetData()
{
DataTable dt = new DataTable();
dt.Columns.Add("column1");
dt.Columns.Add("column2");
dt.Columns.Add("column3");
dt.Columns.Add("column4");
dt.Columns.Add("column5");
dt.Columns.Add("column6");
dt.Columns.Add("column7");
dt.Columns.Add("column8");
//dt.Rows.Add(1, 2, 3, 4, 5, 6, 7, 8);
return dt;
}