EasyUI Forum

General Category => EasyUI for Vue => Topic started by: hjzhbb7758 on November 23, 2018, 02:35:11 AM



Title: ComboGrid not support filter
Post by: hjzhbb7758 on November 23, 2018, 02:35:11 AM
like title


Title: Re: ComboGrid not support filter
Post by: hjzhbb7758 on November 23, 2018, 02:37:14 AM
when combogrid property editable="true" , the input focus, grid do not auto open


Title: Re: ComboGrid not support filter
Post by: fengdie on November 25, 2018, 06:07:07 PM
I looked at the source code of the 'combogrid' component and found that the doFilter method is empty. This can only wait for an administrator update


Title: Re: ComboGrid not support filter
Post by: stworthy on November 25, 2018, 06:47:08 PM
Please add the 'filterable' to the DataGrid component. Be sure to update to the newest version to get this feature.
Code:
<ComboGrid
    valueField="itemid"
    textField="name"
    v-model="value"
    :data="data"
    :panelStyle="{width:'500px'}">
  <DataGrid slot="grid" :border="false" :filterable="true">
    <GridColumn field="itemid" title="Item ID"></GridColumn>
    <GridColumn field="name" title="Name"></GridColumn>
    <GridColumn field="listprice" title="List Price" align="right"></GridColumn>
    <GridColumn field="unitcost" title="Unit Cost" align="right"></GridColumn>
    <GridColumn field="attr" title="Attribute" width="30%"></GridColumn>
    <GridColumn field="status" title="Status" align="center"></GridColumn>
  </DataGrid>
</ComboGrid>