Sep 29, 2009, 5:02 AM
Several error in PropertyGrid
I have the next property grid:
1-. If I define in the editor a combobox when it runs my application I select a value from the combo, the value is set correctly but if I click again in the field the value is lost.
2-. If I use regular expression in a textfield, it never show the value I introduced, always shows "" (if I remove the property Regex works fine)
Can you help me please?
Thanks a lot!
<ext:PropertyGrid ID="PropertyGridReservation" Width="500" Height="300" Title="contexto" runat="server" >
<Source>
<ext:PropertyGridParameter Name="<%$ Resources: Reservation_DepartAgenceCode %>" >
<Editor>
<ext:ComboBox ID="cmbReservationDepartAgenceCode" Width="150" HideLabel="true"
runat="server" StoreID="storeReservationDepartAgenceCode" DisplayField="Name" SelectOnFocus="true"
ValueField="Id" TypeAhead="false" ForceSelection="false" MinChars="1" HideTrigger="true"
EmptyText="<%$ Resources: cbEmptyText %>" Resizable="false" ValueNotFoundText="<%$ Resources: cbEmptyText %>" />
</Editor>
</ext:PropertyGridParameter>
<ext:PropertyGridParameter Name="<%$ Resources: Reservation_DepartHeure %>" Value="" >
<Editor>
<ext:TextField ID="TextFieldReservationDepartHeure" runat="server" Regex="<%$ Resources:RegularExpressions, RegExTime %>" />
</Editor>
</ext:PropertyGridParameter>
</Source>
</ext:PropertyGrid>
</PRE>I have found two errors:1-. If I define in the editor a combobox when it runs my application I select a value from the combo, the value is set correctly but if I click again in the field the value is lost.
2-. If I use regular expression in a textfield, it never show the value I introduced, always shows "" (if I remove the property Regex works fine)
Can you help me please?
Thanks a lot!