extjs4 - ExtJs 4 How to get around duplicate id multiple tabs issue for state saving -


i have grid panel instantiated on multiple tabs. each instance of grid panel has same columns, different data. trying use state manager save column settings column order, , width.

the problem extjs saves column's (generated)id in database first tab, , next tab generates new ids columns , can't find state information in database new values. can't save , load stateful information.

edit: tried using itemids instead of ids because itemids contained within container won't duplicate id if on multiple tabs. ext seems generate ids if ids not present, regardless of itemid property. added part in case gives better view of i'm trying accomplish: database needs tables have same id, ext needs them different.

the way have gotten around in past has been this...

    id: 'tab_panel_'+this.somthing_that_is_unique_like_a_table_name 

which gives me this...

    <div id='tab_panel_my_first_table'>other information</div>     <div id='tab_panel_my_second_table'>other information</div> 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -