Re: Updating list view after data addition.

2013-07-25 Thread Pranav Saxena
There's not much significant difference between the two except - The one I suggested just refreshes the entire window (listView+ other extra items on the UI) but the one which you wrote would just refresh the listView. From the end user perspective , you won't realize the significance since listV

RE: Updating list view after data addition.

2013-07-25 Thread Jessica Wang
Ian, > What is the correct way of handling this table update? call "args.response.success()" with the embedded object returned in API response. e.g. API response is: { "createaccountresponse": { "account": { "id": "7005b368-5da6-4a8b-a588-e7c5c113c40e", "nam

Re: Updating list view after data addition.

2013-07-25 Thread Ian Duffy
Hi Pranav, That worked nicely. Thank you. What is the advantage of $(window).trigger('cloudStack.fullRefresh'); over $('.list-view').listView('refresh'); On 25 July 2013 12:31, Pranav Saxena wrote: > Hey Ian , > > So you got to code this up for fetching the latest state for the listvView. > Wh

Re: Updating list view after data addition.

2013-07-25 Thread Pranav Saxena
Hey Ian , So you got to code this up for fetching the latest state for the listvView. What you have done is also right but I would suggest you try something like this in your "success block" - $(window).trigger('cloudStack.fullRefresh'); Let me know if this solves your problem. Thanks, Pranav