EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: itay-g on April 02, 2014, 12:52:09 AM



Title: Column order not working with static data
Post by: itay-g 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,


Title: Re: Column order not working with static data
Post by: stworthy on April 02, 2014, 01:42:14 AM
You may need to provide an example or code snippets to demonstrate your issue.


Title: Re: Column order not working with static data
Post by: itay-g 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,


Title: Re: Column order not working with static data
Post by: stworthy on April 03, 2014, 06:35:56 AM
Please view this example http://jsfiddle.net/L3KPQ/. Clicking the column header to sort that column.