Note that there are some explanatory texts on larger screens.

plurals
  1. PO'Communication failure' in ext.net
    primarykey
    data
    text
    <p>I am exporting the grid data to the PDF file by using iTextSharp. I am searching the billno and fetched data is relating on the grid and control( in ext.net). Searching can be in 3 ways: 1. By inserting billno and pressing enter in combo box 2. By inserting billno and click the trigger in combo 3. By Selecting billno from combo Now after that I click on ToPDF button to export data. If I perform 2 &amp; 3, its working fine, but when I perform 1 then a window comes with header <strong><em>Request failure, Status text - communication failure</em></strong>. As the Grid data are exported also, but y this window appears that I m nt getting.</p> <p><strong>My Code is as below</strong> <em><strong>.cs</em></strong></p> <pre><code>protected void ToPDF(object sender, EventArgs e) { //Code } </code></pre> <p><em><strong>.aspx</em></strong></p> <pre><code> &lt;ext:ComponentMenuItem ID="ComponentMenuItem1" runat="server"&gt; &lt;Component&gt; &lt;ext:ComboBox ID="cmbSearchBillno" runat="server" EmptyText="Select Bill No" ForceSelection="true" StoreID="BillMasterStore" DisplayField="Billno" ValueField="BillId"&gt; &lt;Triggers&gt; &lt;ext:FieldTrigger Icon="Search" /&gt; &lt;/Triggers&gt; &lt;Listeners&gt; &lt;SpecialKey Fn="enterKeyPressHandler" /&gt; &lt;/Listeners&gt; &lt;DirectEvents&gt; &lt;%--&lt;SpecialKey OnEvent="enterKeyPressHandler" ShowWarningOnFailure="false" Timeout="60000" StopEvent="true"&gt; &lt;ExtraParams&gt; &lt;ext:Parameter Name="key" Value="e.getKey()" Mode="Raw"&gt; &lt;/ext:Parameter&gt; &lt;ext:Parameter Name="BillNo" Value="this.getText()" Mode="Raw"&gt;&lt;/ext:Parameter&gt; &lt;/ExtraParams&gt; &lt;/SpecialKey&gt;--%&gt; &lt;Select OnEvent="ChangeBillno"&gt; &lt;ExtraParams&gt; &lt;ext:Parameter Name="BillNo" Value="record.id" Mode="Raw"&gt;&lt;/ext:Parameter&gt; &lt;/ExtraParams&gt; &lt;/Select&gt; &lt;TriggerClick OnEvent="SearchBillDetails" &gt; &lt;ExtraParams&gt; &lt;ext:Parameter Name="BillNo" Value="this.getText()" Mode="Raw"&gt;&lt;/ext:Parameter&gt; &lt;/ExtraParams&gt; &lt;/TriggerClick&gt; &lt;/DirectEvents&gt; &lt;/ext:ComboBox&gt; &lt;/Component&gt; &lt;/ext:ComponentMenuItem&gt; </code></pre> <p><strong>ToPDF button</strong></p> <pre><code> &lt;ext:Button ID="btnPdf" runat="server" Text="To PDF" AutoPostBack="true" OnClick="ToPDF" Icon="PageWhiteAcrobat"&gt; &lt;Listeners&gt; &lt;Click Fn="saveData" /&gt; &lt;/Listeners&gt; &lt;/ext:Button&gt; </code></pre> <p><strong>Script</strong></p> <pre><code>&lt;script type="text/javascript"&gt; var enterKeyPressHandler = function (f, e) { if (e.getKey() == e.ENTER) { var billno=this.getText(); Ext.net.DirectMethods.SearchBillno(billno); e.stopEvent(); this.send(); } } var saveData = function () { GridData.setValue(Ext.encode(GridService.getRowsValues({selectedOnly : false,excludeId:true}))); }; &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload