jQWidgets Forums
Forum Replies Created
-
Author
-
February 22, 2014 at 2:06 pm in reply to: Maybe a bug in destroy method when using filtering? Maybe a bug in destroy method when using filtering? #49931
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.February 21, 2014 at 10:00 pm in reply to: Maybe a bug in destroy method when using filtering? Maybe a bug in destroy method when using filtering? #49914That 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.
February 21, 2014 at 9:01 pm in reply to: Maybe a bug in destroy method when using filtering? Maybe a bug in destroy method when using filtering? #49904I 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.February 21, 2014 at 3:30 pm in reply to: Maybe a bug in destroy method when using filtering? Maybe a bug in destroy method when using filtering? #49888Hi 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.February 21, 2014 at 2:52 pm in reply to: Combobox list categories. Combobox list categories. #49883Hi 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.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.
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.Hi peter,
Thank you for your response, i will use an hidden row’s value
John.
February 6, 2014 at 8:30 am in reply to: XML – double data in DataTable XML – double data in DataTable #49067Just 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)February 4, 2014 at 2:08 pm in reply to: Custom tags added to button, where are they? Custom tags added to button, where are they? #48936Hi 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.Hi Peter,
Thank you for the response.
Best regards,
JohnFebruary 4, 2014 at 10:45 am in reply to: Custom tags added to button, where are they? Custom tags added to button, where are they? #48923Hi 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.February 3, 2014 at 7:26 pm in reply to: Custom tags added to button, where are they? Custom tags added to button, where are they? #48873Hi 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?
-
AuthorPosts