[CLOSED] is it possible to add xtemplate to gridpanel ?

  1. #1

    [CLOSED] is it possible to add xtemplate to gridpanel ?

    i want to use custom css style to apply gridpanel's rows and need paging feature.
    I found xtemplate can apply custom css style, but not found it has paging feature.
    so can add xtemplate as columns to gridpanel? or how to add paging feature to xtemplate ?
    <ext:GridPanel ID="gp_art" runat="server" HideHeaders="True">
            <Store>
                <ext:Store runat="server" ID="s_art" OnReadData="ReadArt">
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="id"></ext:ModelField>
                                <ext:ModelField Name="title"></ext:ModelField>
                                <ext:ModelField Name="addtime"></ext:ModelField>
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
              <ext:XTemplate ID="XTemplate1" runat="server">
                <Html>
                    <tpl for=".">
                        <p>
                            <b>id:</b> {Name}<br/>
                            <b>title:</b> {title}<br/>
                            <b>addtime:</b> {addtime}
                        </p>
                                                
                    </tpl>     
                </Html>
            </ext:XTemplate>
        </ext:GridPanel>
    i try to code above , but how to correct it?
    Last edited by Daniil; Oct 22, 2013 at 2:43 PM. Reason: [CLOSED]
  2. #2
    Hi @hdsoso,

    You might be looking for a DataView:
    https://examples2.ext.net/#/DataView/Basic/With_Paging/

Similar Threads

  1. XTemplate Code Behind
    By manbaul in forum 2.x Help
    Replies: 0
    Last Post: Apr 27, 2013, 1:56 AM
  2. How is an XTemplate if evaluated
    By frostfang in forum 2.x Help
    Replies: 1
    Last Post: Mar 22, 2013, 12:17 AM
  3. ci is undefined, TreeGrid, XTemplate !
    By Mohammad in forum 1.x Help
    Replies: 2
    Last Post: Nov 29, 2011, 9:36 AM
  4. [CLOSED] [1.0] XTemplate and ObjectHolder
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 03, 2010, 1:56 PM
  5. xTemplate and server controls
    By dukefama in forum 1.x Help
    Replies: 0
    Last Post: Aug 17, 2009, 6:57 AM

Posting Permissions