Announcement

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

    Hilites crash

    When adding higlites to my ListGrid i get the following error:
    Code:
    /ISC_Core.js
     lineNumber: 3512
     stack: isc_Canvas_applyHilites()@http://127.0.0.1:8888/cmtclient/sc/modules/ISC_Core.js:3512
    isc_Canvas__setupHilites([object Array])@http://127.0.0.1:8888/cmtclient/sc/modules/ISC_Core.js:3511
    isc_Canvas_setHilites([object Array])@http://127.0.0.1:8888/cmtclient/sc/modules/ISC_Core.js:3507
    Without them - it works without any problems.
    The definition is done without any Criterias (to be shure the issue is not there) !
    Code:
    		Hilite[] hilites = new Hilite[] {
    		new Hilite() {
    			{
    				setTextColor("#FFFFFF");
    				setBackgroundColor("#639966");
    				setCssText("color:#3333FF;background-color:#CDEB8B;");
    				setId("0");
    			}
    		} };
    Can someone point me to the problem ??

    thanks

    #2
    Need to post version information, and please get a stack trace from IE in compiled mode. It has more information.

    Comment


      #3
      version is smartgwt 2.4
      and in ie it says - "length" is null or no object (translated from the German message)

      Thats the message from the DeveloperConsole:
      Code:
      21:49:21.710:MUP7:WARN:Log:Error:
      	''length' ist Null oder kein Objekt'
      	in http://127.0.0.1:8888/cmtclient/sc/modules/ISC_Core.js
      	at line 3512
          Canvas.applyHilites()
          Canvas.$63j(_1=>Array[1], _2=>undef)
          Canvas.setHilites(_1=>Array[1])
          TreeGrid.rowClick(_1=>Obj{name:Bearbeitungsmaske}, _2=>2, _3=>0)
          [a]TreeGridBody.rowClick(record=>Obj{name:Bearbeitungsmaske}, rowNum=>2, colNum=>0)
          GridRenderer.$29y(_1=>2, _2=>0)
          GridRenderer.click(Obj, undef)
          Class.invokeSuper(_1=>null, _2=>"click", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
          Class.Super(_1=>"click", _2=>Obj{length:2}, _3=>undef)
          TreeGridBody.click(_1=>Obj, _2=>undef)
          Canvas.handleClick(_1=>Obj, _2=>undef)
          [c]EventHandler.bubbleEvent(_1=>[TreeGridBody ID:isc_SideNavTree_0_body], _2=>"click", _3=>undef, _4=>undef)
          [c]EventHandler.handleClick(_1=>[TreeGridBody ID:isc_SideNavTree_0_body], _2=>undef)
          [c]EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
          [c]EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
          [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>Obj{type:error})
          anonymous(event=>undef)
              "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"
      Last edited by jhollerer; 1 Mar 2011, 12:54.

      Comment


        #4
        I have the same problem... have you figured out anything yet?

        I am using smartgwtee-2.4

        Any help would be greatly appreciated.

        Thank you.

        - Bob

        Comment


          #5
          Hi,

          i defined the Highlite[] as a static variable within the class (as in the sample) and then it worked !

          Also i added the DataSource after the Highlites are set (dont know if that would have made any changes)!

          Hope that helps ...

          Comment

          Working...
          X