PDA

View Full Version : [CLOSED] Conversion



majunior
May 27, 2013, 8:05 PM
In version 1.2 I wore


Ext.Net.DateField Ext.Net.DateField a = new ();
a.MonthYearText = "test";

How do I use the 2.2?

Baidaly
May 28, 2013, 1:22 AM
Hello!

It seems that we didn't moved this property to Ext.NET 2.x.

Globally you can change it using the following code:



<script>
Ext.override(Ext.picker.Date, {
monthYearText: 'test',
});
</script>


If you want to change it only for one instance use the following code:



DateField a = new DateField();
a.Listeners.AfterRender.Handler = "this.getPicker().monthBtn.setTooltip('test')";

majunior
May 28, 2013, 2:44 PM
Hello!

It seems that we didn't moved this property to Ext.NET 2.x.

Globally you can change it using the following code:



<script>
Ext.override(Ext.picker.Date, {
monthYearText: 'test',
});
</script>


If you want to change it only for one instance use the following code:



DateField a = new DateField();
a.Listeners.AfterRender.Handler = "this.getPicker().monthBtn.setTooltip('test')";


Ok, and others?

NextText
PrevText
TodayText
TodayTip

Daniil
May 28, 2013, 3:38 PM
We are working on a solution.

majunior
May 28, 2013, 7:56 PM
We are working on a solution.

We work with multilingual, and we are migrating to v2.2 is scheduled for this solution?

Baidaly
May 29, 2013, 3:59 AM
We asked Sencha about this if they wouldn't add required functionality we will add that by ourself. We will inform you as soon as possible.

Daniil
May 29, 2013, 6:07 AM
Generally, we are very near to add this functionality. It is already done on client side, just needs to add a server property. But it will be included to the next release.

For v2.1 we can suggest the following.

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>

<script>
var myPickerOptions = {
monthYearText: "my monthYearText",
nextText: "my nextText",
prevText: "my prevText"
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:DateField runat="server">
<CustomConfig>
<ext:ConfigItem Name="pickerOptions" Value="myPickerOptions" Mode="Raw" />
</CustomConfig>
</ext:DateField>
</form>
</body>
</html>

majunior
May 29, 2013, 1:38 PM
Generally, we are very near to add this functionality. It is already done on client side, just needs to add a server property. But it will be included to the next release.

For v2.1 we can suggest the following.

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>

<script>
var myPickerOptions = {
monthYearText: "my monthYearText",
nextText: "my nextText",
prevText: "my prevText"
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:DateField runat="server">
<CustomConfig>
<ext:ConfigItem Name="pickerOptions" Value="myPickerOptions" Mode="Raw" />
</CustomConfig>
</ext:DateField>
</form>
</body>
</html>


Sorry do not want to be boring, but I'm migrating to v2.2, and must be read in codebehind because I saw the translation database, which expected to launch the rellease?

Daniil
May 29, 2013, 4:50 PM
Sorry do not want to be boring, but I'm migrating to v2.2, and must be read in codebehind because I saw the translation database

Example

<ext:ConfigItem
Name="pickerOptions"
Value="{ monthYearText: 'my monthYearText', nextText: 'my nextText', prevText: 'my prevText' }"
Mode="Raw" />


which expected to launch the rellease?

The next release might appear soon. Do not you want to update for the SVN trunk? We added a DateField's PickerOptions property. It is possible to set up all the required options via that property.