jQWidgets Forums

Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts

  • PiDome
    Participant

    Hi Peter,

    That makes it more clear, is there a workaround method to destroy these on destroy and/or data refresh? If not there is no problem because my application is still in very early alpha stage, but it will help while debugging.

    Otherwise i will just wait for a new release

    Best regards,
    John.


    PiDome
    Participant

    That is why i added more information because it is not isolated to only when Filterable is set to true and jqxDataTable’s destroy method is called:

    The only difference is that when: “filterable: true, filterMode: “simple” is applied the div contains the columns and when not the div is a white block without the columns.

    So it is not only when the table is destroyed but also with data refreshes, in my case using dataBind function.

    Which could possible help developers to isolate it and make it less wide in possible causes.


    PiDome
    Participant

    I also feel the need to add that when the contents of the table is refreshed via the data adapter with json data extra divs are created containing id’s like: “listBoxjqxWidget37f76680” which hold the column names.

    So it is not only when the table is destroyed but also with data refreshes, in my case using dataBind function.

    I think the title of the subject is not applicable anymore and should be renamed to something like “Bug in column names div removal”.

    Good luck hunting,
    John.


    PiDome
    Participant

    Hi Peter,

    No problem. But i think it is not only when filtering is applied.

    I have changed a little thing to really check it if i’m maybe in error:

    
        function clearHandlers(){
            $("#issuestable").jqxDataTable('destroy');
            $("#knownissuesblock").jqxExpander('destroy');
            
            $("#devicetable").jqxDataTable('destroy');
            $("#macrotable").jqxDataTable('destroy');
            $("#favoritechoices").jqxTabs('destroy');
            $("#favoriteblock").jqxExpander('destroy');
            
            $("#newstable").jqxDataTable('destroy');
            $("#newsblock").jqxExpander('destroy');
    
            alert("called");
    
        }
    

    My clearhandler get’s called because moving to a new ajax page load shows me the alert. When viewing the elements inspector all the divs beginning with: “listBoxgridpagerlistbottom” are staying like for example: “listBoxgridpagerlistbottomissuestable”.

    The only difference is that when: “filterable: true, filterMode: “simple”” is applied the div contains the columns and when not the div is a white block without the columns.

    I hope the above shares some more information and can narrow it down a little bit.

    Best regards,
    John.

    in reply to: Combobox list categories. Combobox list categories. #49883

    PiDome
    Participant

    Hi Peter,

    The page where this is used also has the possibility to edit these values after successful editing i call dataBind(); to refresh the source list. This list is used in multiple comboboxes throughout the page.

    Can i cross bind those arrays retrieved and prepared?

    Best regards,
    John.

    in reply to: Masked input ip address Masked input ip address #49682

    PiDome
    Participant

    Hi Peter,

    I already have it working with custom handlers on, for example, my ip address input field with an jqxinput.

    Thank you in advance for your time.

    John.

    in reply to: Masked input ip address Masked input ip address #49681

    PiDome
    Participant

    Hi Peter,

    Thank you for the response. To better understand the mask are the masked characters included or excluded in the value and only for visibility purposes?

    And is it then possible to use the jqxinput and apply custom handlers and create a custom masked input?

    Best regards,
    John.

    in reply to: Disable cell rendering Disable cell rendering #49410

    PiDome
    Participant

    Hi peter,

    Thank you for your response, i will use an hidden row’s value

    John.


    PiDome
    Participant

    Just passing by, but does record: “Collection>DVD” not select all “Collection” “DVD” descendants? maybe using

    root: “Collection”,
    record: “DVD”,

    and datafields without mapping

    datafields: [
    { name: ‘ID’, type: ‘string’ },
    { name: ‘Title’, type: ‘string’ },
    { name: ‘RatingAge’, type: ‘string’ },
    { name: ‘RunningTime’, type: ‘string’ }
    ],

    Solves it?
    (I’m also struggled a little bit with this, maybe it helps)


    PiDome
    Participant

    Hi Peter,

    Ok, i now understand how you meant wrapping around.

    I understood by wrapping around:
    <div>
    <button>Text</button>
    </div>
    instead of
    <div>Text</div>

    Technically speaking this is replacing with a div instead of wrapping a div around a button.

    Yes i’m using the jqxButtonGroup, and understand the workings better now. I have it working very nice now with a websocket so the correct “button” is selected now when someone else changes the value in an other browser window.

    Maybe for someone else, i didn’t found a method to change the button selection by it’s button div id but only one by it’s index id. Use the code below to do the select change by the div id like this (if the buttons are rendered in order):

    
    function updateRadioButtongroup(divWrappingTheButtons, buttonDivId){
        if ($("#" + divWrappingTheButtons).length !== 0) {
            var buttonIndex = $("#" + buttonDivId).index();
            if(buttonIndex!==undefined && buttonIndex>-1){
                $("#" + divWrappingTheButtons).jqxButtonGroup('setSelection', buttonIndex);
            }
        }
    }
    

    Best regards,
    John.

    in reply to: Data adapter caching Data adapter caching #48924

    PiDome
    Participant

    Hi Peter,

    Thank you for the response.

    Best regards,
    John


    PiDome
    Participant

    Hi Peter,

    As you can see, the button is gone:
    Original (replaced xsl tags with the result):

    
    <button style="padding:4px 16px;" data-command="deviceAction-VUuInZv170-cPAUA4LGMu-0x54" id="deviceAction-VUuInZv170-cPAUA4LGMu-0x54">On</button>
    

    Replaced:

    
    <div style="padding: 4px 16px; margin-left: -1px; float: left;" id="deviceAction-VUuInZv170-cPAUA4LGMu-0x54" class="jqx-button jqx-button-metrodark jqx-group-button-normal jqx-group-button-normal-metrodark jqx-fill-state-normal jqx-fill-state-normal-metrodark jqx-rc-tl jqx-rc-tl-metrodark jqx-rc-bl jqx-rc-bl-metrodark" role="radio">On</div>
    

    The above is fetched from the Google developer tools via the “Elements” tab

    The problem has been fixed by the way by using the id.

    Best regards,
    John.


    PiDome
    Participant

    Hi peter,

    I will solve it by using the div id also as the parameter to execute the runDeviceCommand function.

    Setting the attributes would require extra xsl which is not desired due to the fact that the xsl transformation is done on a raspberry pi where i want as less xsl as possible.

    Thank you for the response.

    Best regards,
    John.

    P.S. Do all the button functions replace the buttons with div’s?

Viewing 13 posts - 16 through 28 (of 28 total)