This is a migrated thread and some comments may be shown as answers.

How to Show and Hide Rad Filter Option When i click yes or no

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 26 Nov 2010, 06:54 AM
Hi Team

I need to show the filter option when user click yes it want to show if no means it should not to show the filter option.

I seen your example site in that they had given default for yes option when page load. But i need to set that as default no option because if user likes only it should be enable so give me some solution for that..



Regards,
Ashok Anbarasu

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Nov 2010, 07:40 AM
Hello Ashok,

You can initially hide the filter option by adding the following code in GridCreated client event.

ASPX:
<ClientSettings>
   <ClientEvents OnGridCreated="GridCreated" />
</ClientSettings>

Java Script:
<script type="text/javascript">
     function GridCreated(sender, args) {
         sender.get_masterTableView().hideFilterItem();
    }
</script>

Thanks,
Princy.
Tags
Grid
Asked by
Ashok
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or