Hello,
I am using an inCell editable grid and I want to use a textarea in one column.
The column looks like this:
And the Editor-Template like this:
My problem is, that I have to click outside the textarea of my ClientTemplate (but still inside the cell) to get the cell switched into the edit-mode. Is there any possibility to get the edit-mode by clicking anywhere in the cell... also if I click on the readonly-textarea which is defined in the ClientTemplate?
If i don't use a ClientTemplate, the text which gets inserted, especially the returns won't be shown and the whole text is in one line.
Does anyone have a solution for that?
I am using an inCell editable grid and I want to use a textarea in one column.
The column looks like this:
columns.Bound(p => p.Reason).Title("Reason") .ClientTemplate("<textarea rows='2' style='text-overflow:ellipsis; display:block; width:99%; height:100%; font-family:Arial; font-size:12px;' readonly='readonly'>#= Reason #</textarea>");And the Editor-Template like this:
@model string@Html.TextAreaFor(m => m, new { rows = 2, cols = 35, wrap = "hard", @readonly = true, style = "text-overflow:ellipsis; display:block; width:99%; height:100%; font-family:Arial; font-size:12px;" })My problem is, that I have to click outside the textarea of my ClientTemplate (but still inside the cell) to get the cell switched into the edit-mode. Is there any possibility to get the edit-mode by clicking anywhere in the cell... also if I click on the readonly-textarea which is defined in the ClientTemplate?
If i don't use a ClientTemplate, the text which gets inserted, especially the returns won't be shown and the whole text is in one line.
Does anyone have a solution for that?
