「from & to date」検索に基づいて表示される結果の数を表示しています。空の結果がある場合、結果として「-1」を表示するよりも、「0」として表示したいという問題に直面しています。
htmlコードは
<div class="delete_grid" >
<form name="frmSearch" method="post" action="">
<input type="text" id="post_at" name="post_at" />
<input type="text" id="post_at_to_date" value=""name="post_at_to_date" />
<input type="submit" name="search" value="search" id="searchButton">
</form>
</div>
JavaScriptコードは
var gridOption={
container : 'myGrid',
};
var mygrid=new Sigma.Grid(gridOption);
Sigma.Util.onLoad( Sigma.Grid.render(mygrid) );
$(".delete_grid").append("Number of Designs Sold : "+mygrid.dataset.getSize());
シグマ プラグインを使用しています: http://pastebin.com/ftfL6qnU