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

Set the Property at project or Application Level.

3 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vibhu
Top achievements
Rank 1
Vibhu asked on 28 Feb 2018, 02:48 PM
Hi
Is there a way to set HtmlEncode="true" for the whole project? Like Config or application level?
We are using the Radgrid throughout the application and want to set HtmlEncode for all the respective gridboundcolumn.
Like for
Regards,
Vibhu

3 Answers, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 02 Mar 2018, 05:04 PM
Hi Vibhu,

You can try to define properties using ControlAdapters (check the MSD article about ControlAdapter Class).

For your convenience I have attached a basic sample demonstrating how to set the GridBoundColumn's HtmlEncode property to True using ControlAdapter.

I hope this will prove helpful.

Kind regards,
Attila Antal
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vibhu
Top achievements
Rank 1
answered on 08 Mar 2018, 03:31 PM

Hi Attila,

Thanks for the update and code.

It worked as expected. Thanks again.

Is there any way, Can we have HtmlEncode feature for griditemtemplatecolumn or itemtemplate of Radgrid?

As there is no such property for these column tags of Rad grid.

Thanks & Regards,

Vibhu

 

0
Attila Antal
Telerik team
answered on 09 Mar 2018, 07:13 AM
Hi Vibhu,

Unlike the other columns, GridTemplateColumn was designed to provide the freedom for the developer to implement his own custom controls/methods. Nevertheless, you can submit a feature request in our Telerik Ajax Feedback and Ideas portal. There you can include the scope of the feature, how it should be controlled, example business cases, everything you find relevant. This will let the community evaluate, comment and vote on the idea. If it becomes popular, management will prioritize its implementation.

Kind regards,
Attila Antal
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Vibhu
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Vibhu
Top achievements
Rank 1
Share this question
or