src/Components/Unknown/UnknownCategories.js
//on select of ddl outside grid

on select of ddl outside grid
on select of ddl outside grid
async onSelectDDL(e) {
        if (e.target.value == "") {
            this.state.isVisibleAll = "visible";
        }
        else {
            this.state.isVisibleAll = "hidden";
        }
        await this.setState({
            categoriesAll: e.target.value,
            categoriestxtAll: e.target.value
        })
        const dataList = [...this.state.dataList];
        await this.setState({
            dataList: this.state.dataList.forEach(x => {
                if (x.isSelect == true) {
                    x.categories = this.state.categoriesAll;
                    x.categoriestxt = this.state.categoriestxtAll
                    if (this.state.categoriesAll === "") {
                        x.isVisible = "visible"
                    } else {
                        x.isVisible = "hidden"
                    }
                }
            })
        });
        await this.setState({ pageSize: this.state.pageSize })
        await this.setState({ dataList })
    }
async onSelectDDL ( e ) { if ( e . target . value == "" ) { this . state . isVisibleAll = "visible" ; } else { this . state . isVisibleAll = "hidden" ; } await this . setState ( { categoriesAll : e . target . value , categoriestxtAll : e . target . value } ) const dataList = [ ... this . state . dataList ] ; await this . setState ( { dataList : this . state . dataList . forEach ( x => { if ( x . isSelect == true ) { x . categories = this . state . categoriesAll ; x . categoriestxt = this . state . categoriestxtAll if ( this . state . categoriesAll === "" ) { x . isVisible = "visible" } else { x . isVisible = "hidden" } } } ) } ) ; await this . setState ( { pageSize : this . state . pageSize } ) await this . setState ( { dataList } ) }
on select of ddl outside grid
on select of ddl outside grid
//set ddl data to grid ddl
