I want to hide / remove some below condition options from filter menu,
Next Month and Next year.
Please provide me sample code for this settings.
Hi Sridhar,
My suggestion is to use the conditionList option that determines which conditions to be displayed for a given column.
Another solution is to handle the dropDownOpening event to remove any condition selectively.
I have created and attached a small sample for your reference. Please test it on your side and let me know whether it helps you achieve your requirement.
1682.Sample.zip
Hi, could you please give us a solution to remove the filters in Ignite UI 2220.1
I am not finding the dropdown grid_dd_SellStartDate once i change the references from 2015.1 to 2020.1
Thanks
sridhar
Hello Sanjay,
Please let me know if you need any further assistance with this matter.
Since currently you are not able to remove filtering conditions out of the box what I can suggest is logging a product idea.You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible.
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thanks so much for giving attention to my requirement.
Actually, i'm looking any setting in grid which allow me to hide some conditions.
Its' okay, i've already made jquery fix for this requirement, BUT your sample is short and simple. Thanks alot.
$(document).delegate("#Grid", "iggriddatarendered", function (evt, ui) {
var $nextMonth = $('.ui-iggrid-filtericonnextmonth');
if ($nextMonth.length > 0) { var $parentNote = $nextMonth.parent().parent(); if ($parentNote.length > 0) { $parentNote.css("display", "none");} }
var $nextYear = $('.ui-iggrid-filtericonnextyear');
if ($nextYear.length > 0) { var $parentNote = $nextYear.parent().parent(); if ($parentNote.length > 0) { $parentNote.css("display", "none");} }});
$(document).delegate("#Grid", "iggridfilteringfilterdialogfilteradded", function (evt, ui) { var $ClientNotesGrid1_container_dialog = $('#ClientNotesGrid1_container_dialog'); if ($ClientNotesGrid1_container_dialog.length > 0) { var $filterTable = $('.ui-iggrid-filtertable', $ClientNotesGrid1_container_dialog); if ($filterTable.length > 0) { var $filterSelect = $filterTable.find('select'); if ($filterSelect.length > 0) { $filterSelect.find('[value="nextMonth"]').remove(); $filterSelect.find('[value="nextYear"]').remove(); } } } });
Thanks once again.