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

Hide and show Grid

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
prashant
Top achievements
Rank 1
prashant asked on 23 May 2011, 04:24 PM
Hi ,

We wanted the ability to hide and show the whole content page. So What I was doing was grab the parent div and
set the visibility to hidden in java Script something like this

function HideScreen() {
        if (document.getElementById('btnFtrHideScreen').value == 'Hide') {
            var contentId = document.getElementById('contentBorder123');
            contentId.style.visibility = 'hidden';
            contentId.style.position = contentId.style.position = 'absolute';
            
        }
        else if (document.getElementById('btnFtrHideScreen').value == 'Show') {
            var contentId = document.getElementById('contentBorder123');
            contentId.style.visibility = 'visible';
            contentId.style.position = contentId.style.position = 'relative';
        }
       
    }

I'm able to successfully hide the content page but showing the content page back is a problem,
I only have problem showing the MVC grid, all the controls around MVC grid in the content page shows
perfectly.


Thanks
Prashant

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 May 2011, 06:56 AM
Hello prashant,

 You can try this instead:

function HideScreen() {
        if (document.getElementById('btnFtrHideScreen').value == 'Hide') {
            var contentId = document.getElementById('contentBorder123');
            contentId.style.display = 'none';
        }
        else if (document.getElementById('btnFtrHideScreen').value == 'Show') {
            var contentId = document.getElementById('contentBorder123');
            contentId.style.display = '';
        }
    }

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
prashant
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or