Originally Posted by
geoffrey.mcgill
Hi,
Can you post a simplified .aspx sample demonstrating what you trying?
The recommended technique would be using DirectEvents and/or a [DirectMethod].
Thanks geoffrey.mcgill for reply
javascript-----
function Openpopup() {
window.open("Default2.aspx"); }
function callback()
{
__dopostback("")-----------what to write over here
}
-----------------aspx code----------------------
<ext:Viewport ID="Viewport1" runat="server" Layout="border">
<items>
<ext:Panel ID="Panel2" runat="server" Layout="fit" Region="North">
<TopBar>
<ext:Toolbar ID="Toolbar1" Region="North" runat="server" Flat="true">
<Items>
<ext:TextField EmptyText="Search Text Here" ID="txtBasicSearch" runat="server">
</ext:TextField>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
<ext:Panel ID="Panel1" runat="server" Collapsible="true" Layout="accordion" Region="West"
Split="true" Title="Navigation" Width="250">
<Items>
<ext:TreePanel ID="trpBatches" runat="server" AutoScroll="true">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:ImageButton ID="btnCheckIn" runat="server" AlternateText="Accept" ToolTip="Accept"
ImageUrl="~/App_Themes/Blue/images/Icons/CheckIn.PNG" />
<ext:ToolbarSpacer />
<ext:ImageButton ID="btnCheckOut" runat="server" AlternateText="Complete" ToolTip="Complete"
ImageUrl="~/App_Themes/Blue/images/Icons/CheckOut.PNG" OnClientClick="CustomStatus('progressBarMyBatch');" />
<ext:ToolbarSpacer />
<ext:ImageButton ID="btnAutoCheckin" runat="server" AlternateText="Auto Accept Batch"
ToolTip="Auto Accept Batch" ImageUrl="~/App_Themes/Blue/images/Icons/AssignToTeam.PNG" />
<ext:ToolbarFill />
<ext:ImageButton ID="lnkBatchTreePrv" runat="server" Cls="button_Prev" ToolTip="Select Node and go to previous Page" />
<ext:ImageButton ID="lnkBatchTreeNext" runat="server" Cls="button_Next" ToolTip="Select Node and go to Next Page" />
</Items>
</ext:Toolbar>
</TopBar>
<ext:TreePanel>
</Items>
</ext:Panel>
<ext:Panel ID="Panel4" runat="server" Layout="Fit" Region="Center" Title="Result">
<Items>
<ext:GridPanel ID="GridPanel1" runat="server" Layout="fit" StripeRows="true" AutoWidth="true" >
<Store>
<ext:Store ID="Store1" runat="server" AutoDecode="true" SerializationMode="Simple"
AutoDataBind="true" AutoDestroy ="true" >
<Reader>
<ext:JsonReader IDProperty="appID">
<Fields>
<ext:RecordField Name="appID" Type="Auto" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server" AutoDataBind="true" DefaultSortable="false" >
<Columns>
<ext:Column Header="ID" Resizable="true" DataIndex="appID" >
<Commands >
<ext:ImageCommand CommandName ="SelectDocument" Icon="Door" >
<ToolTip Text="Review Document" />
</ext:ImageCommand>
</Commands>
</ext:Column>
</Columns>
</ColumnModel>
<Listeners>
<Command Handler="if(command === 'SelectDocument'){ Openpopup(); }" />
</Listeners>
</ext:GridPanel>
</Items>
</ext:Panel>
<ext:Panel ID="Panel5" runat="server" Collapsible="true" Layout="accordion" Region="East"
Split="true" Title="Work Product" Width="250">
<Items>
</Items>
</ext:Panel>
</items>
</ext:Viewport>
The above code opens up a pop up on ImageCommand
The popup opens and when i close that opoup i am fireing a javascript function on window.onunload(opener.callback()
)
As i have'nt wrote anything in __dopostback() thats y it postbacks the whole page and the page comes to its default state
if i would be using asp controls then i would have put asp:updatepanel which contains grid,now in __dopostback("updatepanel1") so it will only postback the grid and not the whole page
So the same mechanism i want to achive in extjs..how it is possible
Is there any Updatepanel in extjs or any mechanism which will only post back gridpanel and not the whiole page
Ext.net version----ext.net.community.1.0rc1
Plz help me...m all stuck becoze of the above problem
Thanks