How to set the correct unit of an event in Unit View?

I have added a unit view provider to my scheduler but it doesn’t render the correct unit per events. All my events is display in the first unit. Why it is not rendering properly? Any Idea?
Below is the image of scheduler:



Below is the correct provider of the event which not inclined with my unit view:

When I create a new event by clicking on the specified unit, my provider in the lightbox is not selected. How can I set the selected provider in the dropdownlist in my lightbox ?

Note: My lightbox is a fully customized.

Maybe UnitsView is configured to use the wrong property of the event,
e.g
var unit = new UnitsView(“Providers”, “provider_id”); - the view will group events by event.provider_id values

Thanks it works!! :smiley: