Forum Replies Created

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts

  • CXXXV
    Participant

    Anotehr strange issue. WHen examinig the source it has two sets of datafields and no records. Clearly there are records because I can see them on the page.

    [object Object]
       {
          [functions]: ,
          __proto__: {
             [functions]: ,
             __proto__: { }
          },
          _bindingUpdate: [
             length: 0
          ],
          _downloadComplete: [
             length: 0
          ],
          _options: {
             [functions]: ,
             __proto__: { },
             async: false
          },
          _source: {
             [functions]: ,
             __proto__: { },
             async: false,
             dataFields: [
                0: {
                   [functions]: ,
                   __proto__: { },
                   name: "MENID",
                   type: "number"
                },
                1: {
                   [functions]: ,
                   __proto__: { },
                   name: "DESCRIPTION",
                   type: "string"
                },
                length: 2
             ],
             datafields: [
                0: {
                   [functions]: ,
                   __proto__: { },
                   name: "MENID",
                   type: "number"
                },
                1: {
                   [functions]: ,
                   __proto__: { },
                   name: "DESCRIPTION",
                   type: "string"
                },
                length: 2
             ],
             dataType: "json",
             datatype: "json",
             id: "MENID",
             loadallrecords: true,
             record: "",
             recordendindex: 0,
             recordstartindex: 0,
             root: "",
             url: "get_menus.php"
          },
          records: [
             length: 0
          ]
       }

    CXXXV
    Participant

    The whole code, still does not work

                var source =
                {
                    dataType: "json",
                    dataFields: [
                            { name: 'MENID' },
                            { name: 'DESCRIPTION' }
                    ],
                    id: 'MENID',
    				async: false,
    				url: 'get_menus.php',
    	
                };
    			
                var dataAdapter = new $.jqx.dataAdapter(source);
    			
    
                $("#treeGrid").jqxTreeGrid(
                {
                    width: 280,
    				height: 762,
                    source: source,
    				altRows:true,
    				theme:'energyblue',
    				showtoolbar: true,
    				columnsHeight: 20,
        				
    				
    				rendertoolbar: function (toolbar) {
    
    					var container = $("<div style='margin: 5px;'></div>");
    					toolbar.append(container);
    					container.append('<input id="adddmenubutton" type="button" value="Add New Menu" />');	
    
    					
    					$("#adddmenubutton").on('click', function () {
    					
    					PurePopup.prompt({ 
    						  title: "Enter new menu", 
    						  buttons: {okButton: 'Ok', cancel: 'Cancel'}, 
    						  inputs: {menuVal: 'MENU: '}, 
    						  vals: {menuVal: ''}, 
    						},				
    					
    						function(result) {			
    							if (result.confirm == 'okButton') {
    							
    								jQuery.ajax({
    								type: 'POST',
    								url: 'insert_new_menu.php',
    								datatype: 'json',
    									 data:{
    											MNAME:result.menuVal
    										  },
    											 success: function(result){
    											 console.log(result);
    										   }		  
    								});	
    								
    								$("#treeGrid").jqxGrid('updateBoundData');	
    								
    							}
    						}
    					);							
    					
    					
                        });			
    				},	
    
                    columns: [
                      { text: 'MENU',  dataField: 'DESCRIPTION', width: 262},
                    ]
    
                });	

    CXXXV
    Participant

    I did look at that example. What I need is to be able to format the ‘SUBJECT’ of an appointment so that in the MONTHVIEW it will display TOP justified and with embedded CARRIAGE RETURNS.

    I tried modifiying the data.html portion but that did not work.

    text = "<style='top:2px; position: absolute; text-align:center;'>SPAGHETTI <br> SALAD <br> BREAD</>";

    In monthview the appointment always shows verically centered.


    CXXXV
    Participant

    I copied the code from the “Default Functionality” sample.


    CXXXV
    Participant

    No where in that example does it do anything with the appointment HTML formatting. Please answer my questionn.


    CXXXV
    Participant

    BUMP

    in reply to: Scheduler w/o appointments Scheduler w/o appointments #101126

    CXXXV
    Participant

    I think I figured it out.

    in reply to: Issue with date in column Issue with date in column #101042

    CXXXV
    Participant

    Actually I don’t need time zone, hence the format of ‘yyyy-MMpdd’. So why does it care then. What is also curious is that I use them same setup in other grid without any issues. So where to I define to the jqxFrid columns that this is a date only and not datetime.


    CXXXV
    Participant

    So ellipsis does nothing then. It should behave like all other grids, where it pops up a text area for editing. This should be one of the properties for columntype.

    Additionally, jsFiddle does not work any more.

    in reply to: Incremental Search Incremental Search #100523

    CXXXV
    Participant

    I have tried that and not been able to make it work. Even when using the examples from the site.

    in reply to: Display totals only Display totals only #94779

    CXXXV
    Participant

    BUMP

Viewing 11 posts - 16 through 26 (of 26 total)