PDA

View Full Version : [CLOSED] [2.0] History



Timothy
May 30, 2012, 12:54 AM
Hello,

it would appear that the history control does not register a global accessible name in JavaScript. I can't access the following:



@(Html.X().History()
.ID("Path")
)


With the following JavaScript:



...
alert(App.Path);
...


Works for other controls, like tree panels etc.

Cheers,
Timothy

Vladimir
May 30, 2012, 9:18 AM
History control is singleton therefore just use


Ext.History

Timothy
May 30, 2012, 11:42 AM
In that case, would I even need to add a control to my page then?

Cheers


History control is singleton therefore just use


Ext.History

Vladimir
May 30, 2012, 11:46 AM
Yes, you have to add control to the page because in this case only the 'init' method of History control will be called (init method calling is required to activate History widget)

Timothy
May 30, 2012, 11:47 AM
Thanks! You can mark this one closed.

Cheers,
Timothy