EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 01, 2024, 04:27:48 PM
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
>
Column order not working with static data
Pages: [
1
]
« previous
next »
Print
Author
Topic: Column order not working with static data (Read 6271 times)
itay-g
Newbie
Posts: 35
Column order not working with static data
«
on:
April 02, 2014, 12:52:09 AM »
Hi,
I'm trying to order a column in datagrid with the order column property.
I tried to initialize a column's order property with 'asc' and 'desc', made the column sortable and remoteSort set to false,
and it seems it's not working.
Is there anything that i'm missing?
Thanks,
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Column order not working with static data
«
Reply #1 on:
April 02, 2014, 01:42:14 AM »
You may need to provide an example or code snippets to demonstrate your issue.
Logged
itay-g
Newbie
Posts: 35
Re: Column order not working with static data
«
Reply #2 on:
April 03, 2014, 01:08:16 AM »
Hi, thanks for the quick response.
I defined a column in javascript and gave it 'asc' order
var column = {
title: 'aaa',
field: 'aaa',
width: 200,
order: 'asc',
sortable: true
}
Additionally, in the grid options I defined the remoteSort=false
I forgot to mention that i'm using treegrid.. maybe that causes the problem?
Thanks,
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Column order not working with static data
«
Reply #3 on:
April 03, 2014, 06:35:56 AM »
Please view this example
http://jsfiddle.net/L3KPQ/
. Clicking the column header to sort that column.
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...