COMPOSITE SERVER SIDE CONTROL(gridPanel)
Hi,
I would like to know if there is a way to create a composite server control that includes:
GridPanel, Store, Paging Toolbar in only one server control, that means avoid to declare
First: Store,
Second: GridPanel,
Third: PagingToolbar
I'll like to declare a GridPanel that include these properties for example :
Code:
<ext:GridPanel ID="GridPanel1" runat="server" Header="true" Title="Movements" PagingToolbar="true" PageSize="10">
And for example
Code:
GridPanel.dataSource=List<....>; instead of Store.dataSource
GridPanel.DataBind();
It's posible...??
RE: COMPOSITE SERVER SIDE CONTROL(gridPanel)
Yes, of course. You can extend the GridPanel and add your own new properties. In the setter/getter of those new properties, just set/get the underlying values of Store/PagingToolbar that you want configure.
Hope this helps.