如何让将平面型的字段默认是全选

Answered
zhanglei asked on January 16, 2019

如何能将工具栏里的字段默认为全选,我现在是初始化的时候查询是选项中的平面型,但是它默认只是显示两个字段,我想让它显示全部字段,怎么能够实现呢

3 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster January 16, 2019

Hello,
Thank you for writing to us.
This example shows how to achieve the behavior you described: https://jsfiddle.net/flexmonster/6t9hx5uv/
Does it help?
Also, we kindly ask you to post the questions in English.
Regards,
Tanya

Public
zhanglei January 18, 2019

How can the field in the toolbar be selected by default? I am now initializing when the query is the flat type of the option, but it only shows two fields by default. I want it to display all fields, how can it be realized?,thank you.

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster January 18, 2019

Hello,
Thank you for your feedback.
Please make sure that you are using the latest version of the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
As you can see in the following jsfiddle example: https://jsfiddle.net/flexmonster/6t9hx5uv/3/, you should set an empty slice and all the fields will be selected by default.
Please let us know if you managed to resolve it.
Regards,
Dmytro

Please login or Register to Submit Answer