title: yii2 add search widget grid view
body: <p>**how can i add girdView search to my relation table column ?</p>
  
  <p>i have all girlview search box except my relation table 
  (developersActivity.developer_point) and ('developersActivity.project_done')
  i have thier value but widget search box not apear above them**</p>
  
  <p>my controller</p>
  
  <pre><code>   $searchModel = new DeveloperSearch();
  
          $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
  
          return $this-&gt;render('dashboard', [
              'dataProvider' =&gt; $dataProvider,
              'searchModel' =&gt; $searchModel
          ]);
  </code></pre>
  
  <p>my search model</p>
  
  <pre><code>class DeveloperSearch extends Developers
  {
      public function rules()
      {
          return parent::rules();
      }
  
      public function scenarios()
      {
          return Model::scenarios();
      }
  
      public function search($param)
      {
  
          $query = Developers::find();
  
          $dataProvider = new ActiveDataProvider([
              'query' =&gt; $query
          ]);
  
          $this-&gt;load($param);
  
          $query-&gt;joinWith('developersActivity');
  
          $dataProvider-&gt;setSort([
              'attributes'=&gt; [
                  'name',
                  'developersActivity.developer_point'=&gt;[
                      'asc'=&gt;['developer_point'=&gt;SORT_ASC],
                      'desc'=&gt;['developer_point'=&gt;SORT_DESC],
                  ]
              ]
          ]);
  
          $query-&gt;andFilterWhere([
              'developer_id' =&gt; $this-&gt;developer_id,
          ]);
  
          $query-&gt;andFilterWhere(['like', 'name', $this-&gt;name])
              -&gt;andFilterWhere(['like', 'phone', $this-&gt;phone])
              -&gt;andFilterWhere(['like', 'email', $this-&gt;email]);
  
          return $dataProvider;
      }
  }
  </code></pre>
  
  <p>the model </p>
  
  <pre><code>class Developers extends ActiveRecord
  {
  
      public static function tableName()
      {
          return 'developers';
      }
  
  
  
      public function rules()
      {
          return [
              [['name',
                  'family',
                  'phone',
                  'email',
                  'address',
                  'brithday',
                  'age',
                  'ability',
                  'role',
  
                  'join_date',
                  ], 'required'],
              [['developer_id'], 'integer'],
              ['email','email'],
              [['phone'],'integer', 'min' =&gt; 10],
              [['address'], 'string', 'max' =&gt; 100],
              [['name'], 'string', 'min' =&gt; 3],
  
          ];
      }
  
  
  
      public  function getDevelopersActivity(){
          return $this-&gt;hasOne(DevelopersActivity::className(),['developer_activity_id' =&gt; 'developer_id']);
      }
  
  }
  </code></pre>
  
  <p>and developersActivity model class </p>
  
  <pre><code>class DevelopersActivity extends ActiveRecord
  {
      public function rules()
      {
          return [
              [['developer_activity_id',
                  'developer_point',
                  'project_done',
                  'free_rate',
                  'address',
                  'estimate_for_next_project',
                  'date_project_done',
                  'number_of_project',
                  'activity_rate',
              ], 'safe'],
  
          ];
  
      }
  
  }
  </code></pre>
  
  <p>here is the view
      
  
  <pre><code>    'dataProvider' =&gt; $dataProvider,
      'filterModel' =&gt; $searchModel,
  
      'columns' =&gt; [
          'developer_id',
          'name',
          'email',
          'phone',
          'email',
          'developersActivity.developer_point',
          'developersActivity.project_done'
  
  
          //  'value'=&gt;'developersActivity.point',
          //'contentOptions'=&gt;['style'=&gt;'width: 120px;']
      ],
  
  
  ]);
  ?&gt;
  </code></pre>