Results 1 to 2 of 2

Thread: Grid with custom elements

  1. #1
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    8
    Vote Rating
    0
      0  

    Question Grid with custom elements

    Hello,
    I am supposed to create a grid displaying custom elements with data from a store, each containing a timestamp. I would like the grid to group/sort the elements in hour intervals. If no elements exist for a specific hour interval I would still like to have the grouping shown. The grid grouping feature seemed like an obvious choice, but it appears that empty groupings cannot be shown. Also, the store is continuously being updated meaning that data often needs to be refreshed.

    Does anyone have a suggestion to which approach I should take to implement this?

    I have tried to exemplify the desired structure below:
    • 0:00
    • 1:00
      • <element with timestamp 1:33>
    • 2:00
      • <element with timestamp 2:03>
      • <element with timestamp 2:40>
    • 3:00
    • 4:00
      • <element with timestamp 4:00>
      • <element with timestamp 4:33>
      • <element with timestamp 4:59>
    • 5:00
    • 6:00
    • 7:00
      • <element with timestamp 7:00>
      • <element with timestamp 7:59>
    • 8:00
    and so on

  2. #2
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Answers
    59
    Vote Rating
    59
      0  

    Default

    A treegrid with just one level might work for you: http://cdn.sencha.com/ext-4.1.1a-gpl.../treegrid.html

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •