PDA

View Full Version : [CLOSED] Chooser File



imaa
Nov 25, 2013, 11:19 PM
Dear,
I'm trying using the sample in


http://examples2.ext.net/#/DataView/Advanced/Chooser/

and add on it 2 buttons in InfoPanel.ascx as this


</tpl>
<div class="details-info">
<b>:أسم الجلسة</b>
<span>{name}</span>
<b>:تاريخ الجلسة</b>
<span>{name}</span>
<b>:وقت الجلسة</b>
<span>{sizeString}</span>
<b>:مدة الجلسة</b>
<span>{sizeString}</span>
<ext:Button ID="Button1" runat="server" Width="200" Text="موافق"></ext:Button>
<ext:Button ID="Button2" runat="server" Width="200" Text="رفض"></ext:Button>
</div>
</tpl>

but buttons Don't show in InfoPanel.ascx
any idea about that,
you cas see attchmen to have idea about what i'm trying to do

Thank you in advance

Baidaly
Nov 26, 2013, 12:56 AM
Hello!

You shouldn't insert Components inside Tpl, it shall contain only HTML markup. However, you can insert you buttons into Buttons collection:


<ext:Panel ID="ImgDetailPanel" runat="server"
Width="150"
Region="East"
Split="true"
MinWidth="150">
<CustomConfig>
<ext:ConfigItem Name="loadRecord" Value="function(image){
this.body.hide();
this.tpl.overwrite(this.body, image.data);
this.body.slideIn('l', {
duration: 250
});}"
Mode="Raw" />
</CustomConfig>
<Tpl>
<Html>
<div class="details">
<tpl for=".">
<tpl if="!Ext.isIE6">
<img src="{url}" />
</tpl>
<tpl if="Ext.isIE6">
<div style="width:74px;height:74px;filter:progid:DXImageTransf orm.Microsoft.AlphaImageLoader(src="{url}")"></div>
</tpl>
<div class="details-info">
<b>File Name:</b>
<span>{name}</span>
<b>File URL:</b>
<span><a href="{url}" target="_blank">{name}</a></span>
<b>Size:</b>
<span>{sizeString}</span>
</div>
</tpl>
</div>
</Html>
</Tpl>
<Buttons>
<ext:Button runat="server" Text="My Button 1" />
<ext:Button runat="server" Text="My Button 2" />
</Buttons>
</ext:Panel>