jQWidgets Forums
Forum Replies Created
-
Author
-
December 16, 2019 at 10:19 pm in reply to: Set color in openDialog from style or backgroud fields Set color in openDialog from style or backgroud fields #107587
Hello,
thank you for your answere, what I want is to change the color of the appointment with the fields.colorContainer. (this part works fine).
Next when we edit the appointment I want to set the colors I choosed before in the fields.colorContainer.I retrew the color by setting the style of the appointment from the database.
Create the appointment with a color works fine (Store in database a blue appointment is ok)
Load appointment from database with style works fine. (load from database a blue appointment is ok)Edit the appointment and set the right color from style into color fields container not work (Only select color is selected in the dropdown list of color)
Maybe you understand beter now, my english is not so good.
Best regards
February 13, 2019 at 1:34 pm in reply to: Update problems with context menu Update problems with context menu #103949Hello,
I resolved one part of the problem…
I changed the order of endupdate and refreshing the grid like this:var liste = getListe(); var listSource = liste; $("#Menu_sub").jqxListBox({ source: listSource, width: 200, height: 200, checkboxes: true }); $("#Menu_sub").on('checkChange', function (event) { $("#JQXgrid").jqxGrid('beginupdate'); if (event.args.checked) { $("#JQXgrid").jqxGrid('showcolumn', event.args.value); } else { $("#JQXgrid").jqxGrid('hidecolumn', event.args.value); } $("#JQXgrid").jqxGrid('refresh'); $("#JQXgrid").jqxGrid('endupdate'); });
Now I can display and use the context menu everytime i need it.
But the header it is not refreshed if i hide one or more columns.
The columns row is hided but not the header.I tried to use jqxgrid.(refreshdata); it works to refresh the header but I can’t use the context menu after i quit it.
Thank you for help
Best regards
FrancoFebruary 12, 2019 at 9:07 am in reply to: Problems with ready function and width 100% Problems with ready function and width 100% #103932Hi peter,
I’m not sure to understand what you mean, have you an example of time out function?
Thank you
Best regardsHello,
This post is resolved, I used this code to retriew formdatas…var form = $("#Option"); //Parser form datas var formDatas = {}; var formArray = form.serializeArray(); $.each(formArray, function () { if (formDatas[this.name]) { if (!formDatas[this.name].push) { formDatas[this.name] = [formDatas[this.name]]; } formDatas[this.name].push(this.value || ''); } else { formDatas[this.name] = this.value || ''; } }); // prepare the data var source = { datatype: 'json', url: 'api/getliste.php', type: 'POST', data: { searchString: formDatas['searchString'], search_by: formDatas['search_by'], 'searchCase[]': formDatas['searchCase[]'], afficheLimit: formDatas['afficheLimit'], afficheLimitPages: formDatas['afficheLimitPages'] }, datafields: [ { name: 'mbrNom', type: 'string'}, { name: 'mbrPrenom', type: 'string'}, ], cache: false, root: 'Rows' };
Best regards
Hello,
Thank you for your answere, I wached the demos, and what I want to do is like this image, is-it possible and how? -
AuthorPosts