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

Slider Dissappear when Paging Grid

3 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 23 Oct 2008, 04:48 PM
I have a custom pager for my grid that incorporates a slider control. Problem is when paging, the slider dissappears for a few seconds and then reappears. The grid is in a user control that gets dynamically loaded into an update panel per your sample online. I mention this in case it could be a factor with the problem. Here is my custom pager markup (including the top of my grid):

  <telerik:RadGrid ID="RadGridSummary" runat="server" AllowPaging="True" AllowSorting="True"
        AllowCustomPaging="True" GridLines="None" ShowGroupPanel="True" Skin="Office2007"
        AutoGenerateColumns="false" AlternatingItemStyle-BackColor="#f5f7fa" OnNeedDataSource="RadGridSummary_NeedDataSource"
        OnItemDataBound="RadGridSummary_ItemDataBound" PageSize="10" OnGroupsChanging="RadGridSummary_GroupsChanging">
        <MasterTableView TableLayout="Fixed" OverrideDataSourceControlSorting="true">
            <PagerTemplate>
                <asp:Panel ID="PagerPanel" Style="padding: 6px;" runat="server">
                    <span style="margin-top: 2px; float: left; margin-right: 3px;">Page size:</span>
                    <telerik:RadComboBox ID="RadComboBox1" DataSource="<%# new object[]{10, 20, 30, 40, 50} %>"
                        Style="margin-top: 2px; float: left; vertical-align: baseline; margin-right: 20px;"
                        Skin="Vista" Width="40px" SelectedValue='<%# DataBinder.Eval(Container, "Paging.PageSize") %>'
                        OnClientSelectedIndexChanged="setPageSize" AssignedGrid="RadGridSummary" runat="server">
                    </telerik:RadComboBox>
                    <span style="float: right;">Displaying page
                        <%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>
                        of
                        <%# DataBinder.Eval(Container, "Paging.PageCount")%>, items from
                        <%# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %>
                        to
                        <%# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %>
                        of
                        <%# DataBinder.Eval(Container, "Paging.DataSourceCount")%>.</span>
                    <p style="margin: 0px; padding: 0px; float: left; margin-right: 10px">
                        <asp:Button ID="Button1" runat="server" OnClientClick="changePage('first'); return false;"
                            CommandName="Page" CommandArgument="First" CssClass="PagerButton FirstPage" Text=" << " />
                        <asp:Button ID="Button2" runat="server" OnClientClick="changePage('prev'); return false;"
                            CommandName="Page" CommandArgument="Prev" CssClass="PagerButton PrevPage" Text=" < " />
                        <telerik:RadSlider ID="RadSlider1" runat="server" Skin="Vista" Width="40" MaximumValue="50" />
                        <asp:Button ID="Button3" runat="server" OnClientClick="changePage('next'); return false;"
                            CommandName="Page" CommandArgument="Next" CssClass="PagerButton NextPage" Text=" > " />
                        <asp:Button ID="Button4" runat="server" OnClientClick="changePage('last'); return false;"
                            CommandName="Page" CommandArgument="Last" CssClass="PagerButton LastPage" Text=" >> " />
                        <asp:Panel runat="server" ID="NumericPagerPlaceHolder">
                        </asp:Panel>
                    </p>
                </asp:Panel>
            </PagerTemplate>

Any help would be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 27 Oct 2008, 08:24 AM
Hi Levi,

I'm afraid that I'm unable to recreated this behavior locally with the supplied details. Can you please give us little more information about the scenario and implementation. It will be highly appreciated if you can send us (attached to a formal ticket) small runnable project in which this behavior can be observed. Thus we will be able to debug it locally and provide you with more to-the-point answer.

Kind regards,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Levi
Top achievements
Rank 1
answered on 27 Oct 2008, 06:43 PM
Like most of the problems I have using the Telerik controls, they seem to work fine when in a regular web page, but when used in a dynamically loaded user control i encounter many problems. I have put together a sample project for your convenience. You can access it at:
http://www.seo-informer.com/temp/slider.zip

You will notice when paging, the slider dissappear until the post back returns. This becomes especially noticable when the database queries take a few seconds.

Any help would be greatly appreciated.

Thanks,
Levi
0
Accepted
Rosen
Telerik team
answered on 28 Oct 2008, 10:13 AM
Hello Levi,

Unfortunately I'm still unable to reproduce the behavior which you are describing. I have noticed that you are using .net 3.5, are you using the SP1? If you are using the "original" version you may check this blog post here and see if the mentioned workaround helps.
Also on which browsers behavior can be observed?

Sincerely yours,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Levi
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Levi
Top achievements
Rank 1
Share this question
or