Dear Support,
We are trying telerik RadControls for ASP.NET AJAX,
we have a scenario upon which the rad grid columns are not fixed, i.e. they are loaded at runtime, so we set the following in .aspx page.
and in the .net code, we wrote the following in the Page_Load:
the problem is that the columns' width is not applied, cell wrapping is occurring (as in the attached file). However, if we add only 5 columns to the grid the columns' width is correct as in attached screen shot 2.
Any suggestions are appreciated.
thank you.
We are trying telerik RadControls for ASP.NET AJAX,
we have a scenario upon which the rad grid columns are not fixed, i.e. they are loaded at runtime, so we set the following in .aspx page.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
>
<
MasterTableView
Dir
=
"RTL"
>
</
MasterTableView
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
and in the .net code, we wrote the following in the Page_Load:
If
Not
Page.IsPostBack
Then
Dim
dt
As
DataTable
dt = OpenDT(
"SELECT * FROM my_table "
)
Dim
column1
As
New
GridBoundColumn
Dim
j
As
Integer
For
j = 0
To
10
'dt.Columns.Count - 1
column1 =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(column1)
column1.DataField =
"DataEntryDate"
column1.HeaderText =
"Column "
& j
column1.ItemStyle.Width =
"1000"
Next
j
RadGrid1.DataSource = dt
RadGrid1.DataBind()
End
If
the problem is that the columns' width is not applied, cell wrapping is occurring (as in the attached file). However, if we add only 5 columns to the grid the columns' width is correct as in attached screen shot 2.
Any suggestions are appreciated.
thank you.