I am using customLightBox and I am trying to figure out how to display server side error message on client.
public static ActionResult SaveLightBoxData(FormCollection actionValues, Event evt, SearchModel searchModel)
{
Event updateEvent = StoreInDataBase(evt,searchModel);
DataAction action = new DataAction(actionValues);
action.Type = DataActionTypes.Error;
action.Message = "Custom Message" ;
return (new SchedulerFormResponseScript(action, updateEvent));
}
scheduler.dataProcessor.attachEvent("onAfterUpdate", function (sid, action, tid, tag) {
if (action == "error")
{
dhtmlx.alert(
{
text: tag.text || tag.textContent,
});
}
when I do this, tag.text and tag.textContent are undefined. How Do I display custom error message when using customlightbox using scheduler.net mvc
Thanks
Sid