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

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -