PDA

View Full Version : [CLOSED] is it possible to add xtemplate to gridpanel ?



hdsoso
Oct 17, 2013, 3:06 PM
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?

Daniil
Oct 17, 2013, 3:26 PM
Hi @hdsoso,

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