简体   繁体   中英

ExtJs Error: Uncaught TypeError: Cannot read property 'removeCls' of undefined

I have an error when automatically load an Store data for a Grid and select records.

I hope somebody could help me because I tried many way of fix this and I cant...

I receive this error: Uncaught TypeError: Cannot read property 'removeCls' of undefined

This is the context... I have 3 grids each of those have an Store and a Ext.selection.CheckboxModel. The third grid depends from de records selected (checked troght the selection checkbox model) in the second grid to load its information and after the information is loaded it marks (using the his own selection checkbox model) some records. The same happens with the second grid that depends in the first one lets say a kind of cascade where the main information comes from the user having access to some countries (first grid), and based on the countries where he has access I load the information of the states that belongs to the counstries where the user has access and once the information of those states is loaded I select those states where the user has access and so on to continue with the cities.

Thank you

我终于可以解决问题了……发生的事情是,根据问题的描述,我有3个网格,一个网格相互依存,但是这些网格位于可折叠的面板内,因此用户一次只能看到一个网格。这个问题影响了我的逻辑,因为我正在加载每个网格,然后检查(标记)用户具有的记录,但是只有第一个网格的第一个面板才被扩展...所以基本上我要做的就是加载信息从第一个网格开始,然后选择(检查)所需的记录并继续加载下一个网格的信息...但是现在在检查其记录之前,我使用此网格扩展了面板,因此它不会引发错误,因为它不可见在我检查记录时给了我错误...事实上,我不喜欢这种解决方案,但至少它现在可以正常工作...谢谢!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM