enableHeaderMenu not working if header initialized from XML

HeaderMenu is working fine if initalized by script but does not come if the header is initialized by XML .



The js code does not report any error or warning.



The code for header in the xml.





Release Date

Application

Description

Type

New

Upgrade

Dot Release



COE / Service Line

COE / Service Line (Secondary)

Contacts

Project Team

Support Model

Status

Gate 1

Roll-out

QA

On Hold







In existing version, header menu must be initialized only after header created.
When configuration loaded from XML it can be done

a) after xml loading

grid.load(url,function(){
grid.enableHeaderMenu();
});

b) or directly from XML