ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
when click edit in inline grid row, the dropdown doesn't get the selected value
Title:
B
I
{code}
?
When I click on the edit button in the inline grid I lost value and AjaxListBox goes to the default position. code for the column: new Column { Bind = "Produto" } .Mod(o => o.Inline(Html.Awe().AjaxRadioList("IdProduto").Odropdown().DataFunc("utils.getItems(produtosDaBase)"))) Column with problem is "Produto" Any Idea what I've missed?
Save Changes
Cancel
Renan Martins
asked at 24 Jul 2020
the valProp name is "IdProduto", do you have a property "IdProduto" in the row model? ( usually in `Map = o => { IdProduto = value, ... }` ) in our [https://demo.aspnetawesome.com/GridInlineEditDemo main demo] in `GridInlineEditDemoController.cs` you can see the comment `// below properties used for inline editing only`, you need the same thing, properties that give value to the inline editors
at 24 Jul 2020
Omu
Ow, thank you. I have it in my model, but i did not have in my map .js function. It work now.
at 24 Jul 2020
Renan Martins
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