Categories | Question details Back To List | ||
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. <head> <column width="80" type="dhxCalendarA" sort="str" id="release_date">Release Date</column> <column width="300" type="tree" sort="str" id="application">Application</column> <column width="300" type="txt" sort="str" id="description">Description</column> <column width="*" type="coro" sort="str" id="type">Type <option value="New">New</option> <option value="Upgrade">Upgrade</option> <option value="Dot Release">Dot Release</option> </column> <column width="*" type="txt" sort="str" id="coe">COE / Service Line</column> <column width="*" type="txt" sort="str" id="coe2">COE / Service Line (Secondary)</column> <column width="*" type="txt" sort="str" id="contacts">Contacts</column> <column width="100" type="txt" sort="str" id="proj_team">Project Team</column> <column width="140" type="txt" sort="str" id="support_model">Support Model</column> <column width="*" type="coro" sort="str" id="status">Status <option value="Gate 1">Gate 1</option> <option value="Roll-out">Roll-out</option> <option value="QA">QA</option> <option value="On Hold">On Hold</option> </column> </head> Answer posted by Support on Aug 18, 2008 03:51 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 </column> <afterInit> <call command="enableHeaderMenu" /> </afterInit> </head> |