Avoid to list all records on empty search in YII Admin page -


in yii admin page (crud), default records of table displayed when searching empty data in fields.

but need avoid default list. instead, data need entered in filter text box. search result should shows result based on input. otherwise no record should displayed.

thanks in advance.

in search function model replace $criteria->compare(.... cdbcriteria methods add same condition. compare method 1 doesn't add condition expression criteria if attribute empty.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -