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

[Solved] ClientEditTemplate styling...

1 Answer 30 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.
Missing User
Missing User asked on 04 Mar 2012, 06:49 PM
I have a grid with InForm editing enabled. I want to have the text-boxes in the grid in edit mode to have the correct style (t-input) but I am running into some problems.

The following template works but does not show the correct styling:

@model string
@Html.TextBoxFor(m => m, new { @class = "text-box single-line", style = "width: 100%" })

The following template shows the correct styling but the value entered is not passed to the controller action:

@model string
@Html.TextBoxFor(m => m, new { @class = "t-input t-widget", style = "width: 100%" })

It would appear that the grid is looking for the 'text-box' class to get the edited value. Is there any way around this?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 06 Mar 2012, 11:51 AM
Solved.

@model string
@Html.TextBoxFor(m => m, new { @class = "text-box t-widget", style = "width: 100%" })

Seems to work...
Tags
Grid
Asked by
Missing User
Answers by
Missing User
Share this question
or