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

RadGrid binding HTML

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff Kershner
Top achievements
Rank 1
Jeff Kershner asked on 07 Jul 2010, 11:08 PM
I have an app that bind directly from a data set to a grid. 

<

 

 

telerik:GridBoundColumn UniqueName="searchString" AllowSorting="false" DataField="searchString" HeaderText="Search String" />

The binding text is HTML text.  I would like to see the HTML text in both normal view mode and edit view.  And when I insert to the database, I would also like to insert the exact HTML that is in the text box.

I just started seeing errors with IE8 that will not let me insert with HTML characters in the text box even though validateRequest is set to false.

How do I accomplish this?
--Jeff

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 12 Jul 2010, 09:42 AM
Hello Jeff,

When working with this setup, you can HtmlEncode/decode the data, prior to trying to persist it to the database. This will ensure that no exceptions are raised, and also that you do not create a vulnerability in your page.

Greetings,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jeff Kershner
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or