cristianotestai Posted June 25, 2011 Posted June 25, 2011 Hi Farshad, I have two questions: 1) I need a property or field in the class TUniCalendarEvent to keep an identifier which i will use internally to find the record in my TClientDataSet. I see the EventId property, but it is read only. What i can use? 2) There is a way to hide hours in UniCalendarPanel? For example, the hours of 12:00am until 06:00am they are not common activities. These topics are very important for me. Regards. Quote
Administrators Farshad Mohajeri Posted June 28, 2011 Administrators Posted June 28, 2011 1) I need a property or field in the class TUniCalendarEvent to keep an identifier which i will use internally to find the record in my TClientDataSet. I see the EventId property, but it is read only. What i can use? I will add a custom property for this. A pointer to hold user data. Logged #1067 2) There is a way to hide hours in UniCalendarPanel? For example, the hours of 12:00am until 06:00am they are not common activities. I don't know. You can explore Ext JS docs for it and if there is a way for it I will try to implement it. Quote
cristianotestai Posted June 29, 2011 Author Posted June 29, 2011 I will add a custom property for this. A pointer to hold user data. Logged #1067 I don't know. You can explore Ext JS docs for it and if there is a way for it I will try to implement it. Hi, I tried see the docs of Ext.Calendar, but don't found about hide the hours.. Farshad, The property ShowNavBar = False hide All NavBar. I need an option para hide only the button prev and next, or better, have the property ShowPrev and ShowNext para hide/show the buttons. This i need for allow the navigation only by UniCalendar. I found other possible bugs: 1) Bug in OnDayClick Event(Sender: TUniCalendarPanel; ADate: TDateTime; Allday: Boolean), where in my tests the value Time of parameter ADate always is 00:00:00. 2)In "sometimes" in my code in the unibutton: dmSessionModule.cdsAtividade.Delete; dmSessionModule.cdsAtividade.ApplyUpdates(0); Close; or dmSessionModule.cdsAtividade.Cancel; Close; Ocours a "Object O6C7 not found in session list. It could be timed out, refresh page and try again." If i did not put the "Close" statement to close the form, the error never occurs. Tks for attention. Quote
Administrators Farshad Mohajeri Posted July 1, 2011 Administrators Posted July 1, 2011 Hi, I tried see the docs of Ext.Calendar, but don't found about hide the hours.. Farshad, The property ShowNavBar = False hide All NavBar. I need an option para hide only the button prev and next, or better, have the property ShowPrev and ShowNext para hide/show the buttons. This i need for allow the navigation only by UniCalendar. In 0.86 it can be resolved like this: function OnAfterrender(sender) { var aa=document.getElementById(sender.id+'-tb-prev'); var bb=document.getElementById(sender.id+'-tb-next'); if (aa) aa.style.visibility="hidden"; if (bb) bb.style.visibility="hidden"; } I found other possible bugs: 1) Bug in OnDayClick Event(Sender: TUniCalendarPanel; ADate: TDateTime; Allday: Boolean), where in my tests the value Time of parameter ADate always is 00:00:00. Logged #1073 2)In "sometimes" in my code in the unibutton: dmSessionModule.cdsAtividade.Delete; dmSessionModule.cdsAtividade.ApplyUpdates(0); Close; or dmSessionModule.cdsAtividade.Cancel; Close; Ocours a "Object O6C7 not found in session list. It could be timed out, refresh page and try again." If i did not put the "Close" statement to close the form, the error never occurs. Can you provide a Test case for this? 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.