EasyUI Forum
May 07, 2024, 11:14:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Reload (bug or not)?  (Read 14419 times)
ClSoft
Jr. Member
**
Posts: 92


View Profile
« on: February 26, 2013, 08:23:13 AM »

I have this (treegrid):
$('#mt').treegrid('reload');
and last selected row is not selected any more (nothing is selected).

This works perfect (datagrid)
$('#mt').datagrid('reload');
ie: last selected row remain selected.

if I can reuse this topic - this does not work:
$('#mt').treegrid('select',5);
« Last Edit: February 28, 2013, 03:07:59 AM by Clarion » Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #1 on: March 03, 2013, 11:37:52 PM »

anybody, please?
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #2 on: March 04, 2013, 01:35:05 AM »

can you show it in an example (jsfiddle) ?
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #3 on: March 04, 2013, 01:55:36 AM »

Hi
I'm not sure how to add some data on jsfiddle?
Basically, I have this code:

<a href="#" class="easyui-linkbutton" onclick="$('#mt_datagrid').datagrid('reload');">Refresh</a>

and it works perfect on datagrid - previously selected row remain relected, after I click on button.

Same code on treegrid (instead of ".datagrid" you can use ".treegrid") does not select any row (nothing is selected).
Thanks.
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #4 on: March 05, 2013, 05:18:27 AM »

Does the treegrid row remain selected for you or nobody need this?
I mean, when you go back from editing and run "reload", it will be nice when you must not search for that row - I think it should remain selected as in datagrid.
Thanks.
Logged
fredk
Newbie
*
Posts: 6


View Profile Email
« Reply #5 on: January 25, 2014, 06:18:00 PM »

Maybe look at this topic : http://www.jeasyui.com/forum/index.php?topic=2815.0
Cheers
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!