finnsson / pagerjs

The Single Page Application Framework for KnockoutJS
http://pagerjs.com/
MIT License
271 stars 68 forks source link

Update view model after parameter changes #209

Open waltersf opened 9 years ago

waltersf commented 9 years ago

Hi,

I'm creating a page with a sortable table. I'd like to sort rows based on some columns. For example, I have these URLs:

http://localhost:61349/site/DataSource#inicio?ordenar=Nome http://localhost:61349/site/DataSource#inicio?ordenar=Descricao

Notice the page and its pageId are the same, but the parameter ordenar (order, in Portuguese) changes according to the column. I didn't find an event where I could update my view model (through an AJAX call). Other events, such as withOnShow() and sourceLoaded() are not being triggered. Any suggestion?

Thanks in advance

Sanprof commented 9 years ago

I also have problem with this.