EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
March 05, 2026, 10:46:47 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
datagrid + formatter
Pages: [
1
]
« previous
next »
Print
Author
Topic: datagrid + formatter (Read 8388 times)
rezzonico
Full Member
Posts: 186
datagrid + formatter
«
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
Re: datagrid + formatter
«
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
Re: datagrid + formatter
«
Reply #2 on:
January 24, 2019, 01:57:43 AM »
Thanks a lot !
Miche
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...