- Home
- Forum
- ASP.NET Core - EJ 2
- Catch dates
Catch dates
Hello, im searching some method to have the start date and the end date of the view , im triying using this:
var startdate = scheduleObj.renderModule.parent.monthModule.renderDates[0];
var endate = scheduleObj.renderModule.parent.monthModule.renderDates[scheduleObj.renderModule.parent.monthModule.renderDates.length - 1];
but when i change the month this variables have the previus month
how can i get this dates??
I think my problem is taht created doesnt eject when i press next buttom
Thanks!!
SIGN IN To post a reply.
7 Replies
1 reply marked as answer
HB
Hareesh Balasubramanian
Syncfusion Team
August 18, 2020 01:54 PM UTC
Hi Jose,
Greetings from Syncfusion Support..!
We have validated your shared query “when i change the month this variables have the previus month” at our end. And we suspect that which changing the Scheduler dates through tabs/button you need to get the start date and end date of the scheduler every time. And for the same, we have prepared a sample using actionComplete event and it can be viewed from the following link.
Code snippet:
|
function onActionComplete(args) {
if (args.requestType == "dateNavigate") {
var maxIndex = this.getCurrentViewDates().length - 1;
var srtDate = this.getCurrentViewDates()[0];
var endDate = this.getCurrentViewDates()[maxIndex];
console.log("StartDate : " + srtDate.toLocaleString() + " and EndDate : " + endDate.toLocaleString());
}
} |
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Hareesh
Marked as answer
Hi Jose,
Greetings from Syncfusion Support..!
We have validated your shared query “when i change the month this variables have the previus month” at our end. And we suspect that which changing the Scheduler dates through tabs/button you need to get the start date and end date of the scheduler every time. And for the same, we have prepared a sample using actionComplete event and it can be viewed from the following link.
Code snippet:
function onActionComplete(args) {if (args.requestType == "dateNavigate") {var maxIndex = this.getCurrentViewDates().length - 1;var srtDate = this.getCurrentViewDates()[0];var endDate = this.getCurrentViewDates()[maxIndex];console.log("StartDate : " + srtDate.toLocaleString() + " and EndDate : " + endDate.toLocaleString());}}
Kindly try the above solution and get back to us if you need any further assistance.Regards,Hareesh
Thanks so much!
I have another problem, when i render the scheduler it does two times and i lost some appoimments , how can i solve it??
Thanks!
HB
Hareesh Balasubramanian
Syncfusion Team
August 21, 2020 06:46 AM UTC
Hi Jose,
Thanks for the update.
We are happy that our solution has been resolved your issue.
Q2: when i render the scheduler it does two times and i lost some appoimments , how can i solve it??
We have validated this query at our end. But unfortunately, we are not able to replicate your reported problem. Kindly share with us more details like use case scenario/Schedule component rendering code/image/video demo/issue replicating sample(if possible) for the better serve.
Regards,
Hareesh
UN
Unknown
Syncfusion Team
August 21, 2020 07:45 AM UTC
I cant but thanks, I thinks is because it loadi n english first and then in my lenguaje,
I have another question , i have a big form with so many component like grids, dropdown... how can i know when all components are load? it is for do a readOnly form
HB
Hareesh Balasubramanian
Syncfusion Team
August 24, 2020 12:11 PM UTC
Hi Jose,
Thanks for the update.
Q1: I cant but thanks, I thinks is because it loadi n english first and then in my lenguaje,
We have validated your query at our end. And for that, we have prepared a sample with the Button component, in that we have changed the Scheduler to “French” culture while click on that button and the events for the Scheduler are rendered properly at our end. And the sample can be downloaded from the below link.
And for further reference, kindly refer the below UG link,
Q2: I have another question , i have a big form with so many component like grids, dropdown... how can i know when all components are load? it is for do a readOnly form
We would like to know you that created event will trigger when the component is completely rendered in the DOM. So we suggest you to use Created event from which you can know Dropdownlist is rendered completely.
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Hareesh
UN
Unknown
Syncfusion Team
August 26, 2020 07:23 AM UTC
Thanks so much I will try!
VM
Vengatesh Maniraj
Syncfusion Team
August 27, 2020 09:10 AM UTC
Hi Jose,
You are most welcome.
Please get back to us if you need any further assistance.
Regards,
Vengatesh
SIGN IN To post a reply.
- 7 Replies
- 3 Participants
- Marked answer
-
UN Unknown
- Aug 17, 2020 09:52 AM UTC
- Aug 27, 2020 09:10 AM UTC