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

[Solved] get data from unvisible or hidden columns

1 Answer 13 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.
Eyal
Top achievements
Rank 1
Eyal asked on 06 Jan 2013, 06:50 AM

I need to hide the contents of a column and its title in Telerik grid mvc3, so that I can access them later.
I know two functions: Hiden() and visible() the code is:

foreach (var attr in grid.Attr)
.Columns(columns =>
{
   columns.Bound(attr.key)
     .Width(attr.width)
     .Visible(attr.isVisible);
})

or

foreach (var attr in grid.Attr)
.Columns(columns =>
{
   columns.Bound(attr.key)
     .Width(attr.width)
     .Hidden(!attr.isVisible);
})

But Both of not helping me:
On "visible()" it hides my content and title but can not access them.
On "Hidden()" I can access the data but it only hides the content and not the title.

please help me, I've been trying for two days..

Thank you

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Jan 2013, 08:12 AM
Hello,

 Make sure you are using the latest version of Telerik Extensions for ASP.NET MVC. The Hidden() setting should hide both the contents and the title of your column. In some browsers it is also required to put the hidden columns last (older versions of IE).

Regards,
Atanas Korchev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Eyal
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or