COMPOSITE SERVER SIDE CONTROL(gridPanel)

  1. #1

    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 :
    
    
    
    <ext:GridPanel ID="GridPanel1" runat="server" Header="true" Title="Movements" PagingToolbar="true" PageSize="10">
    And for example

    GridPanel.dataSource=List<....>; instead of Store.dataSource
    
    GridPanel.DataBind();

    It's posible...??


  2. #2

    RE: COMPOSITE SERVER SIDE CONTROL(gridPanel)

    It's posible...??
    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.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Create web server control (composite control)
    By mmmartins in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 13, 2011, 6:18 PM
  2. Replies: 1
    Last Post: Nov 01, 2010, 9:00 PM
  3. Replies: 2
    Last Post: Apr 20, 2010, 1:50 PM
  4. Replies: 6
    Last Post: Sep 01, 2009, 1:06 PM
  5. Replies: 2
    Last Post: Oct 07, 2008, 9:05 AM

Posting Permissions