EasyUI Forum
March 05, 2026, 09:15:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid + formatter  (Read 8384 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« on: January 23, 2019, 06:21:24 AM »

Hi all,

I have a datagrid and a formatter function (in order to display the "description" instead of the "id").
The formatter function starts an ajax request that do a "SELECT".
All is ok.

The problem
--------------
I some case I need to display 5000 lines.
In this case the formatter function is called 5000 times (this is too much !!).

Question
----------
How to solve this ?
Is it possible to return in the json string the "id" and also the "formatter-code".


Thanks
Miche
« Last Edit: January 23, 2019, 06:24:58 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 23, 2019, 11:36:26 PM »

If possible, please return the 'id' with the formatted 'description' in your server side to avoid the calculating times in client side. You can also apply the scrollview to display large dataset page by page.
Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #2 on: January 24, 2019, 01:57:43 AM »

Thanks a lot !

Miche
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!