jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • safraga
    Participant

    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


    safraga
    Participant

    Hello,
    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
    Franco


    safraga
    Participant

    Hi peter,
    I’m not sure to understand what you mean, have you an example of time out function?
    Thank you
    Best regards

    in reply to: Send form data to server Send form data to server #102896

    safraga
    Participant

    Hello,
    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

    in reply to: Custom header menu Custom header menu #102886

    safraga
    Participant

    in reply to: Custom header menu Custom header menu #102885

    safraga
    Participant

    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?

    Column Chooser

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