Hi
When I updated to the recent version, I found these two filtering criteria, I did not plan to include them in the grid initially, and therefore, I would like to hide them. How to do that?
Thanks.
Hi mubarak100,
There is nothing you can set on the aspx or code behind to have them hidden automatically. The way that you should do this is to handle filter drop down showing or shown client event on filtering. Then get the drop down target and remove or hide those elements.
regards,
David Young
Hi David
What do I use in the grid? is there is anything that handles the column's filtering criteria?
I tried something like
<code>
// global variable
MouseDownHandler(sender, eventArgs) {
// check if global variable is true
) {
// get column index
columnIndex = collndex; }}
ClientEvents-MouseDown
="MouseDownHandler"
</code>
Hi David,
Can you provide me a sample code to remove "Is Null" and "Is Not Null" from column filtering? I cant find the events you mentioned above. We dont have NULL row entries ,so having "Is Null" and "Is Not Null" doesn't make sense
Also I dont want to customize my filtering for the sake of this.
Thanks
NV
I have the same situation and google for a few days. But no solution found. Finally, I solved with this code. I hope this could be help!<script type="text/javascript"> $(function () { var items = $('.igg_FilterRuleDropDownItem'); $(items).each(function (index, item) { var rule = $(item).text(); switch (rule) { case " Is Null": $(item).hide(); break; case ' Is Not Null': $(item).hide(); break; } }); });</script>