jQuery UI Widgets Forums Grid Edit and Update datetimeinput column in jqxgrid

This topic contains 16 replies, has 2 voices, and was last updated by  Dimitar 9 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author

  • muthu
    Participant

    Hi,

    I’ve using editing option in jqxgrid. when i edit data’s in grid, i can able to update all data (text,date), but i cannot able to update particularly datetimeinput column..

    any one have solution for this??

    -muthu


    Dimitar
    Participant

    Hi muthu,

    There is no such issue with the current version of jQWidgets, as demonstrated by the online example Editing.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    Hi Dimitar,

    Thans for your response..

    I’m trying to edit grid data’s in Popup editor. if i set cell value for the datatimeinput column, it’s not updated properly..

    see my code what i did,,

    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘lca_agreementStartDt’, EdCapAgagreementStartDt);

    lca_agreementStartDt is datatime column and EdCapAgagreementStartDt is “2015-02-19 01:56:30”.


    Dimitar
    Participant

    Hi muthu,

    The following fiddle shows that this functionality is working fine: http://jsfiddle.net/Dimitar_jQWidgets/2draqL0L/. Please make sure you have included a reference to globalize.js in your page.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    Hi Dimitar,

    Thanks for your response.

    Just visit the link once again. in that, the input date is “2015-02-19 01:56:30” ($(“#jqxgrid”).jqxGrid(‘setcellvalue’, 0, “date”, “2015-02-19 01:56:30”); )

    but, it’s updated current datetime only.!!

    Please give a solution for this..

    -muthu


    Dimitar
    Participant

    Hi muthu,

    I am sorry, it seems that the code works only in Google Chrome as it is. Since the datafield of the column you are editing is of type ‘date’, you would have to pass a JavaScript Date object to the method setcellvalue, i.e.:

    var date = new Date(2015, 01, 19, 01, 56, 30);
    $("#jqxgrid").jqxGrid('setcellvalue', 0, "date", date);

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    Hi Dimitar,

    Thanks for your response.

    i’ve did the necessary changes in my code, but still i’m getting error not updating the values..

    the error is: TypeError: f is null

    …height();var E=this._hostwidth!=undefined?this._hostwidth:this.host.width();if(t…

    jqxgrid.js (line 7)

    -muthu


    muthu
    Participant

    actually i’m getting value from

    $(“#EditAcqSrcreceivedByPublisher”).jqxDateTimeInput({width: ‘233px’, formatString: “yyyy-MM-dd h:mm:ss”});

    and updating the values into jqxgrid..


    Dimitar
    Participant

    Hi muthu,

    Here is how to achieve this, too: http://jsfiddle.net/Dimitar_jQWidgets/2draqL0L/1/.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    Hi Dimitar,

    Thanks, that is correct..

    But, im my programme it show “undifiened” error..

    i’m using the below code only .. “selectedDate = $(‘#jqxdatetimeinput’).jqxDateTimeInput(‘val’);”

    and i’ve included the below listed files.. for different features ..

    <script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxscrollbar.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxmenu.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxcheckbox.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxlistbox.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdata.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.pager.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.selection.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.edit.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxwindow.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxinput.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.filter.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.sort.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxpanel.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.columnsresize.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdropdownlist.js”></script>
    <script type=”text/javascript” src=”jqwidgets/globalization/jquery.global.js”></script>
    <script type=”text/javascript” src=”jqwidgets/globalization/globalize.js”></script>
    <script type=”text/javascript” src=”scripts/gettheme.js”></script>
    <script type=”text/javascript” src=”jqwidgets/generatedata.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxexpander.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxvalidator.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxcalendar.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdatetimeinput.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxcombobox.js”></script>
    <script type=”text/javascript” src=”scripts/demos.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxnumberinput.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdata.export.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.export.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdropdownbutton.js”></script>

    kinldy correct me, if i did anything wrong..


    Dimitar
    Participant

    Hi muthu,

    You should use either jqx-all.js or the other jQWidgets script files to avoid script conflicts. If this does not solve your issue, please specify the full text of the error and on what line of code it occurs.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    Hi Dimitar,

    i’ve enable editoption in jqxgrid, if click edit button, popwindo will open and set all the values into popup window from jqxgrid.

    in that time, i’m setting datetime into jqxdatatimeinput tag. after i give update/submit in the popup window it doesn’t return and values from datatimeinput tag…

    here my code…

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘las_id’, type: ‘number’},
    { name: ‘las_masterSourceId’, type: ‘number’},
    { name: ‘las_acquisitionManager’, type: ‘number’},
    { name: ‘lcms_source’, type: ‘string’ },
    { name: ‘lac_contactName’, type: ‘string’ },
    { name: ‘lat_accessType’, type: ‘string’ },
    { name: ‘lct_contentType’, type: ‘string’ },
    { name: ‘ldt_deliveryType’, type: ‘string’ },
    { name: ‘lst_sourceType’, type: ‘string’ },
    { name: ‘lwf_webFormat’, type: ‘string’ },
    { name: ‘las_isPaywall’, type: ‘string’ },
    { name: ‘las_isPaywalls’, type: ‘string’ },
    { name: ‘las_isSubscription’, type: ‘string’ },
    { name: ‘las_isSubscriptions’, type: ‘string’ },
    { name: ‘las_includeSyn’, type: ‘string’ },
    { name: ‘las_includeSyns’, type: ‘string’ },
    { name: ‘las_urlProvided’, type: ‘string’ },
    { name: ‘las_urlProvideds’, type: ‘string’ },
    { name: ‘las_providerUrl’, type: ‘string’ },
    { name: ‘las_surpressedUrl’, type: ‘string’ },
    { name: ‘las_surpressedUrls’, type: ‘string’ },
    { name: ‘las_syndicateIncluded’, type: ‘string’ },
    { name: ‘las_syndicateIncludeds’, type: ‘string’ },
    { name: ‘las_rssUrl’, type: ‘string’ },
    { name: ‘las_updateFrequency’, type: ‘string’ },
    { name: ‘las_ftpDomain’, type: ‘string’ },
    { name: ‘las_ftpLogin’, type: ‘string’ },
    { name: ‘las_ftpPassword’, type: ‘string’ },
    { name: ‘las_printCirculation’, type: ‘string’ },
    { name: ‘las_receivedByPublisher’, type: ‘date’ },
    { name: ‘las_sentToDev’, type: ‘date’ },
    { name: ‘las_DateCompletedByDev’, type: ‘date’ },

    ],
    cache: false,
    url: ‘index.php?rt=login/readdata’,
    updaterow: function (rowid, rowdata, commit) {
    commit(true);
    }
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    // initialize jqxGrid
    $(“#jqxgrid”).jqxGrid(
    {
    source: dataAdapter,
    width: ‘100%’,
    filterable: true,
    sortable: true,
    autoheight: true,
    pageable: true,
    pagesizeoptions: [’15’, ’30’, ’60’, ‘100’],
    pagesize: 15,
    showtoolbar: false,
    showfilterrow: true,
    editable:true,
    rendergridrows: function(obj)
    {
    return obj.data;
    },
    columns: [
    { text: ‘EditData’, datafield: ‘Edit’, columntype: ‘button’, width: ‘9%’, filterable: false, sortable: false, cellsrenderer: function () {
    return “Edit”;
    }, buttonclick: function (row) {
    // open the popup window when the user clicks a button.
    editrow = row;
    var offset = $(“#jqxgrid”).offset();
    $(“#EditAcqSrcpopupWindow”).jqxWindow({ position: { x: parseInt(offset.left) + 10, y: parseInt(offset.top) + 35 } });

    var dataRecord = $(“#jqxgrid”).jqxGrid(‘getrowdata’, editrow);

    document.getElementById(“acqSrcId”).value = dataRecord.las_id;

    $(“#EditAcqSrcaccessType”).val(dataRecord.lat_accessType);
    $(“#EditAcqSrccontentType”).val(dataRecord.lct_contentType);
    $(“#EditAcqSrcdeliveryType”).val(dataRecord.ldt_deliveryType);
    $(“#EditAcqSrcsourceType”).val(dataRecord.lst_sourceType);
    $(“#EditAcqSrcwebFormat”).val(dataRecord.lwf_webFormat);

    $(“#accTypeId”).val(dataRecord.lat_accesstypeId);
    $(“#accTypeName”).val(dataRecord.lat_accessType);
    $(“#conTypeId”).val(dataRecord.lct_contentTypeId);
    $(“#conTypeName”).val(dataRecord.lct_contentType);
    $(“#delTypeId”).val(dataRecord.ldt_deliveryTypeId);
    $(“#delTypeName”).val(dataRecord.ldt_deliveryType);
    $(“#souTypeId”).val(dataRecord.lst_sourceTypeId);
    $(“#souTypeName”).val(dataRecord.lst_sourceType);
    $(“#webTypeId”).val(dataRecord.lwf_webFormatId);
    $(“#webTypeName”).val(dataRecord.lwf_webFormat);

    $(‘#acqrowindex’).val(row);

    $(‘input[id=EditAcqSrcisPaywall]’).val([dataRecord.las_isPaywall]);
    $(‘input[id=EditAcqSrcisSubscription]’).val([dataRecord.las_isSubscription]);
    $(‘input[id=EditAcqSrcincludeSyn]’).val([dataRecord.las_includeSyn]);

    $(‘input[id=EditAcqSrcurlProvided]’).val([dataRecord.las_urlProvided]);
    $(‘input[id=EditAcqSrcsurpressedUrl]’).val([dataRecord.las_surpressedUrl]);
    $(‘input[id=EditAcqSrcsyndicateIncluded]’).val([dataRecord.las_syndicateIncluded]);

    $(“#EditAcqSrcproviderUrl”).val(dataRecord.las_providerUrl);
    $(“#EditAcqSrcrssurl”).val(dataRecord.las_rssUrl);
    $(“#EditAcqSrcupdateFrequency”).val(dataRecord.las_updateFrequency);
    $(“#EditAcqSrcftpDomain”).val(dataRecord.las_ftpDomain);
    $(“#EditAcqSrcftpLogin”).val(dataRecord.las_ftpLogin);
    $(“#EditAcqSrcftpPassword”).val(dataRecord.las_ftpPassword);
    $(“#EditAcqSrcprintCirculation”).val(dataRecord.las_printCirculation);
    $(“#EditAcqSrcreceivedByPublisher”).jqxDateTimeInput(‘setDate’, dataRecord.las_receivedByPublisher);
    $(“#EditAcqSrcsentToDev”).jqxDateTimeInput(‘setDate’, dataRecord.las_sentToDev);
    $(“#EditAcqSrcDateCompletedByDev”).jqxDateTimeInput(‘setDate’, dataRecord.las_DateCompletedByDev);
    // show the popup window.
    $(“#EditAcqSrcpopupWindow”).jqxWindow(‘open’);

    }
    },
    /*{ text: ‘ID’, datafield: ‘las_id’, width: ‘5%’, filtercondition: ‘starts_with’,editable: false },*/
    { text: ‘ContactName’, datafield: ‘lac_contactName’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘ReceivedByPublisher’, datafield: ‘las_receivedByPublisher’, width: ‘25%’, cellsformat: ‘yyyy-MM-dd h:mm:ss’, columntype: ‘datetimeinput’, editable: false },
    { text: ‘Source’, datafield: ‘lcms_source’, width: ‘20%’,sortable:true, filtercondition: ‘starts_with’, editable:false},
    { text: ‘AccessType ‘, datafield: ‘lat_accessType’, width: ‘11%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘ContenType ‘, datafield: ‘lct_contentType’, width: ‘11%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘DeliveryType ‘, datafield: ‘ldt_deliveryType’, width: ‘12%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘SourceType ‘, datafield: ‘lst_sourceType’, width: ‘11%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘WebFormat ‘, datafield: ‘lwf_webFormat’, width: ‘11%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘Paywall’, datafield: ‘las_isPaywalls’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘Subscription’, datafield: ‘las_isSubscriptions’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘IncludeSync’, datafield: ‘las_includeSyns’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘URL Provided’, datafield: ‘las_urlProvideds’, width: ‘10%’, filtercondition: ‘starts_with’,editable: false },
    { text: ‘Provider URL’, datafield: ‘las_providerUrl’, width: ‘10%’,sortable:true,filtercondition: ‘starts_with’, editable:false},
    { text: ‘Surpressed URL’, datafield: ‘las_surpressedUrls’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘SyndicateIncluded’, datafield: ‘las_syndicateIncludeds’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘RSSurl’, datafield: ‘las_rssUrl’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘UpdateFrequency’, datafield: ‘las_updateFrequency’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘FtpDomain’, datafield: ‘las_ftpDomain’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘FtpLogin’, datafield: ‘las_ftpLogin’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘FtpPassword’, datafield: ‘las_ftpPassword’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘PrintCirculation’, datafield: ‘las_printCirculation’, width: ‘10%’,filtercondition: ‘starts_with’, editable: false },
    { text: ‘SentToDev’, datafield: ‘las_sentToDev’, width: ‘15%’, columntype: “datetimeinput”, cellsformat: ‘yyyy-MM-dd HH:mm:ss’, editable: false },
    { text: ‘DateCompletedByDev’, datafield: ‘las_DateCompletedByDev’, width: ‘15%’, columntype: “datetimeinput”, cellsformat: ‘yyyy-MM-dd HH:mm:ss’, editable: false },

    ]
    });

    // Editing Acquired Sources – starts here
    $(“#EditAcqSrcpopupWindow”).jqxWindow({
    width: 740, resizable: false, isModal: true, autoOpen: false, cancelButton: $(“#EditAcqSrccladdacq”), modalOpacity: 0.01
    });

    $(‘#EditAcqSrcsendButton’).jqxButton({ width: 60, height: 25});
    $(“#EditAcqSrccladdacq”).jqxButton({ width: 60, height: 25});

    $(“#EditAcqSrcDateCompletedByDev”).jqxDateTimeInput({width: ‘233px’, height: ’23px’, formatString: “yyyy-MM-dd h:mm:ss”});
    $(“#EditAcqSrcsentToDev”).jqxDateTimeInput({width: ‘233px’, height: ’23px’, formatString: “yyyy-MM-dd h:mm:ss”});

    $(‘#EditAcqSrcsendButton’).click(function(){

    var isPaywallabbr = ”;
    var isSubscriptionabbr = ”;
    var includeSynabbr = ”;
    var urlProvidedabbr = ”;
    var surpressedUrlabbr = ”;
    var syndicateIncludedabbr = ”;

    var rowindex = $(‘#acqrowindex’).val();
    var accessType = $(“#accTypeName”).val();
    var contentType = $(“#conTypeName”).val();
    var deliveryType = $(“#delTypeName”).val();
    var sourceType = $(“#souTypeName”).val();
    var webFormat = $(“#webTypeName”).val();
    var isPaywall = $(‘#EditAcqSrcisPaywall’).val();
    var isSubscription = $(‘#EditAcqSrcisSubscription’).val();
    var includeSyn = $(‘#EditAcqSrcincludeSyn’).val();
    var urlProvided = $(‘#EditAcqSrcurlProvided’).val();
    var providerUrl = $(‘#EditAcqSrcproviderUrl’).val();
    var surpressedUrl = $(‘#EditAcqSrcsurpressedUrl’).val();
    var rssurl = $(‘#EditAcqSrcrssurl’).val();
    var syndicateIncluded = $(‘#EditAcqSrcsyndicateIncluded’).val();
    var updateFrequency = $(“#updateFrequency”).jqxComboBox(‘val’);
    var ftpDomain = $(‘#EditAcqSrcftpDomain’).val();
    var ftpLogin = $(‘#EditAcqSrcftpLogin’).val();
    var ftpPassword = $(‘#EditAcqSrcftpPassword’).val();

    var receivedByPublisher = $(‘#EditAcqSrcreceivedByPublisher’).jqxDateTimeInput(‘val’);

    alert(receivedByPublisher);
    var sentToDev = $(‘input[name=EditAcqSrcsentToDev]’).val();
    var DateCompletedByDev = $(‘input[name=EditAcqSrcDateCompletedByDev]’).val();

    //setting values to grid starts here
    if( isPaywall == 1){
    isPaywallabbr = “Yes”;
    }else{
    isPaywallabbr = “No”;
    }

    if( isSubscription == 1){
    isSubscriptionabbr = “Yes”;
    }else {
    isSubscriptionabbr = “No”;
    }

    if ( includeSyn == 1){
    includeSynabbr = “Yes”;
    }else{
    includeSynabbr = “No”;
    }

    if( urlProvided == 1){
    urlProvidedabbr = “Yes”;
    }else{
    urlProvidedabbr = “No”;
    }

    if( surpressedUrl == 1){
    surpressedUrlabbr = “Yes”;
    }else{
    surpressedUrlabbr = “No”;
    }

    if( syndicateIncluded == 1){
    syndicateIncludedabbr = “Yes”;
    }else{
    syndicateIncludedabbr = “No”;
    }
    //setting values to grid ends here

    var submitUpdate = confirm(“Are you sure want to Update??”);

    if( submitUpdate == true){

    $(“#EditAcqSrcpopupWindow”).jqxWindow(‘hide’);

    var dataStrings = $(“form#EditAcqSrcForm”).serialize();

    $.ajax(
    {
    type: “POST”,
    data: dataStrings,
    url: ‘index.php?rt=login/UpdateacquiredSource’,
    //success: function (data, status, xhr)
    success: function (status)
    {
    if(status == ‘1’){
    alert(‘Data has been updated Successfully!!’);
    //location.reload(true);
    //after success replace grid values to oldvalues -> no need to refresh the page
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘lat_accessType’, accessType);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘lct_contentType’, contentType);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘ldt_deliveryType’, deliveryType);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘lst_sourceType’, sourceType);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘lwf_webFormat’, webFormat);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_isPaywalls’, isPaywallabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_isSubscriptions’, isSubscriptionabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_includeSyns’, includeSynabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_urlProvided’, urlProvidedabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_providerUrl’, providerUrl);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_surpressedUrl’, surpressedUrlabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_syndicateIncluded’, syndicateIncludedabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_rssUrl’, rssurl);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_updateFrequency’, isPaywallabbr);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_ftpDomain’, ftpDomain);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_ftpLogin’, ftpLogin);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_ftpPassword’, ftpPassword);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_receivedByPublisher’, receivedByPublisher);
    alert(receivedByPublisher);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_sentToDev’, sentToDev);
    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘las_DateCompletedByDev’, DateCompletedByDev);
    }
    }
    });

    }

    });
    // Editing Acquired Sources – ends here

    after editing i’m stored those values into database and as well as in the grid.. but text values are updating into grid not datetime..

    -muthu


    Dimitar
    Participant

    Hi muthu,

    This is not a correct method of getting a datetimeinput’s value:

    var DateCompletedByDev = $('input[name=EditAcqSrcDateCompletedByDev]').val();

    Do the following instead:

    var DateCompletedByDev = $("#EditAcqSrcDateCompletedByDev").jqxDateTimeInput('val');

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    muthu
    Participant

    If i give like this also, “var DateCompletedByDev = $(“#EditAcqSrcDateCompletedByDev”).jqxDateTimeInput(‘val’);” i cannot get datatimeinput value..

    i’m getting three datetime values from form..

    /*
    var receivedByPublisher = $(‘#EditAcqSrcreceivedByPublisher’).jqxDateTimeInput(‘val’);
    alert(receivedByPublisher);
    var sentToDev = $(‘#EditAcqSrcsentToDev’).jqxDateTimeInput(‘val’);
    var DateCompletedByDev = $(‘#EditAcqSrcDateCompletedByDev’).jqxDateTimeInput(‘val’); */

    if i put alert of datetime, it shows empty or undfined only.


    Dimitar
    Participant

    Hi muthu,

    And are correct values returned in receivedByPublisher and sentToDev? As you can see from our example, the val method works fine. Please make sure you are using the latest version of jQWidgets (3.7.1) in your project.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.