ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Tree Grid format children
Title:
B
I
{code}
?
I've a Tree Grid with some columns, one of this is a price, these columns have to formatted, but seem do only in parent nodes, children seem not this is my source var builder = new GridModelBuilder<AlberoCostiNode>(rootNodes.AsQueryable(), g) { KeyProp = o => o.Id, Map = o => new { o.Description, o.Code, o.Id, o.Qta, o.Um, o.StateArt, o.RowClass, o.StateRow, o.StateLeg, o.Activity, o.Type, o.Level, o.Date, MinutiProd = o.MinutiProd.ToString("#0.0"), PrezzoCommerciale = decimal.Round(o.PrezzoCommerciale, 2, MidpointRounding.AwayFromZero), PrezzoCommUnitario = decimal.Round(o.PrezzoCommUnitario, 2, MidpointRounding.AwayFromZero), PrezzoRisorse = decimal.Round(o.PrezzoRisorse, 2, MidpointRounding.AwayFromZero), PrezzoFigli = decimal.Round(o.PrezzoFigli, 2, MidpointRounding.AwayFromZero), PrezzoTotale = decimal.Round(o.PrezzoTotale, 2, MidpointRounding.AwayFromZero) } }; builder.GetChildrenAsync = async (node, nodeLevel) => { var children = TreeNodes.Where(o => o.Parent == node); return builder.OrderBy(children.AsQueryable()); }; return Json(await builder.BuildAsync());
Save Changes
Cancel
Meccanica Rossi
asked 9 days ago
which version of awesome are you using ?
9 days ago
Omu
version 8.1
8 days ago
Meccanica Rossi
If you could update to 9.0.5 the problem will be fixed
8 days ago
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