EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 04, 2024, 01:14:08 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
>
eDatagrid: How to enable sorting on any column header that is clicked?
Pages: [
1
]
« previous
next »
Print
Author
Topic: eDatagrid: How to enable sorting on any column header that is clicked? (Read 3699 times)
simplescience
Newbie
Posts: 4
eDatagrid: How to enable sorting on any column header that is clicked?
«
on:
June 04, 2015, 06:02:41 PM »
I created an edatagrid and it seems to be working. We would like to sort the grid based on clicking a header name. I see that if I add the "sortable:true" to the "Columns" array, I can click each header, and the asc, desc and reset options work.. but no sorting occurs. Also.. when I add the Columns array, I cannot edit any of the rows.
Is there something I've missed?
Thanks...
Logged
jarry
Administrator
Hero Member
Posts: 2262
Re: eDatagrid: How to enable sorting on any column header that is clicked?
«
Reply #1 on:
June 04, 2015, 06:55:37 PM »
Please set the 'remoteSort' property to false.
Code:
$('#dg').datagrid({
remoteSort:false
});
If you want to use the remote sorting, you have to do the sorting in your server side and then return the sorted data back to the browser.
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...