Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

Single value autoselect in filterlist in Aras

$
0
0
Dear Friends ,

If we have a single value in dropdown then i want it will autoselect not need to click on that. I just save it will show on grid. So i have tried below code but still not success.

kindly share your solution.

function dataBound(e) {
    var data = this.dataSource.data();
    if (data.length === 1) {
        var item = data[0];
        var valueField = this.options.dataValueField;
        this.value(item[valueField]);
        this.trigger("change");
    }
}
Thanks
Abhishek Srivastava

Viewing all articles
Browse latest Browse all 1103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>