Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prashant on Dec 21, 2009 07:32
open dhtmlx forum
date validation and static light box

1) "start dates of events should be lesser than end dates". I think , scheduler should have a default check for it . as well as when I tried below snippet.

var convert = scheduler.date.str_to_date("%d/%m/%Y");
date_object = convert(ev.start_date);


it gave me "date.split is not a function" error.


2) why are we populating the light box form always in the middle. because if resolution is low. user cant even reach to the save button. can we make it dragable?

3)Whenever I tried to load multiple resource. some time it does not merge and gives us LoadXMl error.
Answer posted by Alex (support) on Dec 21, 2009 08:51

>> start dates of events should be lesser than end dates". I think , scheduler should have a default check for it . 

You can set onEventChanged event handler and process the changing of event properties as you need.

scheduler.attachEvent("onEventChanged",function(id,event){

var start = event.start_date;

var end = event.end_date;

/*your code here*/

})

>> it gave me "date.split is not a function" error.

what value do you do you pass into the  convert function ? Please provide the example.

>> why are we populating the light box form always in the middle. because if resolution is low. user cant even reach to the save button. can we make it dragable?

Unfortunately there isn't opportunity to make lighbox draggable

>> Whenever I tried to load multiple resource. some time it does not merge and gives us LoadXMl error.

Please, check that all xml files that you try to load are correct.