Hi!
I have a problem when manuelly setting DataSource of my Grid. I habe a Tabstrip where the first tabs are used to add an remove articles to an articlelist, the last tab should display the ordered Articles in the Grid. The Problem is when i click the Tab(Article Summary) the datasource of the grid changes properly but the Grid still displays the old items.
here are my code snippets
Master Page Declaration
Ajax Settings
DataBinding
I hope somebody can help me with this issue.
Greetings
Martin
I have a problem when manuelly setting DataSource of my Grid. I habe a Tabstrip where the first tabs are used to add an remove articles to an articlelist, the last tab should display the ordered Articles in the Grid. The Problem is when i click the Tab(Article Summary) the datasource of the grid changes properly but the Grid still displays the old items.
here are my code snippets
Master Page Declaration
<telerik:RadGrid ID = "SummaryGrid" |
runat="server" |
PageSize="10" |
AllowSorting="true" |
AllowPaging="true" |
AllowMultiRowSelection="false" |
AutoGenerateColumns="false" |
GridLines="None" |
OnNeedDataSource="SummaryGridNeedsData" |
Skin="Telerik"> |
<PagerStyle Mode="NumericPages" /> |
<MasterTableView GroupLoadMode="Client" TableLayout="Fixed"> |
<Columns> |
some columms |
</Columns> |
<NoRecordsTemplate> |
<div>There are no articles to Display</div> |
</NoRecordsTemplate> |
</MasterTableView> |
<ClientSettings AllowGroupExpandCollapse="true" ReorderColumnsOnClient="true" AllowColumnsReorder="true" AllowDragToGroup="true"> |
<Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" |
ResizeGridOnColumnResize="False"></Resizing> |
</ClientSettings> |
</telerik:RadGrid> |
Ajax Settings
<telerik:RadAjaxManagerProxy runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="TabStrip"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="TabStrip" /> |
<telerik:AjaxUpdatedControl ControlID="MultiPage" /> |
<telerik:AjaxUpdatedControl ControlID="SummaryGrid"/> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="SummaryGrid"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="SummaryGrid" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManagerProxy> |
DataBinding
SummaryGrid.DataSource = String.Empty; |
List<PriceRow> pricelist = GetItems(); |
if (pricelist != null) |
SummaryGrid.DataSource = pricelist; |
Greetings
Martin