Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
URGENT! WebDataGrid not sorting or filtering in ajax updatepanel
posted

Hi,

I have this data grid in an updatepanel. The sorting and filtering is not working. I see the loading icon, but the grid is not udpated. To get the sorting working, I attached to the sorted event and then I rebind the grid from the server and it does the trick. Same thing for filtering. As long as I don't post back the updatepanel, the grid is not refreshed.

 This is what I have in the aspx:

<asp:UpdatePanel ID="dataGridUpdPnl" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <ig:WebDataGrid ID="reportDataIGGrd" runat="server" AutoGenerateColumns="false" InitialExpandDepth="0"
                                        InitialDataBindDepth="0" EnableDataViewState="true" OnColumnSorted="ReportData_ColumnSorted"
                                        OnDataFiltered="ReportData_Filtered" DataKeyFields="Report" EnableAjax="true"
                                        AjaxIndicator-Enabled="True" AjaxIndicator-BlockArea="Control" AjaxIndicator-BlockCssClass="ig_AjaxIndicatorBlock"
                                        OnPageIndexChanged="reportDataIGGrd_PageIndexChanged" Height="100%" Width="100%">
                                        <Columns>
                                        </Columns>
                                        <Behaviors>
                                            <ig:Activation Enabled="true" />
                                            <ig:Selection RowSelectType="Multiple" CellClickAction="Row" Enabled="true" />
                                            <ig:Sorting SortingMode="Single" Enabled="true" />
                                            <ig:Filtering Alignment="Top" Visibility="Visible" Enabled="true" AnimationEnabled="true"  />
                                        </Behaviors>
                                        <EmptyRowsTemplate>
                                            <div style="text-align: center;">
                                                <br />
                                                <br />
                                                <img src="~/../Images/attention.png" alt="!" align="middle" />
                                                &nbsp;&nbsp;&nbsp;
                                                <asp:Label ID="noDataLabel" runat="server" Text="No records found." Font-Size="Small"
                                                    ForeColor="#000099" Font-Bold="True">
                                                </asp:Label>
                                            </div>
                                        </EmptyRowsTemplate>
                                        <ErrorTemplate>
                                            <div style="text-align: center; width: 800px;">
                                                <img src="~/../Images/error.png" alt="!" align="middle" />
                                                &nbsp;&nbsp;&nbsp;
                                                <asp:Label ID="errorLabel" runat="server" Text="An error has occurred! Please contact support."
                                                    Font-Size="Small" ForeColor="#CC0000" Font-Bold="True">
                                                </asp:Label>
                                            </div>
                                        </ErrorTemplate>
                                        <ClientEvents Initialize="intializeGrid" />
                                    </ig:WebDataGrid>
                                    <igui:WebResizingExtender ID="reportGridIGResize" runat="server" TargetControlID="reportDataIGGrd" />
                                    <uc1:ReportPagingControl ID="reportPagingCtl" Visible="false" CollectionKey="ReportData"
                                        runat="server" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="refreshBtn" EventName="Click" />
                                    <asp:AsyncPostBackTrigger ControlID="clearAllBtn" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>

 

 

 Thanks

Parents Reply Children
No Data