This topic is locked

How to select certain rows on List page programmatically

1/9/2014 8:29:47 PM
ASPRunnerPro Tips and tricks
admin

Lets we need to mark some records as selected on initial List page load based on value of one of database fields. Here is the example of automatically selecting records where Horsepower field value is more than 200:

var recsId = pageObj.inlineEdit.getRecsId();

for (i in recsId) {

if (Number($("span[id='edit"+recsId[i]+"_Horsepower']").html())>200)

$("input[name='selection[]'][id='check1_"+recsId[i]+"']").attr('checked','checked');

}