Jump to content

Jalali (Farsi) DB Date Picker Calendar


mmx110

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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... 

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.

×
×
  • Create New...