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

[Solved] GridTemplateColumn's Text is   when Visible attribute is set to False

1 Answer 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ALBERT
Top achievements
Rank 1
ALBERT asked on 23 Aug 2013, 01:19 PM

My name is Albert Cepeda, and I’m a developer at Deloitte

We upgrade Telerik’s controls to 2013 version, but we found a new issue/feature in the RadGrid's  GridTemplateColumn, when I set the Visible attribute To false, then

in code-behind the value hold by this column is turn to   I tried with the Display attribute obtaining successful results, but in this moment all our sites use the Visible atttribute in many

Radgrids in many Forms.

 

There is any way to fix this behavior in our sites in a rapid way?

 

Best Regards,

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Aug 2013, 01:39 PM
Hi Albert

The visible property is used through server-side to determine whether or not an item should be rendered to the page, while display simply changes the CSS style to 'display:none'.
Basically if you are just trying to dynamically show/hide columns the Display property is the way to go and you can access it ,but the if you set the visibility of a column as false,it can't be accessed.
As for disabling a column in the edit-form, you can try setting the column's ReadOnly property to true (false by default).

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