EasyUI Forum
May 04, 2024, 12:14:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / General Discussion / Re: Reload TreeGrid not updating grid on: November 07, 2016, 11:10:26 AM
I figured out that my issue was a data problem. My children records did not have the id field populated. This caused an issue when the reload method attempted to repopulate the data in the grid.

Hope that can help someone in the future.
2  General Category / General Discussion / Re: Reload TreeGrid not updating grid on: November 06, 2016, 10:05:21 AM
Can anyone post an example of a treegrid that works with the Reload method?
3  General Category / General Discussion / Re: Reload TreeGrid not updating grid on: November 06, 2016, 07:06:39 AM
Do I need to rebind the data to the table after I call Reload? I'm stumped here why this isn't updating.
4  General Category / General Discussion / Re: Reload TreeGrid not updating grid on: November 06, 2016, 06:51:47 AM
Yes, the data is correct in the network console, but the grid doesn't update.
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
6  General Category / General Discussion / Re: DataGrid hide rows on: November 05, 2016, 06:46:57 AM
Thank you. Works as expected.

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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!