Mostrar / ocultar registro de la tienda de extjs

I got Grid and Chart who shares same store. Also I got some checkboxes (generated by the records from the store) which are suppose to hide/show records from grid and chart so I think that the best way do to id is by hiding/showing the record from the store on select/deselect a checkbox... Is it possible to hide a record from the store when I uncheck specific checkbox and unhide the same record when I check the box ?

preguntado el 08 de noviembre de 11 a las 12:11

can you share details how grid and chart sharing same store -

There are many ways but I'm doing it that way : jsfiddle.net/g2C5j/1 -

1 Respuestas

deberías usar el filterBy method form the store.

store.filterBy(function(rec){
    if (/* verify if the checkbox for this record is checked*/){
     return true;
    } else {
     return false;
    }
})

respondido 08 nov., 11:16

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.