EasyUI Forum
May 01, 2024, 04:27:48 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: Column order not working with static data  (Read 6271 times)
itay-g
Newbie
*
Posts: 35


View Profile
« 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


View Profile Email
« 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


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!