Edit this page

messages Object

The text messages displayed in the widget. Use it to customize or localize the messages.

Example - customize TreeView messages

<div id="panelbar"></div>
<script>
$("#panelbar").kendoPanelBar({
  dataSource: {
    transport: {
      read: function(options) {
        // request always fails after 1s
        setTimeout(function() {
          options.error({});
        }, 1000);
      }
    }
  },
  messages: {
    retry: "Wiederholen",
    requestFailed: "Anforderung fehlgeschlagen.",
    loading: "Laden..."
  }
});
</script>

messages.loading String (default: "Loading...")

The text message shown while the root level items are loading.

Example - customize loading message

<div id="panelbar"></div>
<script>
$("#panelbar").kendoPanelBar({
  dataSource: {
    transport: {
      read: function(options) {
        // request always fails after 1s
        setTimeout(function() {
          options.error({});
        }, 1000);
      }
    }
  },
  messages: {
    loading: "Laden..."
  }
});
</script>

messages.requestFailed String (default: "Request failed.")

The text message shown when an error occurs while fetching the content.

Example - customize requestFailed message

<div id="panelbar"></div>
<script>
$("#panelbar").kendoPanelBar({
  dataSource: {
    transport: {
      read: function(options) {
        // request always fails after 1s
        setTimeout(function() {
          options.error({});
        }, 1000);
      }
    }
  },
  messages: {
    requestFailed: "Anforderung fehlgeschlagen."
  }
});
</script>

messages.retry String (default: "Retry")

The text message shown in the retry button.

Example - customize retry message

<div id="panelbar"></div>
<script>
$("#panelbar").kendoPanelBar({
  dataSource: {
    transport: {
      read: function(options) {
        // request always fails after 1s
        setTimeout(function() {
          options.error({});
        }, 1000);
      }
    }
  },
  messages: {
    retry: "Wiederholen"
  }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy