Hi all, i've a little problem to set a default filter for my grid.
<ej-grid id="Grid" locale="it-IT" allow-sorting="true" allow-paging="true" allow-grouping="true" allow-filtering="true"
is-responsive="true" enable-responsive-row="true" show-stacked-header="true"
toolbar-click="GridToolbarClicked" action-complete="GridActionComplete"
row-data-bound="GridRowDatabound" databound="GridShowToolbarTooltip" load="loadFunction"
action-begin="GridActionBegin">
<e-datamanager url="/Api/Cities/GetAll" adaptor="@AdaptorType.WebApiAdaptor"></e-datamanager>
<e-sort-settings>
<e-sorted-columns>
<e-sorted-column field="CityName" direction="Ascending"></e-sorted-column>
</e-sorted-columns>
</e-sort-settings>
<e-stacked-header-rows>
<e-stacked-header-row>
<e-stacked-header-columns>
<e-stacked-header-column header-text="Comuni" text-align="Center" column='@new List<string> {"CityName", "ProvinceName","IstatCode" }'></e-stacked-header-column>
<e-stacked-header-column header-text="Validità" text-align="Center" column='@new List<string> {"StartDate", "EndDate"}'></e-stacked-header-column>
<e-stacked-header-column header-text="Azioni" text-align="Center" column='@new List<string> {"editField","deleteField"}'></e-stacked-header-column>
</e-stacked-header-columns>
</e-stacked-header-row>
</e-stacked-header-rows>
<e-page-settings page-size="5" show-defaults="true" enable-templates="true" template="#template">
</e-page-settings>
<e-toolbar-settings show-toolbar="true">
<e-custom-toolbar-items>
<e-custom-toolbar-item template-id="#Refresh"></e-custom-toolbar-item>
<e-custom-toolbar-item template-id="#Add"></e-custom-toolbar-item>
</e-custom-toolbar-items>
</e-toolbar-settings>
<e-columns>
<e-column field="Id" visible="false"></e-column>
<e-column field="CityName" header-text="Comune" header-text-align="TextAlign.Center" text-align="Center" width="300"></e-column>
<e-column field="ProvinceName" header-text="Provincia" header-text-align="TextAlign.Center" text-align="Center" width="200"></e-column>
<e-column field="IstatCode" header-text="Codice ISTAT" header-text-align="TextAlign.Center" text-align="Center" width="120"></e-column>
<e-column field="StartDate" header-text="Data Inizio" header-text-align="TextAlign.Center" text-align="Center" width="100"></e-column>
<e-column field="EndDate" header-text="Data Fine" header-text-align="TextAlign.Center" text-align="Center" width="100"></e-column>
<e-column field="editField" header-text="Modifica" header-text-align="TextAlign.Center" text-align="Center" width="80">
<e-column-commands>
<e-column-command type="edit">
<e-button-options content-type="ImageOnly" prefix-icon="e-icon e-edit" click="GridEditRow"></e-button-options>
</e-column-command>
</e-column-commands>
</e-column>
<e-column field="deleteField" header-text="Cancella" header-text-align="TextAlign.Center" text-align="Center" width="80">
<e-column-commands>
<e-column-command type="delete">
<e-button-options content-type="ImageOnly" prefix-icon="e-icon e-delete" click="GridDeleteRow"></e-button-options>
</e-column-command>
</e-column-commands>
</e-column>
</e-columns>
</ej-grid>
I need to pass to the remote controller the first filter (EndDate is null) but i don't know hor to do this and after to add maybe other conditions.