PDA

View Full Version : [CLOSED] V2.1 DropDownField readOnly & TriggerIcon



Aurelio
Aug 29, 2012, 5:40 PM
Hi, then set readonly = true the border right of the dropdownfield is not redraw the the TriggerIcon is set..



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

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="">
</ext:ResourceManager>
<ext:Viewport ID="ViewportArticoli" runat="server" Layout="BorderLayout">
<Items>
<ext:FormPanel
ID="FormPanelArticolo"
runat="server"
Region="Center"
Split="true"
Margins="0 5 5 0"
Title="Seleziona un articolo dalla lista"
Width="450" IconPath="Images/32/art32.png" >
<FieldDefaults LabelWidth="90" />
<Items>
<ext:DropDownField ID="DropDownField1" runat="server" MaskRe="[0-9/,|.|/A-Z]" FieldStyle="text-transform:uppercase;" ReadOnly="false"
TriggerIcon="SimpleArrowDown" AnchorHorizontal="-10" MarginSpec="5 5 10 5" FieldLabel="Elenco taglie" >
<Component>
<ext:GridPanel ID="GridPanel1" runat="server" >
<ColumnModel>
<Columns>
<ext:Column runat="server" ID="Column1" DataIndex="TagDes" Align="Left" Flex="1" Text="Taglie articoli" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" Mode="Single" runat="server">
<Listeners>

</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>
</Component>
<Listeners>

</Listeners>
</ext:DropDownField>
<ext:Button ID="Button1" runat="server" Text="ReadOnly False" MarginSpec="5" >
<Listeners>
<Click Handler="enableTaglie(false);" />
</Listeners>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="ReadOnly True" MarginSpec="5" >
<Listeners>
<Click Handler="enableTaglie(true);" />
</Listeners>
</ext:Button>
</Items>
</ext:FormPanel>
</Items>
</ext:Viewport>
</form>
<script type="text/javascript">

function enableTaglie(value) {

DropDownField1.setReadOnly(value);

}
</script>
</body>
</html>



For me i'ts not a problem...for now i leave the triggerIcon.

Thanks
Aurelio

Daniil
Aug 29, 2012, 6:32 PM
Hi,

Thanks for the report.

I think it is a CSS issue. This is reproducible with the sample below.

We will investigate.

Example

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

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:DropDownField
runat="server"
TriggerIcon="SimpleArrowDown"
HideTrigger="true" />
</body>
</html>

Aurelio
Aug 29, 2012, 7:11 PM
OK Daniil...nn problem

Thanks
Aurelio

Daniil
Aug 31, 2012, 8:29 AM
This has been fixed in SVN (the 2.1 branch).

Thanks again for the report.

Aurelio
Aug 31, 2012, 9:50 AM
Hi..Daniil

Work Ok..

Thanks
Aurelio

Aurelio
Sep 02, 2012, 3:50 PM
Hi.Daniil

After the last update of the SVN ..

ExtNet Version
4316
v4.0.30319
V 2.1.0.22152

the problem reappears



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

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />

<ext:DropDownField ID="DropDownField1"
runat="server"
TriggerIcon="SimpleArrowDown"
ReadOnly="true" />
</body>
</html>


The border right of the field is not redraw

Thanks
Aurelio

Daniil
Sep 03, 2012, 7:24 AM
Thanks for the report. We are investigating.

Daniil
Sep 03, 2012, 9:53 AM
Fixed in SVN, please update.

Aurelio
Sep 03, 2012, 10:32 AM
Hi.Daniil

Ok..great work

Thanks
Aurelio