Forum
November 2nd, 2014
A
A
A
The forums are currently locked and only available for read only access
Topic RSS
addRowData using array of data at position
04/08/2013
02:31
02:31
christine_draper
Member
Members
Forum Posts: 4
Member Since:
02/08/2013
02/08/2013
Offline
Not sure if this is a bug or a feature request...
I'm able to use addRowData add a single object at a position. However, when I try to add an array of objects, they are always appended, regardless of the position parameter.
E.g. Given:
var mydata = [ { "item":1,"title":"A title", "amount":"1240", "mydate":"02.21.13", "mydate2":"02.21.13"}, { "item":2,"title":"A second title", "amount":"100.02", "mydate":"01.21.13", "mydate2":"01.21.13" } ]; var mydata3 = { "item":3,"title":"A third title", "amount":"1240", "mydate":"02.21.13", "mydate2":"02.21.13"} ; var mydata4 = { "item":4,"title":"A fourth title", "amount":"100.02", "mydate":"01.21.13", "mydate2":"01.21.13" } ; var myMoreData = [ { "item":5,"title":"A fifth title", "amount":"13000", "mydate":"05.23.13", "mydate2":"05.23.13"}, { "item":6,"title":"A sixth title", "amount":"120.002", "mydate":"01.21.13", "mydate2":"01.21.13" } ];
Then:
grid.addRowData("item", mydata); // Can add individual rows in specific positions grid.addRowData(3, mydata3, "first"); grid.addRowData(4, mydata4, "before", "2"); // can only append multiple rows grid.addRowData("item", myMoreData, "first");
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66