extjs4.1 - Extjs 4 How to merge 2 similar records into one record -


i have grid, want merge similar records 1 record.

i don't want group record, want merge record

i mean,

{ { firstfield: "record1", commonfield: "abc", fourthfield: "4" }, { firstfield: "record2", commonfield: "abc", fourthfield: "5" }, { firstfield: "record3", commonfield: "abc", fourthfield: "6" } } 

so above json u can see there "commonfield" has similar text. have show 1 record instead of 3 records, fourthfield added [4+5+6] final json should become like

{ { firstfield: "record1", commonfield: "abc", fourthfield: "15" } 

}

is there way achieve ? summary addition or operation similar can on records ?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -