0

I have a requirement where I need to do client side sorting on a column that has two dates separated by 'hyphen'. I need to be sorting on the first date of the two dates. So basically my 'Effective Dates' column in the grid would have:

beginDate - endDate

The Effective Dates column need to be sorted on the beginDate.

I know this is possible if there is only one date in the column by specifying sorttype:date in the colModel for Effective Date. But in my case I have two dates in the column separated by a -.

Wondering if anyone has come across this?

Thanks

4

1 回答 1

0

不确定这是否是最好的方法 - 但我最终得到了两列(开始日期列和结束日期列),隐藏边框并在结束日期列上禁用排序。对样式进行了一些调整,使它们看起来像一列。

于 2012-03-17T23:00:19.660 回答