Login Register
Saturday, May 19, 2012
You are here : Forum
 
Forums Minimize
 
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Hide footer on no filter and no records? Hide footer on no filter and no records?
Previous Previous
 
Next Next
New Post
 4/22/2010 4:10 PM
 
 Modified By Terence  on 4/22/2010 10:42:49 PM

Hello,

I have some command buttons in the footer area of a grid view, that when pressed perform functions for records displayed in the view. The view is set to hide records on no filter, but my command buttons always display. Is there a way to hide the footer area on no filters, and also on no records found, so I can hide the buttons when there are no records displayed?

Thank you,
Terence

New Post
 5/14/2010 4:21 PM
 

Hi,

You can use javascript like this in the begining in the module header:

<script>if('0'=='»getObject:viewPage.gridView.VirtualItemCount«'){document.write('<'+'!-- ')}</script>

and in the end of the module header:

<script>if('0'=='»getObject:viewPage.gridView.VirtualItemCount«'){document.write(' --'+'>')}</script>

Code writes html comment block when there is no records.

Kind regards,

Primoz

New Post
 5/18/2010 7:03 PM
 

Pril,

Thank you for the response, this worked great for when there are no records found. The buttons still display when you come to the page since no selection was made yet. I have the grid set to hide records with no filters.

Is there also a way to do this for no filters, so I can hide when no filters since records are hidden too. (I am wondering if there is an object for this so it can be handled also with the javascript)

Thanks again,
Terence

New Post
 5/18/2010 7:51 PM
 
 Modified By admlange  on 5/18/2010 7:53:31 PM
Hi,

I use this:

[compute:iif([numericQueryString:GRIDVIEWID__gvff0]>0,'BUTTON HTML STRINGS','NO FILTER CHOSEN MESSAGE')]

to compute if a filter is chosen. Replace GRIDVIEWID with the id of your gridview and gvff1 with the parameter in the url string you want to check on for filters...the gvffl0 is the first filter parameter (just look in the querystring/url if you have selected your filter to see what value and what name you need to check on.... I check if it is greater than 0 because it is a numeric filter here.....)

hth
Alexander
Previous Previous
 
Next Next
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Hide footer on no filter and no records? Hide footer on no filter and no records?

  
Buy it Minimize

 

 

  
Home | Demo | Custom Solutions | Downloads | Forum | Company
 
Privacy Statement | Terms Of Use
 
Copyright 2008-2009 IndooLab d.o.o.