I having an issue rebinding and/or clearing the old results in the grid. The code below populates RadGridType. On load returnCourseName return 63 records (confirmed). Then the user selects something on RadGridProduct and this function is launched again, this time returnCourseName returns 21 records (confirmed) but the 63 records are still in RadGridType. All I want to do is clear the grid and send it new results. That all!!!
| <telerik:RadGrid |
| ID="RadGridType" |
| runat="server" |
| AutoGenerateColumns="False" |
| GridLines="None" |
| AllowMultiRowSelection="True" |
| ShowHeader="False" |
| BorderStyle="None" |
| Skin="Web20" |
| ForeColor="#3399CC" |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Names="Verdana" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False"> |
| <AlternatingItemStyle |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| ForeColor="#3399CC" |
| Wrap="True" /> |
| <ItemStyle |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| ForeColor="#3399CC" |
| Wrap="True" /> |
| <MasterTableView |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Names="Verdana" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| Font-Size="11px"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridClientSelectColumn Display="False" UniqueName="columnBlank"> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridBoundColumn |
| DataField="CourseName" |
| UniqueName="colCourseNameSelect" |
| HeaderButtonType="None"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> |
| <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> |
| <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" BackColor="Black" ForeColor="White" /> |
| </MasterTableView> |
| <SelectedItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" ForeColor="Maroon" BackColor="Silver" /> |
| <ClientSettings EnableRowHoverStyle="False"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| public void returnCourseName(string strLocation) |
| { |
| GridItemCollection GDC = RadGridProduct.SelectedItems; |
| RadGridType.DataSource = new List<string>(0); |
| RadGridType.DataBind(); |
| RadGridType.DataSource = clsTraining.returnCourseName(strLocation, GDC); |
| RadGridType.DataBind(); |
| } |
I have a number of pages that all use a given master page.
The master page includes a RadAjaxManager and a LoadingPanel control.
I would like, if it possible to arrange it so, to have /all/ of the controls on the page blocked whenever and AJAX request fires and to have the LoadingPanel displayed.
I know I could modify /each/ page but I'd rather, if possible, have it all managed from the Master Page.
Is such a thing possible?
--
Stuart
