Re: [Dev] Dynamically redraw grid-stack content through UUFClient

2017-04-24 Thread Rajith Roshan
Hi, I once had a offline discussion with SajithAR regarding zoneMaps not initializing. He said zone maps are initialized once because its a heavy operation. He asked me to use renderFragment method without passing the defzone attribute. I am not sure whether this will be a valid for your use case

Re: [Dev] Dynamically redraw grid-stack content through UUFClient

2017-04-24 Thread Udara Rathnayake
Solution is to get the response (HTML) within the callback and do append part within our logic. Following is my onSuccess function, onSuccess: function (data) { > $('.grid-stack').append(data); > } > } > On Mon, Apr 24, 2017 at 5:21 PM, Rajith Roshan w

Re: [Dev] Dynamically redraw grid-stack content through UUFClient

2017-04-23 Thread Udara Rathnayake
I tried populateZonesMap(); before calling renderFragmentImpl() inside UUFClient.renderFragment function. This works. Can we make this a configuration property if there is no other way? On Mon, Apr 24, 2017 at 10:56 AM, Udara Rathnayake wrote: > ​Assume we have following grid-stack div rende

[Dev] Dynamically redraw grid-stack content through UUFClient

2017-04-23 Thread Udara Rathnayake
​Assume we have following grid-stack div rendered through the UUFClient.​ ​ ​Now I want to re-render the same with a different content (Eg:- Change the dashboard layout ) There is a grid-stack function to destroy the existing content[1]. $('.grid-stack').data('gridstack').destroy(true); > So t