Blank screen proglem, after the grid load/update data, when put a FileUploadField in the popup window.

  1. #1

    Blank screen proglem, after the grid load/update data, when put a FileUploadField in the popup window.

    I put a fileuploadfield in a window,
    show blank scren after grid load data.

    <ext:GridPanel>
    <TopBar>
    <ext:Toolbar>
      <Items>
        <ext:Button>
         <Listeners>
          <Click Handler='#{winFileUpload}.Show();' />
         </Listeners>
        </ext:Button>
      </Items>
    </ext:Toolbar>
    </TopBar>
    <Store>
     <ext:Store OnReadData="GetMsg">
      <Proxy>
       <ext:PageProxy/>
      </Proxy>
     </ext:Store>
    </Store>
    <ColumnModel>
     <Columns>
       <ext:RowNumbererColumn />
     </Columns>
    <ColumnModel>
    </ext:GridPanel>
    <ext:Window Title='Upload File' id='winFileUpload'>
     <items>
      <ext:Form>
       <items>
        <ext:FileUploadField />
       </items>
      </ext:Form>
     </items>
    </ext:Window>
    Last edited by fabricio.murta; Aug 09, 2017 at 4:56 PM.
  2. #2
    Hello @Aidan! Welcome to Ext.NET forums!

    I believe the blank page you are getting is because you are defining only the component tags, not even the runat="server" on it. Nothing should be going to work this way. In case you stripped that part out, well, we'd need a runnable test case where we can actually reproduce the issue or else it would be very difficult to be able to help you.

    On a second note, please wrap code you paste between [code][/code] tags. It makes it not only much more readable, but also gives us a convenient feature to copy the text block.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi,

    below code is run currently in v4.2.2, but not available in the lastest version 4.3
    Kindly help me to solve this.
    Thank you.


    <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:GridPanel runat="server" Region="Center">
                        <TopBar>
                            <ext:Toolbar>
                                <Items>
                                    <ext:Button Text="File">
                                        <Listeners>
                                            <Click BroadcastOnBus="winFileUpload" />
                                        </Listeners>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Store>
                            <ext:Store OnReadData="Unnamed_ReadData">
                                <Proxy>
                                    <ext:PageProxy />
                                </Proxy>
                            </ext:Store>
                        </Store>
                        <ColumnModel>
                            <Columns>
                                <ext:RowNumbererColumn />
                                <ext:Column Text="Test" />
                            </Columns>
                        </ColumnModel>
                        <BottomBar>
                            <ext:PagingToolbar />
                        </BottomBar>
                    </ext:GridPanel>
                    <ext:Window runat="server" Hidden="true" Width="200" Height="200">
                        <MessageBusListeners>
                            <ext:MessageBusListener Name="winFileUpload" Handler="this.show();" />
                        </MessageBusListeners>
                        <Items>
                            <ext:FormPanel runat="server">
                                <Items>
                                    <ext:FileUploadField FieldLabel="File Upload" />
                                </Items>
                            </ext:FormPanel>
                        </Items>
                    </ext:Window>
                </Items>
            </ext:Viewport>
  4. #4
    Hello @Aidan!

    Please provide a runnable code sample demonstrating how to reproduce the issue.

    The code sample you provide should include only the minimum amount of code required to reproduce the issue. Code unrelated to the issue is to be removed. Anyone should be able to copy + paste your sample into a local Visual Studio test project and run without having to make modifications.

    Tips for creating simplified code samples

    If Exceptions or syntax errors are thrown when testing your code sample, we'll let you know so you can revise your original sample. Then we'll review again with the updated sample.

    When posting your code samples in the forums, please paste that sample within [CODE] tags. The [CODE] tags will add formatting and syntax highlighting to your sample.

    The following two forum posts provide many excellent tips for posting in the forums:

    1. More Information Required
    2. Forum Guidelines
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Hello @Aidan!

    Just a thought, probably you're misusing the framework and making it break for you. Again, I strongly recommend you reading the forums guidelines to making runnable samples pointed above, please take your time and review those linked forum threads, I'm sure they will help you as a new user. Second, taking a look thru the Examples Explorer can give you a good insight on where to start doing your pages. When you are skilled with base on those examples, then you can fancy new, more custom-tailored examples.

    It may be a good idea to start from an example and make your desired page.

    Anyway, I believe you are triggering the issue above by misusing the PageProxy component/feature. Again, just a thought because you didn't provide a sample with the minimal set of code to allow it to run and probably you suppressed essential bits to reproduce the issue you're talking about. Please review this example using PageProxy as it might be what you need to have your sample working:
    - Grid Panel - ArrayGrid - Page Proxy with Direct Method.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  6. #6
    Hello again @Aidan!

    The last post is still actual. Maybe due to the different handling of the PageProxy shown in the example, the issue is not reproducible there.

    But just by chance, somebody else reproduced something very similar to what you are complaining in a very simple test case and we were able to clearly reproduce this.

    Can you try the solution provided in the similar github issue? There is an override, a javascript code you add to your page to change client-side code behavior for Ext.NET's underlying framework, ExtJS.

    The similar github issue is available at #1527. If the solution/workaround provided there addresses the issue you're facing there as well, let us know and we'll tie this forum thread to that github issue.

    I hope this helps, we're looking forward to your feedback on this issue!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] How to export grid data as it is displayed on screen
    By susanz in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 12, 2014, 7:25 PM
  2. how update a popup window in c#
    By Dharmesh in forum 2.x Help
    Replies: 4
    Last Post: Mar 20, 2013, 4:46 AM
  3. Replies: 2
    Last Post: Jun 23, 2012, 2:17 PM
  4. blank screen using desktop example
    By sony1464 in forum 1.x Help
    Replies: 0
    Last Post: Oct 21, 2010, 3:12 AM
  5. [CLOSED] Load store on window popup
    By CSG in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 10, 2009, 4:01 AM

Posting Permissions