PDA

View Full Version : [CLOSED] [Razor] Add GridView to GridPanel in razor



boris
May 09, 2012, 3:42 PM
Hi, I have code from my old project which have View, GridView, HeaderRows, ... and other components in GridPanel. Does this exists in razor syntax?
Here is example of aspx code:


<ext:GridPanel ID="gp1" runat="server">
...
<View>
<ext:GridView ID="GridView1" runat="server" >
<HeaderRows>
<ext:HeaderRow>
<Columns>
<ext:HeaderColumn>
<Component>
<ext:Label ID="Label1" runat="server"></ext:Label>
</Component>
</ext:HeaderColumn>
</Columns>
</ext:HeaderRow>
<ext:HeaderRow>
<Columns>
<ext:HeaderColumn>
<Component>
<ext:Label ID="Label2" runat="server"></ext:Label>
</Component>
</ext:HeaderColumn>
</Columns>
</ext:HeaderRow>
</HeaderRows>
</ext:GridView>
</View>
</ext:GridPanel>

Can I transform this in razor?
Thanks.

Vladimir
May 09, 2012, 3:49 PM
Syntax is changed, now need to use HeaderItems property of Column
http://examples2.ext.net/#/GridPanel/MultiHeader/Filter/
https://github.com/extnet/Ext.NET.Examples/blob/master/Ext.Net.Examples/Examples/GridPanel/MultiHeader/Filter/Default.aspx

boris
May 09, 2012, 4:13 PM
Thanks!
For some reasons I cant see examples but that is solution for my problem!

Vladimir
May 09, 2012, 4:23 PM
For some reasons I cant see examples

Just clear cache of browser, i guess script of Ext.Net.Examples main page is cached and wrong