This is a migrated thread and some comments may be shown as answers.

Sorting question

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Iron
Veteran
David asked on 29 Sep 2017, 08:37 PM

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

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Oct 2017, 06:45 AM
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.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 06 Oct 2017, 06:49 PM

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?

0
Vessy
Telerik team
answered on 11 Oct 2017, 12:42 PM
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.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Eyup
Telerik team
David
Top achievements
Rank 1
Iron
Iron
Veteran
Vessy
Telerik team
Share this question
or