ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Keeping a textbox editable in grid
Title:
B
I
{code}
?
I have added a textbox in grid like this @{ var textBoxQuantity = Html.Awe().TextBox("EnteredQuantity").Prefix(".(Id)") .Numeric(o => o.Min(1.0)).Value(".(Quantity)").ReadonlyInput(false) .Enabled(true) .CssClass("w-100") .ToString(); } @(Html.Awe().Grid(TestGrid) .Url(Url.Action("GridGetItems", "Test")) .PageSize(25) .ShowFooter(false) .Groupable(true) .ShowGroupBar(false) .ShowFooter(true) .Load(false) .Mod(o => o.Loading().MovableRows().Main()) .Paging(true) .Columns( new Column { ClientFormat = ".Id", Bind="Id", Name="Id",Width = 80, Resizable = false, Hidden=true, CssClass="d-none"}, new Column { Header = "Name", Name = "Name", Width=130 }, new Column { Width=95, Header="Quantity" , ClientFormat= textBoxQuantity, CssClass= "quantity-change"})) Here, the textbox for Quantity is not editable for me but I can only change quantity using spinners. I wanted it to be editable all the time. Please help me here. Thanks
Save Changes
Cancel
Sam Mosaic
asked at 17 Mar 2024
try removing `MovableRows()`, if it doesn't help try this: https://www.aspnetawesome.com/learn/mvc/CommonProblems#Isolate-the-problem
at 17 Mar 2024
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK