ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Create inline Grid error when use nest of grid
Title:
B
I
{code}
?
I try use nest grid in grid follow link http://demo.aspnetawesome.com/GridNestingDemo#In-nest-editing-grid at section Nested grids / Hierarchy CategoriesGrid - parent grid MealGrid - nest grid I 'd to use crud inline for parent grid if I don't open nest grid when click create button that everything work http://puu.sh/ysHMJ/c8a92b386a.png But if I open nest grid when click create button that It happen problem 1. have new row at parent grid but not show input text box for create 2. input text box show at first row of nest grid http://puu.sh/ysHNi/5bc4bdcce0.png <button type="button" id="btnCreate" class="btn btn-success" onclick="$('#CategoriesGrid').data('api').inlineCreate()">new inline</button> @(Html.Awe().Grid("CategoriesGrid") .Mod(o => o.InlineEdit(Url.Action("Create", "GridInlineEditDemo"), Url.Action("Edit", "GridInlineEditDemo"))) .Url(Url.Action("CategoriesGrid", "CascadingGridDemo")) .Columns(new Column { Bind = "Name", ClientFormat = "<div class='detailbtn'><i class='ui-icon ui-icon-triangle-1-e awe-il'></i> .Name</div> " } .Mod(o =>o.Inline(Html.Awe().TextBox("Name")))) .Nests(new Nest { ButtonClass = "detailbtn", Url = Url.Action("MealGrid"), LoadOnce = true })) pls help me
Save Changes
Cancel
nutfergie
asked at 24 Nov 2017
a quick fix for this particular problem would be to find in awem.js `function inlineCreate` and inside to change `$grid.find('.awe-content .awe-tbody')` with `$grid.find('.awe-content:first .awe-tbody:first')`
at 25 Nov 2017
Omu
thx so much....
at 26 Nov 2017
nutfergie
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