DataTable: serverMultiSelectFilter with "Submit" or "Apply" button

Hello guys!
Is it possible to add an Apply or Submit button to the default serverMultiSelectFilter in DataTable control? I know that button is possible for the MultiSelect contol itself with button=true:
https://snippet.webix.com/s2dk21w8
I also tried to set inputConfig: { button: true } for the column
https://snippet.webix.com/5aaa4g22
but it does not work.

Comments

  • Hello, @Acrux

    There is a possibility to add a button. As the control's popup is supplied with a "select" button out of the box, you could add it and change the name by:

    suggest:{ 
    button: true,
    buttonText:"Submit",
                }
    

    But this button will remain just a "select" button. Changing the value in the filter (and, accordingly, filtering) occurs by selecting the option, regardless of the presence of the button.
    Here is the snippet: https://snippet.webix.com/ihqxqt1d
    If the filtering should be triggered only by clicking on the Submit button, the default filter has to be customized. In the following snippet, filtering is applied on button click (if the button was enabled in the filter config)
    Here is the snippet:https://snippet.webix.com/0n3mn6fa
    Unfortunately, our backend doesn't supply multiple options selection. To estimate the efficiency, please check DevTools to find out what parameters the request is sent with.

  • Hello, Alena!
    Thank you for the response! I think it should included in default filter imlementation. I recommend you to add a setting for the contol, someting like:

    suggest: { 
        button: true,
        buttonText: "Submit",
        submitByButton: true
    }
    

    with default value submitByButton = false (for backward compartibility).
    Because I suppose the functionality I've asked in the initial question is expected by most users. Should I sumbit the feature request somewhere, or you can do it yourself?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!