|
Title: filter problem Post by: alphasil on May 13, 2015, 10:06:36 AM Hi
I have a datagrid with enabled filter Code: <script type="text/javascript"> and the fields Code: <th field="dia"width="150" sortable="true">Dia</th> How to get value from not null beacuse my db has null and not null values regards Title: Re: filter problem Post by: jarry on May 13, 2015, 03:03:58 PM Please describe your question in more detail.
Title: Re: filter problem Post by: alphasil on May 14, 2015, 06:33:37 AM Hi
I want to use the filter like in this filed Code: <th field="inicio" width="150" sortable="true">Tempos Alocados</th> "Livre" i have all the null values of my database "Ocupado" i have all the non null values of my database Is that possible? Title: Re: filter problem Post by: jarry on May 14, 2015, 08:35:58 AM Please extend a 'notnull' filter operator and then apply it to the filtering action.
Code: <script> Code: field:'inicio', Title: Re: filter problem Post by: alphasil on May 14, 2015, 02:44:32 PM Hi
Thank you I put the code like you told It works but i have to hit refresh to get my result, is that right? The first and second filter doesn't work...why? Code: dg.datagrid('enableFilter', [{Code: <th field="dia"width="150" sortable="true">Dia</th> Title: Re: filter problem Post by: jarry on May 14, 2015, 06:27:58 PM When creating the datagrid, you can set the 'filterRules' property to initialize the filtering action. Please refer to the following code.
Code: $('#dg').datagrid({Title: Re: filter problem Post by: alphasil on May 20, 2015, 05:44:07 AM Hi
Sorry for the delay but i was out. I don't understand what do you mean, put this code where? Regards |