daviddlyman

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: resize column while maintaining grid width #83009
    daviddlyman
    Participant

    Thanks for taking a look.

    My method for resizing the grid's width was working fine with 50 rows of data, but it is a bit sluggish with 600+. As I mentioned, I am keeping the grid data in a locally stored array. Then, when a resizing event occurs, I run GridUnload() and rebuild the grid.

    It would be ideal if I could simply change the width property of the grid and execute the width sizing method that you are using with ShrinkToFit. Would that be possible?

    Thanks,

    David

    in reply to: sorting date values with alternative display format #82988
    daviddlyman
    Participant

    Tony,

    I spoke too soon. Your suggestion seemed to work, but I just realized that sorting was only functioning for certain cases where my displayed date values in the visible column are all the same year. Since I am not displaying year, I still cannot properly sort values from multiple years. The grid is correctly sorting by the hidden column at first, but not when I click the visible date column.

    The SortArrayData() function for client-side data sets the column to be sorted based on ts.p.lastsort. In other words, it does not care about sortname. Do you have a suggestion for sorting a “local” dataset against the data in a column other than the one that is clicked?

    Thanks,

    David

    in reply to: sorting date values with alternative display format #82963
    daviddlyman
    Participant

    Excellent! That seems to work perfectly. Thanks a million!

    in reply to: sorting date values with alternative display format #82928
    daviddlyman
    Participant

    Tony,

    Thanks for the tip on using afterInsertRow for applying a formatting function to my data.

    The sorting issue is definitely the tougher one to overcome, although I am hoping it is not too bad. I think that the easiest solution is to allow the sort event for a given column to key off of the data in another column. In my case, I have created a hidden column with the date values as milliseconds. If I could tell the visible date column to sort based on the values of the hidden column instead of the values in the column I click, my problems would be solved.

    Thanks,

    David

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!