Custom message when query returns no results

QuestionsCustom message when query returns no results
Ravindra asked 9 years ago

In my page, i have a dropdown list and based on the selection from the dropdown, values will be displayed in the grid. I know that for some of the options in the dropdown list when selected, there will not be any results, hence the grid is empty. Is it possible to display a custom message inside the grid saying like 'there are no records for your selection' instead of showing an empty grid?

1 Answers
Abu Ghufran answered 9 years ago

Hello,

You can set following JS:

<script>
jQuery.jgrid.defaults.emptyrecords = "There are no records for your selection";
</script>

<div>
<?php echo $out?>
</div>

Your Answer

2 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?