Hi, do you want to change property in searchModel? if yes, this $searchModel->search(Yii::$app->request->queryParams); will reset all values, so you have to change property from Yii::$app->request->queryParams
No. I don’t want to pass data to searchModel. Because when I execute:
print_r($model) in my DataColumn it shows Model object not searchModel. So I need to pass data to my Model (not searchModel). in my controller’s action there is searchModel, so I don’t know how to do that.
Ok. I figured out that I need to find a way to pass some custom data to ActiveDataProvider. Otherwise, I could not do what I want or I should add a new column in my database table, and I would not like to do that, because my case is really specific.