hi,
i'm trying to use a radgrid.
I have a grid with 2 colums defined in aspx and by behind code i insert some others colums.
i put the colums in the grid in the correct order.
When i run the page the radgrid is correct but when i make sort and change page the grid loses some colums and shows the colums in a strange way without respect my order.
this is my aspx code:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="sqlDataSource1" AllowPaging="true"
AllowSorting="true" PageSize="15" Width="100%" Height="600px" AutoGenerateColumns="false" >
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView>
<Columns>
<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="alfa" Text="Alfa"/>
<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="delta" Text="Delta"/>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
this is my colums insert :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim bc As Telerik.Web.UI.GridBoundColumn
bc = New Telerik.Web.UI.GridBoundColumn()
bc.DataField = "IDBatch"
bc.HeaderText = "ID batch"
RadGrid1.MasterTableView.Columns.Insert(0, bc)
bc.DataField = "Type"
bc.HeaderText = "Type"
RadGrid1.MasterTableView.Columns.Insert(1, bc)
End Sub
someone can help me?
thanks
i'm trying to use a radgrid.
I have a grid with 2 colums defined in aspx and by behind code i insert some others colums.
i put the colums in the grid in the correct order.
When i run the page the radgrid is correct but when i make sort and change page the grid loses some colums and shows the colums in a strange way without respect my order.
this is my aspx code:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="sqlDataSource1" AllowPaging="true"
AllowSorting="true" PageSize="15" Width="100%" Height="600px" AutoGenerateColumns="false" >
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView>
<Columns>
<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="alfa" Text="Alfa"/>
<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="delta" Text="Delta"/>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
this is my colums insert :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim bc As Telerik.Web.UI.GridBoundColumn
bc = New Telerik.Web.UI.GridBoundColumn()
bc.DataField = "IDBatch"
bc.HeaderText = "ID batch"
RadGrid1.MasterTableView.Columns.Insert(0, bc)
bc.DataField = "Type"
bc.HeaderText = "Type"
RadGrid1.MasterTableView.Columns.Insert(1, bc)
End Sub
someone can help me?
thanks