jQWidgets Forums
Forum Replies Created
-
Author
-
November 21, 2016 at 3:33 pm in reply to: Binding jqxGrid to JSON using PHP Binding jqxGrid to JSON using PHP #89195
Hello Dimitar,
Thank you! You’re right…
Best regards,
Christophe ToussaintNovember 17, 2016 at 5:13 pm in reply to: I don't understand why I receive 2 times the popup on function (event). I don't understand why I receive 2 times the popup on function (event). #89125Hello Hristo,
Thank you for your reply. Even if my problem is seen also on Chrome, I will follow this topic.
Best regards,
Christophe ToussaintNovember 16, 2016 at 7:03 pm in reply to: How can I run the code of another php page when I click on a jqxswitchbutton How can I run the code of another php page when I click on a jqxswitchbutton #89099Hello Hristo Hristov,
Thank you for your fast reply. I bind the events on
$('.jqx-switchbutton').on('unchecked', function (event) {
(not on ‘checked’ event but this is a personal choice).
I used only one$(document).ready(function () {
I didn’t understand the way to usevar data = dataAdapter.records
, can you please explain me?That code is working but it also could be interesting to know your opinion about
var data = dataAdapter.records
.<script type="text/javascript"> $(document).ready(function () { $('#button').jqxSwitchButton({ height: 27, width: 81, checked: false }); $("#dropdownlist").jqxDropDownList({}); $('.jqx-switchbutton').on('unchecked', function (event) { // prepare the data var source = { datatype: "json", datafields: [ { name: 'CompanyName' }, { name: 'ContactName' }, { name: 'ContactTitle' }, { name: 'Address' }, { name: 'City' }, ], url: 'data.php' }; var dataAdapter = new $.jqx.dataAdapter(source); $("#dropdownlist").jqxDropDownList( { source: dataAdapter, width: 200, height: 25, selectedIndex: 0, displayMember: 'CompanyName', valueMember: 'ContactName' }); }); $('.jqx-switchbutton').on('checked', function (event) { $("#dropdownlist").jqxDropDownList({ source: "", }); }); }); </script>
Thanks a lot for your advice!
Best regards,
Christophe ToussaintNovember 15, 2016 at 11:51 pm in reply to: How can I run the code of another php page when I clcik on a jqxswitchbutton How can I run the code of another php page when I clcik on a jqxswitchbutton #89073oups, not on the good section. Sorry
-
AuthorPosts