Hello,
I am working on a project with a RadGrid that has DetailView.
The RadGrid has a lot of columns.
I want the columns’ width to auto-size by content.
I have the following code:
VB.NET:
ASPX:
When I add the following code, all columns’s width get “squashed”:
How can I solve this?
I have attached video link that shows this issue:
[video link]
Thanks,
Daniel.
I am working on a project with a RadGrid that has DetailView.
The RadGrid has a lot of columns.
I want the columns’ width to auto-size by content.
I have the following code:
VB.NET:
RadGrid1.AllowSorting =
True
adGrid1.MasterTableView.AllowSorting =
True
adGrid1.ClientSettings.Scrolling.UseStaticHeaders =
True
adGrid1.MasterTableView.PageSize = 30
adGrid1.MasterTableView.AllowPaging =
True
adGrid1.AllowPaging =
False
ASPX:
<
style
type
=
"text/css"
>
#RadGrid1Panel, .RadGrid, .RadGrid_Default{
width: 700px !important;
}
</
style
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
MasterTableView-EnableHeaderContextMenu
=
"true"
Height
=
"900px"
Width
=
"700px"
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
></
Scrolling
>
</
ClientSettings
>
</
telerik:RadGrid
>
When I add the following code, all columns’s width get “squashed”:
Dim
tableViewOrders =
New
GridTableView(RadGrid1)
RadGrid1.MasterTableView.DetailTables.Add(tableViewOrders)
How can I solve this?
I have attached video link that shows this issue:
[video link]
Thanks,
Daniel.