jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Hide Title Bar Hide Title Bar #77578

    Dinesh Kumar
    Participant

    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 Kumar


    Dinesh Kumar
    Participant

    Hi Dimitar,

    Thanks for your help.
    I found below solution.
    Cretits to mikermcneil

    function 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


    Dinesh Kumar
    Participant

    Hi Dimitar,

    Thanks for your clarification.
    Is there any workaround for resolve this.

Viewing 3 posts - 1 through 3 (of 3 total)