ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Nested grids / Hierarchical grid, nest opens when clicking on row button
Title:
B
I
{code}
?
The Hierarchical Grid is perfect for what I need https://demo.aspnetawesome.com/GridNestingDemo#In-nest-editing-grid In the First Column i want to have 2 values and one Button that opens a PopUp, i adapted it by doing so: .Columns(new Column { Bind = "Name", ClientFormat = "<div class='detailnst'><div class='same-line'><i class='caretc'><i class='o-caret o-cl2'></i></i> <div class='on-the-left' >OrderNumber: .(Name)</div><div class='on-the-center'>OrderDate: .(OrderDate)<div class='on-the-right'><button type='button' class='awe-btn o-pad' onclick='awe.open('popShipmentTracking', {params:{ OrderID: id }}, event)'>Tracking</button></div></div></div></div></div>"}) My Problems are: 1) I cant get the .(OrderDate) and .(OrderID) value because its not a column 2) when i push the Button the treeview Expands in the back. because the button is on the same row.
Save Changes
Cancel
c4
asked at 28 Oct 2020
1) it doesn't has to be in a column, but in the grid model https://www.aspnetawesome.com/learn/mvc/Grid#Map 2) the problem is that you've put the Button inside the `.detailnst` div, put it outside the div and the nest won't open when you click on it
at 28 Oct 2020
Omu
Waooo... thank you SIR!
at 29 Oct 2020
c4
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