jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 59 total)
  • Author
    Posts

  • EricK
    Participant

    The problem is in another area of code.
    The scheduler data is from a php mysql. In the process of updating the data to the database the following causes the error.
    set the appointment ID

    $(“#scheduler”).on(‘appointmentAdd’, function (event) {
    var args = event.args;
    var appointment = args.appointment;
    …..
    $.ajax({
    …..
    success: function (data, status, xhr) {
    $(‘#scheduler’).jqxScheduler(‘setAppointmentProperty’, appointment.id, ‘id’, ‘d’+data[0].activityid);
    )

    });
    });

    Can I set the appointment id this way? If I do not set the id and let the scheduler set it then it works correctly.
    I need to be able to set the id.

    Eric


    EricK
    Participant

    Peter,
    If you could, I have setup a test web page to show the duplication.

    I need you to enter a ‘d’ in the employee filter and then select the add button. It will show duplicate rows.
    You can view the page source to verify the coding. This is only a testing area and will be removed later.

    How do I send you a link, I prefer not to add it to my post.

    Thanks,
    Eric


    EricK
    Participant

    Question answered.
    Simply overlooked…
    When loading jqxWidget page into an existing jqxWidget page be sure to remove any duplicate links to widgets.

    That’s it.
    Thanks

    in reply to: validation event from PHP validation event from PHP #81511

    EricK
    Participant

    Thanks for the suggestion.

    This example returns html code back to login.

    How can I capture the returning data (echo) to further check that it was success or fail?

    I would like to return a true or false from the login.php


    EricK
    Participant

    Dimitar,
    Thank u for the answer. The only problem is that when the grid is in checkbox mode it will not navigate with the keyboard.
    You can test this with you demo above.

    Was there a different different demo that showed how to select all check boxes from the column header?

    Thanks
    Eric


    EricK
    Participant

    Hello All,
    Would like to use the selectmode: checkbox but it does not allow cell editing.
    I like the feature of selecting all checkboxes with the column header box.

    Does the selectmode offer multiple options?

    Wanted to look at the Custom Rows Selection but the link go nowhere. Do you have a demo where cell editing is available and option for checkbox column
    where all rows can be checked like the checkbox mode?
    Could you please

    in reply to: Updating dataadaptor using php Updating dataadaptor using php #78142

    EricK
    Participant

    Hello Peter,
    Thanks for the info.
    The example binding to json does not show a legend, when the showLedgend is set to true.
    Is this an issue still working on?

    Thanks,
    Eric

    in reply to: Updating dataadaptor using php Updating dataadaptor using php #78141

    EricK
    Participant

    Please disregard this entry.

    in reply to: Color selector Color selector #78114

    EricK
    Participant

    Hristo, I think this will work.
    Thanks

    in reply to: editDialogCreate editDialogCreate #77951

    EricK
    Participant

    Peter,
    Let me make sure of clarity. Your stating that I should create my own widget on the dialog window or create my own dialog window with my custom widgets.

    in reply to: editDialogCreate editDialogCreate #77948

    EricK
    Participant

    Thanks for the quick feed back. I considered creating a new widget.
    If I create my own widget, how do I keep the dialog from opening.

    in reply to: jqxInput Editable parameter jqxInput Editable parameter #56676

    EricK
    Participant

    Peter,
    Thank you for the quick response.
    The only problem is that I use the jqxInput source features, which the jqxEditor does not.
    If I use the disable option on the jqxInput, can I change the way it appears?
    and if so what would be the class code.
    EricK


    EricK
    Participant

    Dimitar,

    Thank you for your response.
    I wanted to let you know that the problem was in the html of the navigation bar section.
    Not sure why…..
    Had this:

    <div id='navigationbar'>
            <div><h4 style ="margin-top:2px; margin-bottom:2px;">Sales Calendar</h4></div>
           	<div id="calendar"></div>  <***************
           	<div><label id="act">Activity</label><input type="button" style="margin-left:20px" id="Add" value="Add" /></div>       	
          	<div id="events"></div>
     </div>
    

    Changed it to:

    <div id='navigationbar'>
    	<div><h4 style ="margin-top:2px; margin-bottom:2px;">Sales Calendar</h4></div>
           	<div><div id="calendar"></div></div>
           	<div><label id="act">Activity</label><input type="button" style="margin-left:20px" id="Add" value="Add" /></div>       	
           	<div id="events"></div>
     </div>
    

    This works correctly, but not sure why I had to add an extra <div> for the calendar.
    By the way, if I add an extra <div> for the event. Then event table does not show.

    Thanks,
    Eric


    EricK
    Participant

    Additional comments.
    I have discovered the size of the calendar is slightly higher, which produces a scroll bar in the content area.

    How does the navigation bar handle content area as far as sizing. I assumed if you created the navigation bar with a specific height and filled the content area with a widget that is smaller the content area would not re-size.
    So, apparently the navigation bar will re-size…….based on the size of the content.

    Sorry this is so confusing…

    in reply to: jqxInput auto complete jqxInput auto complete #55745

    EricK
    Participant

    Hey Peter,
    Hopefully this will finish this post.

    Here is my code. I would like to make the formatdata dynamic.

    
    var lsql = 'company';
               	 
    var csource = function (query, response) {
    var dataAdapter = new $.jqx.dataAdapter
      (
        { 
          datatype: "json",
          datafields: [
          { name: 'name'},
          { name: 'id'}	
          ],
          id: 'id',
          url: 'listdata.php'
          },
          {
           	autoBind: true,
            formatData: function (data) {
              data[lsql] = query;  ***** dynamic with varible
              return data;
            },
            loadComplete: function (data) {
              if (data.length>0){
                response($.map(data, function (item) {
                    return {
                    label: item.name,
                    value: item.id
                    }
                }));                                
    	  }
         	}
         }
    )
    };
    
    $("#company").jqxInput({ source: csource, width: 200, height: 22 });
    $("#location").jqxInput({ source: csource, width: 200, height: 22});
    

    I don’t think I am working the logic correctly. Can I pass a parameter to the csource when I setup the source:
    Or do I need to approach this in another method.

    Thanks so much for help.

Viewing 15 posts - 31 through 45 (of 59 total)