PDA

View Full Version : [CLOSED] [#55] Rendering button fileupload



CarWise
Nov 16, 2012, 11:43 AM

Daniil
Nov 16, 2012, 3:28 PM
Hi Martin,

It looks to be a layout issue.

Please try to call:

#{fuBijlage}.ownerCt.doLayout();

But, probably, the issue should not happen with a proper layout.

CarWise
Nov 19, 2012, 10:19 AM

Daniil
Nov 19, 2012, 2:22 PM
Thank you for the sample.

There is:

hdnNaam.Text = Support.Utils.getKlant("Naam");

I just removed it.

Also please put the server code directly into an ASPX page wrapping in

<script runat="server">

It would be a small help for us (but significant according to amount of examples we have to run everyday).

I was able to get this simplified version of your example:) I think it reproduces the same issue. We are investigating.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:FileUploadField ID="FileUploadField1" runat="server" Hidden="true" />

<ext:Button runat="server" Text="Show">
<Listeners>
<Click Handler="App.FileUploadField1.show();" />
</Listeners>
</ext:Button>
</body>
</html>

CarWise
Nov 19, 2012, 2:36 PM

Daniil
Nov 19, 2012, 2:38 PM
I discovered it has been fixed in ExtJS 4.1.3 (currently, 2.1 branch uses 4.1.2).

So, the issue should go away when we will upgrade our ExtJS sources.

For now, please try one of these workarounds.

Set up

<Button Height="22" />

or


HideMode="Offsets" for the FileUploadField.

Daniil
Nov 19, 2012, 2:40 PM

Daniil
Nov 19, 2012, 2:44 PM
I discovered it has been fixed in ExtJS 4.1.3 (currently, 2.1 branch uses 4.1.2).

So, the issue should go away when we will upgrade our ExtJS sources.

For now, please try one of these workarounds.

Set up

<Button Height="22" />

or


HideMode="Offsets" for the FileUploadField.

Opened an Issue to track this defect, see
https://github.com/extnet/Ext.NET/issues/55

CarWise
Nov 19, 2012, 2:47 PM
Thanx Daniil,

Your workaround solved my issue.

Martin

Daniil
Dec 06, 2012, 3:35 PM
I discovered it has been fixed in ExtJS 4.1.3 (currently, 2.1 branch uses 4.1.2).

So, the issue should go away when we will upgrade our ExtJS sources.

For now, please try one of these workarounds.

Set up

<Button Height="22" />

or


HideMode="Offsets" for the FileUploadField.

The issue is not reproducible anymore after upgrading to ExtJS 4.1.3.


The problem is the fact that PagingToolbar's Change event fires several times and it hides the FileUploadField initially.

This also has been fixed. Now the PagingToolbar's fires just once for each page change.

Daniil
Jan 25, 2013, 12:04 PM
The issue appears to be reproducible with ExtJS 4.2.0 beta 2. Here is a related thread.
http://forums.ext.net/showthread.php?23208