コード例 #1
0
  // Events //
  @Override
  protected void onInitialize() {
    super.onInitialize();

    this.add(JQueryWidget.newWidgetBehavior(this));

    if (this.template != null) {
      this.add(this.templateBehavior = new KendoTemplateBehavior(this.template));
    }
  }
コード例 #2
0
  // Events //
  @Override
  protected void onInitialize() {
    super.onInitialize();

    this.add(this.sourceBehavior = this.newAutoCompleteSourceBehavior());

    this.add(
        JQueryWidget.newWidgetBehavior(
            this)); // cannot be in ctor as the markupId may be set manually afterward

    if (this.template != null) {
      this.add(this.templateBehavior = new JQueryTemplateBehavior(this.template));
    }
  }