Show Posts
|
Pages: [1]
|
5
|
General Category / General Discussion / Reload TreeGrid not updating grid
|
on: November 05, 2016, 06:51:06 AM
|
I'm trying to reload all the data in the TreeGrid with a button. I can see from the network console that it's retrieving the json data and the grid flashes, but the data isn't updating.
Here's my javascript function: function reloadAll(){ $('#tt').treegrid('reload'); }
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="reloadAll()">Reload</a>
<table id="tt" class="easyui-treegrid" style="width:100%;height:550px;" url="leaderboarddata.php?tourney=<?php echo $_GET['tourney'] ?>" rownumbers="false" idField="scorecardid" treeField="name" data-options="onClickCell:function(field,row){ if (field == 'name'){ $(this).treegrid('toggle', row.scorecardid); } }">
Thanks, Brian
|
|
|
7
|
General Category / General Discussion / Re: DataGrid hide rows
|
on: November 04, 2016, 07:24:28 AM
|
Thank you. This might work well for me. How can I style the expand image? I'd ideally like to be able to toggle the expand function from clicking anywhere in the parent itemid cell instead of from the small arrow.
Thanks, Brian
|
|
|
8
|
General Category / General Discussion / DataGrid hide rows
|
on: November 03, 2016, 08:50:37 AM
|
Hello,
I'm trying to create a grid with a parent row and child rows. The child rows will be hidden initially and will expand on click of the plus sign. All of the rows will be in the same table format (meaning it's not a subgrid, just child rows in the same table). I cannot seem to figure out how to do this with easyUI.
Any help is much appreciated. Attached is my example table (pretty simple)
<table id="tt" class="easyui-datagrid" style="width:100%;height:550px;"> <thead frozen="true"><tr><th field="itemid" width="200">Test 2</th><th field="productid" width="60" align="center">Yards</th></tr></thead><thead><tr><th field="hole1" width="60" align="center">333</th><th field="hole2" width="60" align="center">481</th><th field="hole3" width="60" align="center">360</th><th field="hole4" width="60" align="center">146</th><th field="hole5" width="60" align="center">380</th></tr> </thead> <tbody> <tr><td field="itemid" width="80">Parent Record</td><td field="productid" width="80"></td><td field="hole1" width="80">4</td><td field="hole2" width="80"></td><td field="hole3" width="80"></td><td field="hole4" width="80"></td><td field="hole5" width="80"></td></tr> <tr><td field="itemid" width="80">Child</td><td field="productid" width="80"></td><td field="hole1" width="80">4</td><td field="hole2" width="80">5</td><td field="hole3" width="80">4</td><td field="hole4" width="80">2</td><td field="hole5" width="80"></td></tr> <tr><td field="itemid" width="80">Parent Record</td><td field="productid" width="80"></td><td field="hole1" width="80">5</td><td field="hole2" width="80">6</td><td field="hole3" width="80">4</td><td field="hole4" width="80">6</td><td field="hole5" width="80"></tr> </tbody> </table>
thanks, Brian
|
|
|
|