ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
set initial values for Grid Inline Create
Title:
B
I
{code}
?
Is there a way to pass extra data to the create method that is not contained in the model? I have a dropdown that I want to be passed in along with all created rows.
Save Changes
Cancel
Rob
asked at 25 Sep 2015
Answers
B
I
{code}
?
I found I can set default values for the inlineCreate like this $('#DinnersGrid').data('api').inlineCreate({ Name: 'hi there', Attribute: $('#someid').val() }); UPDATE: the latest demo has an additional button for creating with initial values: http://demo.aspnetawesome.com/GridInlineEditDemo
Save Changes
Cancel
Rob
answered at 28 Sep 2015
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