Empty message in treepanel

602 views Asked by At

Is there a way to add empty Text config to tree panel in EXT?

Here is some sample Fiddler i found in web which meets my use case Sampe Fiddle

In this user allowed to search tree if the given string matches then filtered tree will be displayed.

My case is assume when no node matches requirement , How to show to end user saying "No Node is found"

1

There are 1 answers

1
John Rice On

There is an emptyText config that can be used. Here is that same fiddle you referenced, updated to include

emptyText: 'No Node is found',

https://fiddle.sencha.com/#fiddle/1num

See also: http://docs.sencha.com/extjs/6.2.1/classic/Ext.grid.Panel.html#cfg-emptyText

You mentioned in a comment above that you are using Ext version 3. In that case see: http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.grid.GridView-cfg-emptyText

here is a view of the fiddle showing the emptyText value