2014-02-11 51 views
0

不同的記錄我有一個包含以下記錄的Ext JS 4:多個網格顯示來自同一家商店

{"resultList":[ 
{"type":"subscriber", 
    "subrecord1":[{"dateVal":1390475422000,"typeId":0,"name":"abcd"}, 
       {"dateVal":1390475422567,"typeId":1,"name":"kdjjd"}], 
    "subrecord2":[{"messageDate":1390475489899,"typeId":0,"location":"delhi"}, 
       {"messageDate":1390485422567,"typeId":1,"location":"pune"}, 
       {"messageDate":1390475498901,"typeId":1,"location":"mumbai"}] 

      }],"success":true,"total":1,"validationErrors":false} 

現在我想顯示subrecord1在一個網格和subrecored2在另一個網格中的JSON數據存儲。 Grid1包含列'dateVal','typeId'和'name'。 Grid2包含coulmns'messageDate','typeId'和'location'。

我該如何從同一商店購買?

在此先感謝

回答

0

我建議你設置2個存儲不同的讀者,看數據的root不同。您可以讓每個數據獲取自己的數據,或者在加載完成後從第一個數據和其他加載數據中獲取數據。