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

[Solved] TextArea Cell in Grid-mode=Edit

0 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gregg
Top achievements
Rank 1
Gregg asked on 11 Aug 2010, 05:48 PM
Hi,   I have a grid which has 5 columns and one column with much text in it.  I render them for dislplay like this (with an HTML TextArea)
        .Columns(col =>
        {
            col.Command(cmd => cmd.Edit()).Width(200);
            col.Bound(c => c.mname).Title("Name").Width(200).ReadOnly();
            col.Bound(c => c.ip).Title("IP Address").Width(100).ReadOnly();
            col.Bound(c => c.devicetype).Title("Device Type").Width(100).ReadOnly();
            col.Bound(c => c.macaddress).Title("MacAddress").Width(100).ReadOnly();
            col.Bound(c => c.notes).Title("Notifications(Notes)").Width(200).Template(t => { 
                %> <%= Html.TextArea("TextArea1",t.notes, 3, 50, "wrap=HARD") %> <%});

        })
This works fine.  I can see 1000 or so Characters in the scrollable TextArea.  
But when I go to Edit mode for any row,  the row  "BLOWS OUT" .   All the column widths are ignored,  the TextArea is ignored and the 1000 characters are displayed in one, very wide Text Box.  
 I can edit and save the text and have tried several alternatives, none of which help.  
Here is the URL for my server-side edit mode: 
http://localhost:53748/Notes/Index/43131?Grid-mode=edit
Does anyone know how to apply an HTML.TEXTAREA to the Telerik  grid-mode=edit()  ???      
Tags
Grid
Asked by
Gregg
Top achievements
Rank 1
Share this question
or