View Full Version : [CLOSED] Problem when setting up PagingToolbar´s HideRefresh

Jun 04, 2012, 9:29 PM
Hi Folks, i have a paged GridPanel. When the GridPanel´s AutoLoad property is set to false and PagingToolbar´s HideRefresh is set to true the refresh button hidden just on the first load of store.

In the following example, the refresh button is hidden when the button _btn is clicked.

1 - View

<ext:ResourceManager runat="server" />
<ext:Button ID="_btn" Text="Load Records" runat="server">
<Click Handler="App.Store1.load();" />
<ext:GridPanel ID="GridPanel1" runat="server" Title="Employees" Frame="true" Height="300">
<ext:Store ID="Store1" runat="server" RemoteSort="true" AutoLoad="false" PageSize="5">
<ext:AjaxProxy Url="/Example/LoadRecords">
<ActionMethods Read="GET" />
<ext:JsonReader Root="data" TotalProperty="total" />
<ext:Model ID="Model1" runat="server">
<ext:ModelField Name="ID" />
<ext:ModelField Name="Name" />
<ColumnModel ID="ColumnModel1" runat="server">
<ext:Column ID="Column1" runat="server" Text="ID" DataIndex="ID" />
<ext:Column ID="Column2" runat="server" Text="Name" DataIndex="Name" />
<ext:PagingToolbar ID="PagingToolbar1" runat="server" HideRefresh="true" />

2 - Controler

public StoreResult LoadRecords(int start, int limit, string sort, string filter)

IList<Person> lst = new List<Person>();
for (int index = start; index < limit; index++)
lst.Add(new Person
ID = index,
Name = "Name" + index

return new StoreResult
Data = lst,
Total = 90

3 - Entity

public class Person
public int ID { get; set; }

public string Name { get; set; }

public Nullable<int> SubEntityID { get; set; }

it´s possible to overcome this issue by hiding the refresh button before rendering the PagingToolbar.

<ext:PagingToolbar ID="PagingToolbar1" runat="server" HideRefresh="true">
<BeforeRender Handler="this.getComponent('refresh').hidden = true;" />

but i think that the button should not me visible without any modification.

Thanks in advance

Jun 05, 2012, 1:14 PM

Thanks for the report. Fixed in SVN, revision #4069.

Jun 05, 2012, 1:54 PM
Thank you Daniil, please mark it as resolved.