hi i adding columns to RadGrid on RadButton Click event
all working fine
when i sort the grid with Header Click or When i Filter the grid
the RadGrid disappeared i suspect the columns or removed automatically after that if i click any button to postback the RadGrid appear with dynamic columns but no data inside the rows
this is my code
all working fine
when i sort the grid with Header Click or When i Filter the grid
the RadGrid disappeared i suspect the columns or removed automatically after that if i click any button to postback the RadGrid appear with dynamic columns but no data inside the rows
this is my code
RadGrid1.Columns.Clear()
Dim
bc
As
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(bc)
bc.DataField =
"File Name"
bc.HeaderText =
"File Name"
bc.SortExpression =
"File Name"
'bc.ItemStyle.Width = New Unit(80, UnitType.Pixel)
bc =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(bc)
bc.DataField =
"File Path"
bc.HeaderText =
"File Path"
bc.SortExpression =
"File Path"
RadGrid1.DataSource = profiledatas
RadGrid1.DataBind()
aspx
<
telerik:RadGrid
ID
=
"RadGrid1"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"false"
runat
=
"server"
>
<
MasterTableView
>
<
Columns
>
</
Columns
>
<
ItemStyle
HorizontalAlign
=
"Left"
/>
<
HeaderStyle
HorizontalAlign
=
"Left"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
my RadGrid inside RadAjaxPanel
how to solve this issue