Announcement

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

    missing API ListGrid.getHeaderSpans

    com.smartgwt.client.widgets.grid.ListGrid#getHeaderSpans - it's in the Javadoc but not in the code.

    All I want to do is rename a headerSpan title. Is there a way to do this (aside from blasting the entire ListGrid)?

    #2
    There's a specific API setHeaderSpanTitle().

    Comment


      #3
      I extended ListGrid and exposed the API I needed to set the header span title after the listgrid is created.

      Pretty easy... and I'm kind of glad I finally learned how to do this.

      Code:
      	public native void setHeaderSpanTitle(String name, String title) /*-{
      		var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();
      		self.setHeaderSpanTitle(name,title);
      	}-*/;

      Comment


        #4
        ha. doh. it's already there.

        thanks though.

        Comment


          #5
          for anyone else wanting to do this, the one small point in setting the HeaderSpan title is when you create your HeaderSpan you need to call setName(unqiue name) to give yourself a reference to the HeaderSpan.

          Comment

          Working...
          X