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

HTML Text column Breaks Grid formatting

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed Lance
Top achievements
Rank 1
Ed Lance asked on 15 Dec 2011, 01:12 AM

I have a table with several nvarchar(max) fields that have HTML in them.  I want to show the first bit of the text in a column in a RadGrid so the user can filter on the column.  But when I put the column in as the last column on the right, the right part of the text is cut off.  It does not obey the HeaderStyle Width property or the Height property.

<telerik:GridBoundColumn DataField="interesting"
    FilterControlAltText="Filter interesting column" HeaderText="interesting"
    SortExpression="interesting" UniqueName="interesting" Visible="True">
    <HeaderStyle Width="100px" />
</telerik:GridBoundColumn>

I tried changing the column to an HTMLEditor column, even though this grid is READ ONLY.  Didn't change anything.

<telerik:GridHTMLEditorColumn DataField="interesting"
    FilterControlAltText="Filter interesting column" HeaderText="interesting"
    SortExpression="interesting" UniqueName="interesting" Visible="True">
    <HeaderStyle Width="100px" />
</telerik:GridHTMLEditorColumn>

I tried using a separate column editor and it also didn't change anything.

<telerik:GridHTMLEditorColumnEditor ID="GridHTMLEditor" runat="server">
        <Editor runat="server" Height="50px" Width="100px"><Content>
        </Content>
        </Editor>
</telerik:GridHTMLEditorColumnEditor>

Even worse, when this column is in the grid, it causes other regular text columns to NOT obey their width settings. i.e. If I have the code below, then the second column is NOT rendered at 300px.  This is really messed up and I don't know what else to do.

  <telerik:GridHTMLEditorColumn DataField="interesting"
     FilterControlAltText="Filter interesting column" HeaderText="interesting"
     SortExpression="interesting" UniqueName="interesting" Visible="True">
     <HeaderStyle Width="100px" />
 </telerik:GridHTMLEditorColumn>
<telerik:GridBoundColumn DataField="comname"
     FilterControlAltText="Filter comname column" HeaderText="Common Name"
     SortExpression="comname" UniqueName="comname">
     <HeaderStyle Width="300px" />
 </telerik:GridBoundColumn>

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 19 Dec 2011, 03:08 PM
Hello Ed,

Based on the supplied information, it is hard to determine what is causing the issue.
Please open a formal support ticket and send us a small working project, demonstrating your full setup and showing the unwanted behavior.
We will debug it locally and get back to you with our findings.

Thank you in advance for the cooperation.

Kind regards,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Ed Lance
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or