When I do the binding a gridview with the html content in a column, this shown a unconfigured column...
seems that the spaces are transformed into <br> tags...
as shown in the image below
seems that the spaces are transformed into <br> tags...
as shown in the image below
http://img373.imageshack.us/img373/54/screen.jpg
is it a bug in version 2009?
The property "DisableHTMLRendering" of column is set = false
and the content of column is: "<html><color=red>This is a test"
Thanks for your help
5 Answers, 1 is accepted
0
Accepted
Hello Alan,
Thank you for writing. Please find the answer to your question in support ticket ID: 204960.
Sincerely yours,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thank you for writing. Please find the answer to your question in support ticket ID: 204960.
Sincerely yours,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
[Nean]
Top achievements
Rank 1
answered on 30 Sep 2009, 08:06 AM
Hello Peter,
I have a similar problem and I would like to know which is the solution ?
Thanks
[Nean]
I have a similar problem and I would like to know which is the solution ?
Thanks
[Nean]
0
Hello [Nean],
Thank you for writing. This problem was fixed in Service Pack 2009.1 415. I suggest also to set Column WrapText to True. For example:
this.radGridView1.Columns["MyCollum"].ReadOnly = true;
this.radGridView1.Columns["MyCollum"].DisableHTMLRendering = false;
this.radGridView1.Columns["MyCollum"].WrapText = true;
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for writing. This problem was fixed in Service Pack 2009.1 415. I suggest also to set Column WrapText to True. For example:
this.radGridView1.Columns["MyCollum"].ReadOnly = true;
this.radGridView1.Columns["MyCollum"].DisableHTMLRendering = false;
this.radGridView1.Columns["MyCollum"].WrapText = true;
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
[Nean]
Top achievements
Rank 1
answered on 01 Oct 2009, 07:31 AM
Hi Peter,
My problem is quite different in fact. I have a database wich contains fields with real HTML. When I show an HTML content in a GridView (even with DisableHTMLRendering = false), the HTML is not interpreted correctly. I have understand that GridView interpret some HTML_like wich is not real HTML, but if I want to put real HTML, how can I do that ?
Thanks,
[Nean]
My problem is quite different in fact. I have a database wich contains fields with real HTML. When I show an HTML content in a GridView (even with DisableHTMLRendering = false), the HTML is not interpreted correctly. I have understand that GridView interpret some HTML_like wich is not real HTML, but if I want to put real HTML, how can I do that ?
Thanks,
[Nean]
0
Hi [Nean],
We does not support rendering of real HTML in our Grid, because this is not very straightforward for WinForms controls. You can try to add a user control that will display HTML into grid cells on CellFormating event. For more information, please read Adding custom elements to cells. I hope this helps.
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
We does not support rendering of real HTML in our Grid, because this is not very straightforward for WinForms controls. You can try to add a user control that will display HTML into grid cells on CellFormating event. For more information, please read Adding custom elements to cells. I hope this helps.
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.