EasyUI Forum
September 13, 2025, 11:57:04 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: edatagrid with scrollview, addRow problems  (Read 9036 times)
phunksta
Jr. Member
**
Posts: 54


View Profile Email
« on: March 02, 2015, 04:41:16 AM »

Hi,

I have an issue using an edatagrid extension, with scollview extension.

At first, using the function $('#eg').edatagrid('addRow'), the view jumps past the populated rows, leaving a large white space. The new row is added but becomes invisible. User must cancel to return to normal, but cannot insert their data.

I then tried $('#eg').edatagrid('addRow',0) to insert at the 'top' of the table, which works fine if the user has not scrolled/paged yet, but if they do then again the row is inserted outside of the viewable area, and user is stuck as before.

I'm looking for a workaround involving auto-scrolling to the top of the view before invoking addRow, but ideally the 'insert' row would be frozen somehow and would always appear at the top regardless of where the user had scrolled to.

This is easyui 1.4.1, with both extensions freshly downloaded.

Hope you can help!
Logged
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« Reply #1 on: March 02, 2015, 07:47:01 AM »

i had a similiar issue using scrollview in datagrid. but i'm not using edatagrid extension, just modify normal datagrid and adding CRUD feature.

here is my post, http://www.jeasyui.com/forum/index.php?topic=4465.msg10784#msg10784, hope it helps
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
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!