Skip to content

Conversation

ekonoval
Copy link

@ekonoval ekonoval commented Oct 7, 2013

Maybe I'm missing something, but I checked this out, if we extend our FlagColumn class from CDataColumn instead of CGridColumn we don't have to copy renderHeaderCellContent method and renderFilterCellContent (to make filter working)
Also, it seems to be a bug in a book https://www.dropbox.com/s/csu2zugwi15e1un/yii-bug.png
yii-bug

Maybe I'm missing something, but I checked this out, if we extend our FlagColumn class from CDataColumn instead of CGridColumn we don't have to copy renderHeaderCellContent method and renderFilterCellContent (to make filter working)
Also, it seems to be a bug in a book https://www.dropbox.com/s/csu2zugwi15e1un/yii-bug.png
@samdark
Copy link
Owner

samdark commented Oct 7, 2013

Thanks for the report. Will check it in details this week.

@cebe
Copy link

cebe commented Oct 8, 2013

Extending CDataColumn instead of CGridColumn is indeed a better way in most cases when you want sorting and filtering. Also if CLinkColumn would extend CDataColumn it would be much more usable. We had discussion about that earlier in yii issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants