Jump to content

Recommended Posts

Posted

I Have a Problem With Persian Date in UniGUI

in Windows Application I am Using Farsi Components . ShDate Solutions that the Best for Persian date in Delphi:

http://www.farsicomponents.com/

What is your Opinion Or Best Solution For using in UniGUI about Persian Date Format in Database Controls?

Thanks For your Cnsideraion and Regards!

Posted

Hi! Thanks For Your Fast Reply

1-How About DataBase and DBControls Or When we work with DataBase Fields and Using Controls with DataSource Properties?

2-if We want to Edit Across DBGrid, what solution we can do? can we Render DbGrid Cells with Jalali Calandar DatePicker?

Thanks Again For Your Consideration

Posted

Hi,

 

First you have to do like here: http://forums.unigui.com/index.php?/topic/1202-jalali-calendar/&do=findComment&comment=31758

 

For "Render DbGrid Cells" you can do like this:

 

for example:

columns[4] - dateField

 

UniDBGrid1 -> ClientEvents -> ExtEvents -> reconfigure fn

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
  columns[4].renderer = function(v) {
    var jd = Ext.Date.convertToJalali(v);
                return jd.jalaliYear + '/' +
                        Ext.String.leftPad(jd.jalaliMonth + 1, 2, '0') + '/' +
                        Ext.String.leftPad(jd.jalaliDate, 2, '0');
  }
}

Try...

 

Best regards.

Posted

Thanks For your attention Delphi Developer!

is it possible to open date JalaliDatePlugin-fa when editing DBgrid cell or click on Cell Grid? and send Jalali Date Value From it to DataBase?

With Warm Regards I am await for your response... 

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.

×
×
  • Create New...