I would like to set some attributes to each group by item when binding the scheduler with appointments, filtered by some criterion.
My aim is to ultimately access this attribute via the DOM to then do further logic.
E.g.
'VB.Net
schedule.GroupBy =
"FoodType"
'Other code...
Private
Sub
schedule_ResourceGroupByItemDataBound(sender
As
Object
, e
As
EventArgs)
Dim
group = e.Item
group.Attributes.Add(
"data-foodtypeid"
, group.Value)
End
Sub
// Example case on the client
function
schedule_Load(sender, args) {
$(
"schedule [data-foodtypeid='1']"
).hide();
}