Hi,
We need to set different colors for different events based upon a status value (Approve/Reject) dynamically.
We tried the sample on your site.
.Resources(resource =>
{
resource.Add(m => m.OwnerID)
.Title(
"Owner"
)
.DataTextField(
"Text"
)
.DataValueField(
"Value"
)
.DataColorField(
"Color"
)
.BindTo(
new
[] {
new
{ Text =
"Alex"
, Value = 1, Color =
"#f8a398"
} ,
new
{ Text =
"Bob"
, Value = 2, Color =
"#51a0ed"
} ,
new
{ Text =
"Charlie"
, Value = 3, Color =
"#56ca85"
}
});
})
But our requirement is to load datasource for resource dynamically with StatusId and StatusColor.
Thanks,
Jazeel