Event model id to string


My database use a type string to identify an event.
Ex :

string.concat(client.id, "-", event.id);

But when i call Lightbox on event, id field value is “NaN”.
Do you have a solution to resolve this problem?

My model :

[code] public class SchedulerEvent
public SchedulerEvent();

    public string id { get; set; }
    public string color { get; set; }
    public DateTime end_date { get; set; }
    public string Owner { get; set; }
    public string SousSujet { get; set; }
    public DateTime start_date { get; set; }
    public string Sujet { get; set; }
    public string text { get; set; }
    public string textColor { get; set; }


sorry for this inconvenience,
string id won’t work for custom lightboxes.
We’ll fix it in a day or two

Scheduler is updated,
the latest trial can be downloaded from
If you have a commercial version, please post ticket to our support system at http://support.dhtmlx.com, and we will send it to you

Thanks for your update.

But when I try to save event, I use DataAction class.
And if my event’s Id is a string, I obtain an error : “Input string was not in a correct format

Can you help me?

Looks like DataAction also expects id to be a number, we will fix it in the nearest time.
As a temporary workaround, you may try to process action’s parameters and render response manually

[code]public ContentResult Save(int? id, FormCollection actionValues)

    var actionType = DataActionResult.ParseType(actionValues["!nativeeditor_status"]);
    string sourceId = actionValues["id"];
    string targetId = actionValues["id"];

    //do update logic
    //if event was inserted - targetId must be updated by new id value

    var res = Content(string.Format("<data><action type=\"{0}\" sid=\"{1}\" tid=\"{2}\"></action></data>", actionValues["!nativeeditor_status"], sourceId, targetId);
    res.ContentType = "text/xml";
    return res;


I’m also hitting this issue (Id value being n,n instead of just a number) and the update failing. When do you think you will solve this bug?

Are you using latest version of scheduler.net ?
Issue was fixed for sure in Scheduler.Net 2.x

Yes, latest version, downloaded the Evaluation version of December 14th. If you create an ASP.NET MVC project according to the tutorial in the documentation and try to edit an event by dragging or changing the date, you get the error.

The Id form value is xxxx,xxxx where xxxx is a number. If you disregard everything after the comma, the event updates fine.

Hi RajenK,
check your ‘event’ class, it should have ‘id’ property(in lower case)