Is there a way to get combination of option 1 and 2. I want entire scheduler to be read only but also like to open the lightbox which is read only. If I go for option 1, I loose lightbox and if I choose option 2, I loose the schedule read only mode which allows users to play with. Of course its not going to save anything but I don’t want to allow that to user.
The reason for this requirement is I have some longer text values which is not properly displayed currently in the scheduler. And if there is a way to allow lightbox to get open in ready only mode user can open the lightbox and read the full text. I also have some other fields that I want to get displayed in lightbox.
Hi,
there is no built-in way, but you can access html of time control and disable visibility of ‘end_time’ pickersscheduler.attachEvent("onLightbox", function(){
var html = scheduler.formSection("time").node;
//somehow manipulate timepicker node
});
Following LightBoxRadio works in Firefox but not in IE. On firefox when user opens light box correct radio button is selected. But on IE none of the radio button is selected. Its always blank radio buttons. Is there any reason why? and also is there any work around
public enum EventType
{
Baseline,
NonBaseline
}
var eventTypeRadio = new LightboxRadio(“event_type”, "Event Type: ");
eventTypeRadio.AddOption(new LightboxSelectOption(EventType.Baseline, EventType.Baseline.ToString()));
eventTypeRadio.AddOption(new LightboxSelectOption(EventType.NonBaseline, EventType.NonBaseline.ToString()));
scheduler.Lightbox.Add(eventTypeRadio);
Thank you for your reply for the previous post but I still struggling finding correct element to disable. I tried using developers tool and inspect html element but not able to find name for end time.
You suggesting disabling end time in following code but how?
scheduler.attachEvent(“onLightbox”, function(){
var html = scheduler.formSection(“time”).node;
//somehow manipulate timepicker node
});
when inspect html element It shows following how can i reach for my target which is end date time?
I managed the disabling end date time part. following is the the code if anyone else needs it.
scheduler.attachEvent("onLightbox", function () {
var html = scheduler.formSection("time").node;
var spans = html.getElementsByTagName("span");
var startFlag = false;
for (var i = 0; i < spans.length; i++) {
alert(spans[i].innerHTML);
if (spans[i].innerHTML == " – ") {
startFlag = true;
}
if (startFlag) {
spans[i].innerHTML = "";
}
}
});
Also Can you reply to my previous post where LightBoxRadio is not working on IE9? more details on my previous reply. thanks
Try setting initial value for the control. It will select related optionvar eventTypeRadio = new LightboxRadio("event_type", "Event Type: ");
...
scheduler.InitialValues.Add("event_type", (int)EventType.Baseline);
Following LightBoxRadio works in Firefox but not in IE. On firefox when user opens light box correct radio button is selected. But on IE none of the radio button is selected. Its always blank radio buttons. Is there any reason why? and also is there any work around
public enum EventType
{
Baseline,
NonBaseline
}
var eventTypeRadio = new LightboxRadio(“event_type”, "Event Type: ");
eventTypeRadio.AddOption(new LightboxSelectOption(EventType.Baseline, EventType.Baseline.ToString()));
eventTypeRadio.AddOption(new LightboxSelectOption(EventType.NonBaseline, EventType.NonBaseline.ToString()));
scheduler.Lightbox.Add(eventTypeRadio);
I did tried the solution you suggested to set default
Hi,
the bug is confirmed, radiobuttons loses its state in readonly form in IE(the same must be happening checkboxes as well)
You may try restoring selection manually, after lightbox is shownscheduler.attachEvent("onLightbox", function(id){
var value = scheduler.getEvent(id).event_type;
scheduler.formSection("event_type").setValue(value);
});
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan