Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    setSectionHeaderClass doesnot works!!

    hi,

    i have problem in setting the setSectionHeaderClass
    Code:
            SectionStack stack = new SectionStack();
            stack.setSectionHeaderClass("MySection");
           // other settings 
    }
    private static class MySection extends SectionHeader{
    
            public MySection() {
                setProperty("src","home/section/menu.png");
                setProperty("showRollOver",false);
                setProperty("showDown",false);
                setProperty("showDisabledIcon",false);
                setProperty("showRollOverIcon",false);
                setProperty("capSize",2);
                setProperty("titleStyle","imgSectionHeaderTitles");
                setProperty("baseStyle","imgSectionHeader");
                setProperty("backgroundColor","transparent");
            }
            
        }
    it doesnot works!!
    In my application i hav used many sectionstacks.i need to put a particular style for one of them ,others default style

    so i use this inherited way..
    I also tried by overriding the script in external html page as
    Code:
    <script>
                 isc.ImgSectionHeader.changeDefaults("backgroundDefaults", {
                      src:"home/section/menu.png"
                 })
            </script>
    This works ,but it applies for all..
    how can i put sectionheader for a particular section ..
    Am using smartgwt 2.4 ,Firefox and netbeans
    Last edited by vinuriyer; 20 Jun 2011, 21:21.

    #2
    hi

    I got finally the solution with the help of stuchy..

    check this forum link for solution

    http://forums.smartclient.com/showthread.php?t=11586&page=2

    Comment

    Working...
    X