Sorting question

4 posts, 0 answers
  1. David
    David avatar
    274 posts
    Member since:
    Mar 2014

    Posted 29 Sep 2017 Link to this post

    For some reason my grid exhibits strange behavior. On first sort grid sorts as expected, but on second it just shows busy sign.

    My source is following:

    On Load:

        Session("grdPorts") = dtAlternatePorts

    OnNeedDataSource

        grdPorts.DataSource = Session("grdPorts")

    And html:

     <telerik:RadGrid ID="grdPorts" runat="server" style="margin-top:23px; margin-left:10px;margin-right:5px;"
                                            Width="440px" skin="WebBlue"
                                            ShowFooter="false"
                                            AllowSorting="true"
                                            OnNeedDataSource="OnNeedDataSource">      
                                    <ClientSettings Scrolling-AllowScroll ="true" Scrolling-ScrollHeight="705px" />                    
                                    <MasterTableView GroupLoadMode="Client" AutoGenerateColumns="False" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle BackColor="#6D8DAD" ForeColor="White"/>
                                        <ItemStyle CssClass="InnerItemStyle"/>
                                        <AlternatingItemStyle CssClass="InnerAlernatingItemStyle" BackColor="#E3E1E1"/>                                  

                                        <Columns>

                                        <telerik:GridBoundColumn DataField="WiserPortDesc" HeaderText="Port" HeaderStyle-HorizontalAlign="Center"  
                                                                    ItemStyle-Width="280px" ItemStyle-HorizontalAlign="left"/>

                                        <telerik:GridBoundColumn DataField="curval" HeaderText="Value<br/>($M)" HeaderStyle-HorizontalAlign="Center"
                                                                 SortExpression="curval"
                                                                 ItemStyle-HorizontalAlign="Right"
                                                                 ItemStyle-Width="80px" ItemStyle-CssClass="label_SS_8" DataFormatString="{0:N3}"/>                                      

                                        <telerik:GridBoundColumn DataField="Tons" HeaderText="Volume<br/>(ktons)" HeaderStyle-HorizontalAlign="Center"
                                                                 SortExpression="Tons" ItemStyle-HorizontalAlign="Right"
                                                                 ItemStyle-Width="80px" ItemStyle-CssClass="label_SS_8" DataFormatString="{0:N3}"/>

                                        
                                    </Columns>

                                    <NoRecordsTemplate>
                                        <div style="padding: 5px">
                                            No records available.
                                        </div>
                                    </NoRecordsTemplate>

                                </MasterTableView>

                             </telerik:RadGrid>

    Thank you

  2. Eyup
    Admin
    Eyup avatar
    3824 posts

    Posted 04 Oct 2017 Link to this post

    Hello David,

    You can try the troubleshooting suggestions provided in the following post to resolve this issue:
    http://www.telerik.com/forums/adding-templatecolumn-causes-page-controls-to-stop-responding#vceF8yYfUkGNke0j6IsnYg

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. David
    David avatar
    274 posts
    Member since:
    Mar 2014

    Posted 06 Oct 2017 Link to this post

    Hi Eyup,

       The link didn't exactly helped.

       Essentially my problem exists when i have 

                   <telerik:AjaxSetting AjaxControlID="grdPorts">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grdPorts" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>

         If i remove that, sort works fine, but other controls on the page flicker

         Does it help to pinpoint solution?

  4. Vessy
    Admin
    Vessy avatar
    2039 posts

    Posted 11 Oct 2017 Link to this post

    Hi David,

    The provided RadAjaxManager settings look proper and,m unfortunately, cannot lead us to the cause of the problem. Can you verify that there is no other UpdatePanel wrapping the Grid?

    Can you, please, follow the steps the following blog post and send us a runnable sample where we can reproduce the issue and examine the problematic configuration leading to it?
    http://www.telerik.com/blogs/isolating-a-problem-in-a-sample-project

    Thank you in advance for your cooperation.

    Regards,
    Vessy
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top