Need a special offer?Find out if your project fits.
+

How to disabled fields columns , value ?

Answered
jaewon asked on March 2, 2023

I want to use only filter, rows in Fields to activate.
want field dragging column, value is disable.
Thanks
 

Attachments:
screen.png

4 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 2, 2023

Hello, Jaewon!

Thank you for contacting us.

Our team is currently working on your question. We will get back to you soon.

Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 3, 2023

Hello, Jaewon!
 
Thank you for giving us some time.
 
We kindly suggest two possible approaches to achieve the described behavior and restrict the "Columns" and "Values" sections of the Field List from dragging.
 
1. Disabling the Apply button when something is added to the Columns/Values
The new items dragged to the sections can be tracked by listening to the mouseup event. This event does not cover the case when new measures are added to "Values" by using the checkbox.
Inside the mouseup listener, we can use the document.querySelector() API call to get the HTML-objects of the "Columns" and "Values" lists for further validation by desirable conditions.
 
We have prepared a JSFiddle illustrating the described approach:https://jsfiddle.net/flexmonster/5eumyra1/. In this example, the 'Apply' button gets disabled when there is more than one element in Columns or Values.
Please note that tracking the mouseup event inside the Field List does not cover the case when hierarchies on the grid are dragged. To restrict changes made by dragging on the grid, we suggest disabling it by setting the dragging: false in the grid options. We have already done it in the provided JSFiddle.
 
2. Creating a custom Field List
Please look through the detailed guide on implementing a custom FieldList in the following thread: https://www.flexmonster.com/question/how-to-disable-field-checkbox-on-fields-menu/.
Here is our custom Field List example for reference: https://jsfiddle.net/flexmonster/8hjrmu4g/.
 
Hope you will find our answer helpful.

Kind regards,
Solomiia

Public
jaewon March 4, 2023

thanks you for answer.
Another thing, if I want to purchase a license in Korea, can I know where to contact?

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 6, 2023

Hello,

Thank you for the response.

Our team will reach out to you with more information via email. 

Kind regards,
Nadia

Please login or Register to Submit Answer