Set the Property at project or Application Level.

4 posts, 0 answers
  1. Vibhu
    Vibhu avatar
    6 posts
    Member since:
    Feb 2018

    Posted 28 Feb 2018 Link to this post

    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
  2. Attila Antal
    Admin
    Attila Antal avatar
    419 posts

    Posted 02 Mar 2018 Link to this post

    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.
  3. Vibhu
    Vibhu avatar
    6 posts
    Member since:
    Feb 2018

    Posted 08 Mar 2018 in reply to Attila Antal Link to this post

    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

     

  4. Attila Antal
    Admin
    Attila Antal avatar
    419 posts

    Posted 09 Mar 2018 Link to this post

    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.
Back to Top