Frenchi In LA
Frenchi In LA

Reputation: 3169

Ui-grid sorting, filtering template celll

I have a linq template cell in UI-grid. the code in Controller:

var Station = '<div class="ngCellText" ng-class="col.colIndex()"><a target="_blank" href="{{row.entity.station.href}}">{{row.entity.station.text}}</a></div>';
and
       columnDefs: [
      { name: 'Station', cellTemplate: Station },

How can I add sorting, filtering this column by Station.Text ?

Upvotes: 2

Views: 487

Answers (1)

Frenchi In LA
Frenchi In LA

Reputation: 3169

By changing name property of the column to station.text the column could be sorted and filtered by text while showing a link as described in the template.

Upvotes: 1

Related Questions