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

Hide ItemTemplate from ListView example and show default columns

1 Answer 188 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 28 Oct 2009, 04:45 PM
Hi,

I'm using the ListView/DataList example to make an image gallery.
Most of the time I want to show the image gallery to the user, but sometimes I want to show the default grid columns to the user. 
Is it possible to hide the ItemTemplate at run-time and show the default columns from the Grid?

Thanks,
Danny

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 03 Nov 2009, 08:03 AM
Hi Danny,

The most straightforward approach in this case would be to have two separate controls on the page - one with the normal layout of the grid, and one with the alternative. Depending on which layout you would like the users to see, you can toggle on/off the visibility of the controls.
I hope this suggestion helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or