jQuery UI Widgets › Forums › Navigation › Tree › Set the active row without accompanying event?
Tagged: selectItem, selectitem event, Tree
This topic contains 2 replies, has 2 voices, and was last updated by alastairwalker 1 year, 6 months ago.
Hi – I am trying to set the active row of a Tree without an event being triggered.
The applicable method is: $(‘#jqxTree’).jqxTree(‘selectItem’, element);
But when ‘selectItem’ is used, the event ‘select’ is triggered (i.e. This event is triggered when a tree item is selected – as per documentation.)
In the Grid widget, there is an equivalent method ‘selectrow’ i.e.
but this does not trigger an event.
My question is – there is a method for Tree that can be used to set the active row without an event being triggered at the same time?. (Perhaps there is a work around?)
You could use event.args.type to determine when the event is triggered by mouse click, keyboard or by using the selectItem method.
Its possible values are: ‘mouse’, ‘keyboard’ and null.
Please, check the following Example.
Thank you very much!
The helpful response is really appreciated!
You must be logged in to reply to this topic.