Page 1 of 1

Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 11:42 am
by ars_adnovate
Hi there,

In Sch.model.Event (http://www.bryntum.com/docs/touch-sched ... odel.Event) it would be great to have additional Visible field and setVisible(), isVisible() methods which are bound to view
or at least could anyone please give a clue how to emulate this behaviour in a correct manner.

Thanks.

Re: Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 12:06 pm
by mats
Remember, the Sch.model.Event is a *data* class - it has no clue about being visible or not. What are you trying to achieve?

Re: Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 1:53 pm
by ars_adnovate
Well, not really data, because it already contains Cls class.

I'm just trying to show/hide a specific event without removing the whole record from store.

Re: Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 1:57 pm
by mats
Filter the store then, or use the Cls field to achieve what you need. Very easy :)

Re: Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 1:59 pm
by ars_adnovate
Filter store ? Could you please point on the correct property/method/class ?

Re: Sch.model.Event visibility support

Posted: Thu Mar 12, 2015 2:14 pm
by mats