jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Vladimir,
I am using JqxDockingLayout widget.it have ribbon plugin for panel group functionalities
When the panel have one item .it must use full space of the panel.this is my scenario.$("ul.jqx-widget-header").filter(function () { return $(this).children("li").length == 1 }).toggleClass('hiddenClass')
above code is working fine.
Thanks Mr.vladimir.Thanks
Dinesh KumarOctober 29, 2015 at 2:48 pm in reply to: unable to convert saveLayout method returned result to string unable to convert saveLayout method returned result to string #77516Hi Dimitar,
Thanks for your help.
I found below solution.
Cretits to mikermcneilfunction stringify(obj, replacer, spaces, cycleReplacer) { return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces) } function serializer(replacer, cycleReplacer) { var stack = [], keys = [] if (cycleReplacer == null) cycleReplacer = function (key, value) { if (stack[0] === value) return "[Circular ~]" return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]" } return function (key, value) { if (stack.length > 0) { var thisPos = stack.indexOf(this) ~thisPos ? stack.splice(thisPos + 1) : stack.push(this) ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key) if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value) } else stack.push(value) return replacer == null ? value : replacer.call(this, key, value) } }
Convert array to string
$("#savelayout").val(stringify($('#jqxDockingLayout').jqxDockingLayout('saveLayout')));
this is working fine with me.if you found any better solution pls post to me.Thanks Dimitar
October 29, 2015 at 1:11 pm in reply to: unable to convert saveLayout method returned result to string unable to convert saveLayout method returned result to string #77507Hi Dimitar,
Thanks for your clarification.
Is there any workaround for resolve this. -
AuthorPosts