v12.0p_2020-01-12/EVAL Development Only
Version 81.0.4044.92 (Official Build) (64-bit)
I am actually currently trying this with your "try it" option in the docs. (https://www.smartclient.com/smartcli...listGridFields)
We are trying to make a text-only filter for a ListGridField of type "date". I feel like this is supported and I have seen it somewhere in the past but I am having a hard time coming up with how to get it fully working.
Our date field is currently formatted to "MMMM YYYY" to give us textual dates like "December 2001" and would like to be able to type let's say "Decem" and it would filter to all instances of "December YYYY".
I have tried quite a few things and the closest I have gotten is with the example below. This example gives us the text field, and it allows for filtering based on the text, but only up to the first three letters of the name of the month - but the numerical values you can do the full "2001" for example and it will filter properly. Is there something that I am missing here?
Version 81.0.4044.92 (Official Build) (64-bit)
I am actually currently trying this with your "try it" option in the docs. (https://www.smartclient.com/smartcli...listGridFields)
We are trying to make a text-only filter for a ListGridField of type "date". I feel like this is supported and I have seen it somewhere in the past but I am having a hard time coming up with how to get it fully working.
Our date field is currently formatted to "MMMM YYYY" to give us textual dates like "December 2001" and would like to be able to type let's say "Decem" and it would filter to all instances of "December YYYY".
I have tried quite a few things and the closest I have gotten is with the example below. This example gives us the text field, and it allows for filtering based on the text, but only up to the first three letters of the name of the month - but the numerical values you can do the full "2001" for example and it will filter properly. Is there something that I am missing here?
Code:
var countryDS = isc.DataSource.create({ clientOnly: true, fields: [ { name: "countryCode", title: "Code" }, { name: "countryName", title: "Country" }, { name: "independence", title: "Nationhood" }, { name: "population", title: "Population", type: "integer" }, { name: "gdp", title: "GDP", type: "float" } ], cacheData: countryData }); isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, showFilterEditor: true, filterOnKeypress: true, autoFetchData: true, fields:[ {name:"countryCode", title:"Code"}, {name:"countryName", title:"Country"}, {name:"independence", title:"Nationhood", type:"date", width:100, dateFormatter: "MMMM YYYY", filterEditorProperties: { editorType: "TextItem", textAlign: "left" } }, {name:"population", title:"Population", type:"integer"}, {name:"gdp", title:"GDP", type:"float"} ], dataSource: countryDS })
Comment