【问题标题】:I want to sort my store in sencha touch facing issues我想在 sencha touch 中对我的商店进行分类,遇到问题
【发布时间】:2017-09-01 15:21:48
【问题描述】:

我的对象中有很多字段,例如 {id, trackName , mtp , mtpDisplay} 我正在使用下面的存储方法按 mtp 字段对数据进行排序。但是它的 mtpDisplay 设置为 0。

 renderTodayEntriesView: function (startIndex, endIndex) {
    entriesStore = Ext.getStore('TodaysEntryTrackStore');
    entriesStore.data.sort('mtp','ASC');
   // After this mtpDisplay is settingt to 0
 }

【问题讨论】:

    标签: extjs sencha-touch-2


    【解决方案1】:

    您的问题与此类似:extjs - Sort store alphanumerically and case insensitively。在第一个答案上实现该函数,并在需要对数据进行排序时调用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-05
      • 2014-02-21
      • 1970-01-01
      • 2012-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-17
      相关资源
      最近更新 更多