Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
IgGrid Filtering: possible to disable the clear value button?
posted

Is it possible to not render the clear value button as part of the IgGrid filtering feature?

thanks

  • 17590
    Verified Answer
    Offline posted

    Hello Mike,

    Thank you for posting in our community.

    By design the buttonType option of the filtering editor is set to "clearButton" when the editor is initialized. Since this option can not be set runtime the only suggestion that I can make is hiding this button once it is rendered. This can be achieved in the dataFiltering event. For example:

                  features: [
                        {
                            name: "Filtering",
                            mode: "simple",
                            filterDialogContainment: "window",
    						dataFiltering: function (evt, ui) { 
    							$(".ui-igedit-cleararea").hide() 
    						 }
                        },

    Please keep in mind that with this approach the button will be shown and afterwards hidden.

    From version 18.2 on, we will provide the user with the ability to set filtering editorOptions, as we currently provide this for Updating editorOptions

    Please let me know if you need any further assistance with this matter.