mmx110 Posted May 13, 2016 Posted May 13, 2016 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! Quote
Sherzod Posted May 13, 2016 Posted May 13, 2016 Hi, For now can you try this ?!: http://forums.unigui.com/index.php?/topic/1202-jalali-calendar/&do=findComment&comment=31758 Best regards. Quote
mmx110 Posted May 13, 2016 Author Posted May 13, 2016 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 Quote
Sherzod Posted May 13, 2016 Posted May 13, 2016 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. Quote
mmx110 Posted May 13, 2016 Author Posted May 13, 2016 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.