dgrid icon indicating copy to clipboard operation
dgrid copied to clipboard

In Chrome and in IE, but not Firefox, the order of my columns is changed from definition

Open Fierozen opened this issue 13 years ago • 2 comments

In Chrome and in IE, but not Firefox, the order of my columns is changed from the definition. The first column is moved to the second to the last column. Is there a parameter that controls the fixing/sorting order of the columns displayed? Or is this an issue?

Fierozen avatar Jan 20 '13 10:01 Fierozen

I think I found the answer: I'm using a numeric column field name because my headers are dates. I read on the Wiki that when using a object to define columns, the order of column definition will be used - except in the case of numeric field names. So I changed to using the array form, instead of the object form, for my column definition. Now all three browsers keep the intended column order. I'll leave this issue open for a couple of days in case anyone else has something to add. But I believe it is ready to be closed.

Fierozen avatar Jan 20 '13 13:01 Fierozen

Yeah, it sounds like that's what you ran into. Thanks for the update; I'm going to close this now.

ghost avatar Jan 25 '13 20:01 ghost