Jump to content

how to use Ext.ux.JalaliDatePlugin in datefiels ext.net


hamintori
 Share

Recommended Posts

Hi Mr. Farshad

i have problem to use Ext.ux.JalaliDatePlugin in datafield in .net

datepicker kar mikone vali ba datefield kar nemikone

code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testext.aspx.cs" Inherits="testext" %>

 

<%@ 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">

<link href="Resources/css/extjs_rtl.css" rel="stylesheet" type="text/css" />

<link href="Resources/css/StyleSheet.css" rel="stylesheet" type="text/css" />

<title></title>

</head>

<body>

<form id="form2" runat="server">

<div>

<ext:ResourceManager ID="resourcemanger1" runat="server">

</ext:ResourceManager>

<ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server"/>

<script src="Resources/Jalali.js" type="text/javascript"></script>

<script src="Resources/JalaliDate.js" type="text/javascript"></script>

<script src="Resources/JalaliDatePlugin.js" type="text/javascript"></script>

<script src="Resources/JalaliDatePlugin-fa_IR.js" type="text/javascript"></script>

<ext:DatePicker ID="DatePicker1" runat="server">

<Plugins>

<ext:GenericPlugin Singleton="true" InstanceName="Ext.ux.JalaliDatePlugin">

</ext:GenericPlugin>

</Plugins>

</ext:DatePicker>

<ext:DateField runat="server" ID="DateField1">

<Plugins>

<ext:GenericPlugin Singleton="true" InstanceName="Ext.ux.JalaliDatePlugin">

</ext:GenericPlugin>

</Plugins>

</ext:DateField>

</div>

</form>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...