Ario.Paxaz Posted November 1, 2023 Share Posted November 1, 2023 Hello Can UnimDatePicker be converted into Jalali calendar? Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 2, 2023 Share Posted November 2, 2023 Hello, Well, first of all, tell us what value are you using? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 2, 2023 Author Share Posted November 2, 2023 Quote ...what value are you using? Because the program is for mobile, I put it on dptEdge. I put it on dptFloated and made the settings related to the Jalali calendar, but the conversion was not done. Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2023 Share Posted November 3, 2023 6 hours ago, Ario.Paxaz said: dptEdge 6 hours ago, Ario.Paxaz said: dptFloated Usually what value do you use? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 I do not understand your question. I display the calendar to the user to get the date. The user selects a date and then I give him information according to the selected date from the database. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2023 Share Posted November 3, 2023 20 minutes ago, Ario.Paxaz said: I display the calendar Can you send a screenshot? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 I sent the output on the computer. If you need, I will also send the output on the mobile phone Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 I have done the settings as per the post below, but Jalali calendar is not displayed. http://forums.unigui.com/index.php?/topic/1202-jalali-calendar/&do=findComment&comment=35004 Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 UnimDatePicker does not have the Kind attribute, like UniDateTimePicker. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2023 Share Posted November 3, 2023 35 minutes ago, Ario.Paxaz said: I have done the settings as per the post below, but Jalali calendar is not displayed. http://forums.unigui.com/index.php?/topic/1202-jalali-calendar/&do=findComment&comment=35004 Well, this is for the desktop version of course. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 Quote Well, this is for the desktop version of course. Yes, I know that they are different. I assumed that they might have inherited from an object. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2023 Share Posted November 3, 2023 Need to investigate. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 Can you guide me to design such a form that is a date selector, what should I use? For example, what should I use to implement the day selector that is clear in the picture? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 I want to leave a combo box for the day, month and year until your review is completed and give it to the customer. But I don't think it will be very beautiful. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 3, 2023 Author Share Posted November 3, 2023 Hi, Please, guide me to use this Solar(Jalali) date selector. https://github.com/ghaninia/persian-picker Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 4, 2023 Author Share Posted November 4, 2023 Hi, I used the following code to give an UniEdit a class name. UniEdit1.ClientEvents.ExtEvents.Values['beforerender'] := 'function beforerender(sender, eOpts){ sender.addClass("date");}'; Put the output photo. DatePicker_Persian.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 4, 2023 Share Posted November 4, 2023 How is it supposed to work in general? Is there a working example? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 4, 2023 Author Share Posted November 4, 2023 39 minutes ago, Sherzod said: How is it supposed to work in general? Is there a working example? It is Persian Date Picker . persian-picker-master.zip Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 4, 2023 Author Share Posted November 4, 2023 I want to use this for now until the check of the UnimDatePicker component is done. https://ghaninia.ir/posts/انتخابگر-تاریخ-شمسی-جاوااسکریپت Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2023 Share Posted November 6, 2023 Hello, Sorry, I somehow couldn't configure this plugin. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2023 Share Posted November 6, 2023 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2023 Share Posted November 6, 2023 @Ario.Paxaz Try, I don't know if this plugin works correctly at all. But as you asked, I was able to show it on UniEdit1. 1. Remove this code: procedure TMainForm.UniFormCreate(Sender: TObject); begin //UniEdit1.ClientEvents.ExtEvents.Values['beforerender'] := // 'function beforerender(sender, eOpts){ sender.addClass("date");}'; end; 2. Remove: function click(sender, eOpts) { // e.preventDefault(); // $.dateSelect.show({ // element: $(this) // }); } 3. CustomCSS: .date-select { z-index: 100000; } 4. CustomFiles: files/persian-date.js files/persian-selector.js files/persian-selector.css https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.11/jquery.mousewheel.min.js 5. UniEdit1.ClientEvents.ExtEvents -> function afterrender(sender, eOpts) { $('#' + sender.inputEl.getId()).on('click', function(e) { e.preventDefault(); $.dateSelect.show({ element: '#' + sender.inputEl.getId() }); }); } Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 6, 2023 Author Share Posted November 6, 2023 Hello, Thanks, it worked on desktop. Where should I write Afterrender for UnimEdit? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2023 Share Posted November 6, 2023 9 minutes ago, Ario.Paxaz said: Where should I write Afterrender for UnimEdit? I don't know if this plugin is adapted for mobile. But you can try to use this event: ... function painted(sender, eOpts) { $('#' + sender.inputElement.getId()).on('click', function(e) { e.preventDefault(); $.dateSelect.show({ element: '#' + sender.inputElement.getId() }); }); } 1 Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 6, 2023 Author Share Posted November 6, 2023 1 hour ago, Sherzod said: I don't know if this plugin is adapted for mobile. Thank you, I will use this plugin for now until UnimDatePicker 's problem is fixed. 1 Quote Link to comment Share on other sites More sharing options...
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.