我正在使用visual studio 2010创建屏幕,而且我正在使用ext.net。
我可以从网格面板调用该表,但我需要一个按钮功能。 我有gonderimTipi和konu值的商店和模板名称。我的桌子的pnlDetay面板。
<ext:XTemplate ID="BookTpl" runat="server">
<Html>
<div id="mydiv" class="CSSTableGenerator">
<table style="width: 100%">
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Gönderim Tipi</td>
<td>{gonderimTipi}</td>
</tr>
<tr>
<td>Konu</td>
<td>{konu}</td>
</tr>
<tr>
</table>
</div>
</Html>
</ext:XTemplate>
<ext:ResourceManager ID="ResourceManagerAna" runat="server" />
<ext:FormPanel ID="formPanelNorth" runat="server" BodyPadding="6" Frame="true">
<Items>
<ext:FieldContainer ID="fcAna" runat="server" Layout="HBoxLayout">
<Items>
<ext:TextField ID="txtAra" runat="server" Width="200" PaddingSpec="0 5 0 5" />
<ext:Button ID="btnAra" runat="server" Text="Ara" UI="Primary" Icon="Magnifier">
<Listeners>
<Click Handler="#{BookTpl}.overwrite(#{pnlDetay}.show();" />
<Click Handler="App.pnlDilekce.show(); " />
</Listeners>
</ext:Button>
</Items>
</ext:FieldContainer>
</Items>
</ext:FormPanel>
<ext:Panel ID="pnlDilekce" runat="server" Hidden="true">
<Items>
<ext:Panel ID="pnlDilekceOzet" runat="server" Resizable="true" ResizeHandles="South"
Title="Dilekçe Özeti" TitleAlign="Center" Height="100" Flex="1" />
<ext:Panel ID="pnldilekceIcerik" runat="server" Resizable="true" ResizeHandles="South"
Title="Dilekçe İçerik" TitleAlign="Center" Height="100" Flex="1" />
<ext:Panel ID="pnlDetay" runat="server" Height="400" Flex="1" BodyPadding="7"
BodyStyle="background: #ffffff;">
</ext:Panel>
</Items>
</ext:Panel>
感谢。