EasyUI Forum
May 08, 2024, 12:16:09 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: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid FilterRow (fixed)  (Read 10660 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: August 04, 2014, 04:57:53 AM »

With EasyUi 1.4 the newest version's of Extension "Editable DataGrid" and "DataGrid Filter Row" not working when adding a row with the method "addRow".
If I use an older version of the "DataGrid Filter Row" the row can add!

The new row is shown for a second on the datagrid and then removed automaticly when using method "addRow"

Update: This is also not working with EasyUi 1.3.6!
« Last Edit: August 11, 2014, 06:33:45 AM by Stefan B. » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 04, 2014, 08:49:05 AM »

Please download the newest 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php. If you are using 'edatagrid' plugin with 'datagrid filter' functionality, please declare the 'idField' property for the datagrid.
Code:
$('#dg').edatagrid({
  idField: ...,
  //...
});
$('#dg').edatagrid('enableFilter',...);
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 on: August 04, 2014, 11:58:42 PM »

This fix is not working. The same problem.

I saw that when I click addRow a new empty row is added to the datagrid for a short time.
But then also the data is fetched from the remote server by the given url.

In the last versions of the filter extension this was not so!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: August 05, 2014, 12:29:23 AM »

Please refer to this example http://jsfiddle.net/8v2G8/
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #4 on: August 05, 2014, 07:04:03 AM »

Please refer to this example http://jsfiddle.net/8v2G8/
OK the excample works, but we load the data from remote server with post and href attribute.
Then it is not working!

Can you also try to work with remote data? It looks like not the same. After addRow the remote data loading is triggerd again, and then the new row lost.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #5 on: August 06, 2014, 01:46:41 AM »

Please try to use the updated 'datagrid-filter.js' file, it can be downloaded from http://www.jeasyui.com/extension/datagrid_filter.php
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #6 on: August 11, 2014, 06:34:09 AM »

Yes now it is working.
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!