I am using the latest asp.net for ajax RadGrid (2008.1.619.20) in a dotnetnuke module.
I was just following the tutorial pdf and it said I had to check the enable ajax option but I found on this forum that you have to ajaxify the grid using the updatepanel or the ajaxmanager. However clicking on a header or draggin a header to group the grid still causes a flashing postback of the entire page.
My other module that uses an ajax manager ajaxifies nicely but it does not contain a grid.
Here is a code snippet:
I was just following the tutorial pdf and it said I had to check the enable ajax option but I found on this forum that you have to ajaxify the grid using the updatepanel or the ajaxmanager. However clicking on a header or draggin a header to group the grid still causes a flashing postback of the entire page.
My other module that uses an ajax manager ajaxifies nicely but it does not contain a grid.
Here is a code snippet:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" |
DefaultLoadingPanelID="WedstrijdBeheerLoadingPanel"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadGrid1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadGrid1" |
LoadingPanelID="WedstrijdBeheerLoadingPanel" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel ID="WedstrijdBeheerLoadingPanel" runat="server" Height="75px" |
Width="75px"> |
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
style="border: 0px;" /> |
</telerik:RadAjaxLoadingPanel> |
<asp:SqlDataSource ID="SqlDataSource1" runat="server" |
ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" |
SelectCommand="SELECT * FROM wedstrijd"></asp:SqlDataSource> |
<telerik:RadGrid ID="RadGrid1" runat="server" EnableAjaxSkinRendering="true" AllowPaging="True" |
AllowSorting="True" DataSourceID="SqlDataSource1" GridLines="None" |
ShowGroupPanel="True" Skin="WebBlue"> |
<AlternatingItemStyle BackColor="#E0DFE3" Font-Bold="False" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
Wrap="True" /> |
<PagerStyle Mode="NextPrevAndNumeric" /> |
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ItemID" |
DataSourceID="SqlDataSource1"> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="ItemID" DataType="System.Int32" |
HeaderText="ItemID" ReadOnly="True" SortExpression="ItemID" UniqueName="ItemID"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" |
SortExpression="Title" UniqueName="Title"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="EndDate" DataType="System.DateTime" |
HeaderText="EndDate" SortExpression="EndDate" UniqueName="EndDate"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" |
HeaderText="CreatedDate" SortExpression="CreatedDate" UniqueName="CreatedDate"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MaxEntries" DataType="System.Int32" |
HeaderText="MaxEntries" SortExpression="MaxEntries" UniqueName="MaxEntries"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Antwoord" HeaderText="Antwoord" |
SortExpression="Antwoord" UniqueName="Antwoord"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Antwoord2" HeaderText="Antwoord2" |
SortExpression="Antwoord2" UniqueName="Antwoord2"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Clicks" DataType="System.Int32" |
HeaderText="Clicks" SortExpression="Clicks" UniqueName="Clicks"> |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
<ClientSettings AllowDragToGroup="True"> |
</ClientSettings> |
</telerik:RadGrid> |