- Home
- Forum
- ASP.NET MVC
- categorize error
categorize error
Hi,
I need color each appointment in function IdEstado parameter. But when I set the categorize, I get this error. Also I attach an example
Attachment: SyncfusionMvcApplication4_10500c31.zip
I need color each appointment in function IdEstado parameter. But when I set the categorize, I get this error. Also I attach an example
Attachment: SyncfusionMvcApplication4_10500c31.zip
SIGN IN To post a reply.
3 Replies
NR
Nevitha Ravi
Syncfusion Team
April 13, 2018 12:44 PM UTC
Hi Manolo,
Thank you for contacting Syncfusion Support.
We have checked your provided sample and the issue is due to categorize field of appointments is defined as integer whereas allowMultiple property is set to true. We request you to define categorize field in string to overcome the reported issue when allowMultiple of categorizeSettings is true. Or else you can set false to allowMultiple, as you have used only one categorize option for your appointment in order to maintain categorize option in integer. We have modified the shared sample which can be downloaded from the below location.
Kindly modify the below highlighted lines in your sample.
|
List<DataSource> data = new List<DataSource>();
data.Add(new DataSource(11, "Meeting", "", new DateTime(2014, 6, 2, 3, 0, 0), new DateTime(2014, 6, 2, 4, 0, 0), false, false, "1"));
data.Add(new DataSource(12, "Meeting", "", new DateTime(2014, 6, 3, 1, 0, 0), new DateTime(2014, 6, 3, 2, 0, 0), false, false, "2"));
data.Add(new DataSource(13, "Meeting", "", new DateTime(2014, 6, 4, 3, 0, 0), new DateTime(2014, 6, 4, 4, 0, 0), false, false, "3"));
data.Add(new DataSource(14, "Meeting", "", new DateTime(2014, 6, 5, 5, 0, 0), new DateTime(2014, 6, 5, 6, 0, 0), false, false, "2"));
data.Add(new DataSource(15, "Meeting", "", new DateTime(2014, 6, 6, 3, 0, 0), new DateTime(2014, 6, 6, 4, 0, 0), false, false, "1"));
public class DataSource
{
private int id;
private string subject;
private string description;
private DateTime startTime;
private DateTime endTime;
private bool allDay;
private bool recurrence;
private string idEstado;
public DataSource(int id, string subject, string description, DateTime startTime, DateTime endTime, bool allDay, bool recurrence, string idEstado)
{
this.id = id;
this.subject = subject;
this.description = description;
this.startTime = startTime;
this.endTime = endTime;
this.allDay = allDay;
this.recurrence = recurrence;
this.idEstado = idEstado;
}
public int Id
{
get { return id; }
set { id = value; }
}
public string Subject
{
get { return subject; }
set { subject = value; }
}
public string Description
{
get { return description; }
set { description = value; }
}
public DateTime StartTime
{
get { return startTime; }
set { startTime = value; }
}
public DateTime EndTime
{
get { return endTime; }
set { endTime = value; }
}
public bool AllDay
{
get { return allDay; }
set { allDay = value; }
}
public bool Recurrence
{
get { return recurrence; }
set { recurrence = value; }
}
public string IdEstado
{
get { return idEstado; }
set { idEstado = value; }
}
} |
Please try out the above sample and let us know if you need further assistance on this.
Regards,
Nevitha.
MC
Manolo Capdevila
April 19, 2018 09:20 AM UTC
Thanks!
NR
Nevitha Ravi
Syncfusion Team
April 20, 2018 01:51 PM UTC
Hi Manolo,
You are most welcome. Please let us know if you need any assistance we will be always happy to assist you.
Regards,
Nevitha
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
MC Manolo Capdevila
- Apr 12, 2018 04:44 PM UTC
- Apr 20, 2018 01:51 PM UTC