jQWidgets Forums

Forum Replies Created

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

  • abhishekkkk
    Participant

    Thanks for the reply Peter.
    Currently , I am using Jqx Grid Version 3.8.2 for my application .Does this version supports this feature?
    If not ,can you please inform from which version this feature is available.
    Also, is there any alternate way to ensure that data is properly binded /loaded in the grid?


    abhishekkkk
    Participant

    Thanks for the reply Peter.

    Can we achieve this through custom filter.I tried implementing it but I guess there is some issue with my code.Can you please check it once.

    $(“.jqx-grid-cell-filter-row” ).keypress(function() {

    var filterGroups = $(‘#jqxgridtwo’).jqxGrid(‘getfilterinformation’);
    var info = “”;
    for (var i = 0; i < filterGroups.length; i++) {
    var filterGroup = filterGroups[i];
    info += “Filter Column: ” + filterGroup.filtercolumn;
    var filters = filterGroup.filter.getfilters();
    for (var j = 0; j < filters.length; j++) {
    info = filters[j].value;

    }
    }

    var w=! isNaN(info);
    if(w){
    alert(“in if”);
    var filtergroup = new $.jqx.filter();
    var filter_or_operator = 1;
    var filtervalue = info;
    alert(filtervalue);
    var filtercondition = ‘contains’;

    var filter2 = filtergroup.createfilter(‘numericfilter’, filtervalue, filtercondition);

    filtergroup.addfilter(filter_or_operator, filter2);
    // add the filters.
    // $(“#jqxgrid”).jqxGrid(‘addfilter’, ‘firstname’, filtergroup);
    $(“#jqxgridtwo”).jqxGrid(‘addfilter’, ‘countryName’, filtergroup);
    $(“#jqxgridtwo”).jqxGrid(‘applyfilters’);
    }
    else{
    alert(“in else”);
    var filtergroup = new $.jqx.filter();
    var filter_or_operator = 1;
    var filtervalue = info;
    alert(filtervalue);
    var filtercondition = ‘starts_with’;

    var filter1 = filtergroup.createfilter(‘stringfilter’, filtervalue, filtercondition);
    filtergroup.addfilter(filter_or_operator, filter1);
    // add the filters.
    $(“#jqxgridtwo”).jqxGrid(‘addfilter’, ‘countryName’, filtergroup);
    $(“#jqxgridtwo”).jqxGrid(‘applyfilters’);
    }
    });

    It is going in proper if-else condition depending upon the entered filter criteria but filter is not working for numeric case.

    Regards,
    Abhishek


    abhishekkkk
    Participant

    Ok.
    Thanks Anyways.


    abhishekkkk
    Participant

    Hi Peter,

    By ‘singleselect’ I meant ‘singlerow’ which also works similarily i.e. selects one row at a time and unselects the previous row on clicking second row.


    abhishekkkk
    Participant

    Thanks for the reply Peter.
    Actually ,I am only selecting a particular cell in jqxgrid even though the selection mode used is singleselect. But,even if I select a particular cell from grid and try to copy the data in clipboard ,the data of entire row get copied instead of that selected cell .
    Also,as I already mentioned above that we need to have ‘singleselect’ selection mode only as we need to perform certain action on selected row.
    So,isn’t here a way by which we can have both these functionalities together.


    abhishekkkk
    Participant

    Hi Ivailo,

    Thanks for the reply.Is there some Jqxgrid version(say 3.2 or so) above which this functionality is supported?

    Regards,
    Abhishek


    abhishekkkk
    Participant

    Thanks Dimitar.


    abhishekkkk
    Participant

    Thanks for your reply Peter.I tried implementing the solution suggested in above link.However,whatever,value I select,I get the same error message “Entered value is not valid”.i have used below code for the same.

    {text: ‘Job End Date’, cellsalign: ‘left’,columntype: ‘template’, width: ‘205px’,cellsrenderer:cellsrendererEndDate,datafield: ‘jobEndDate’,
    createeditor: function (row, cellvalue, editor, cellText, width, height) {
    // construct the editor.
    /* editor.jqxDropDownList({
    checkboxes: true, source: getEditorDataAdapter(‘productname’), displayMember: ‘productname’, valueMember: ‘productname’, width: width, height: height,
    selectionRenderer: function () {
    return “<span style=’top:4px; position: relative;’>Please Choose:</span>”;
    }
    }); */

    // editor.jqxDateTimeInput(/* {width: ‘100px’, height: ’25px’} */);
    editor.jqxDateTimeInput({ formatString: ‘dd-MMM-yyyy’ });

    },
    validation: function (cell, value) {
    if (value == “”)
    return true;

    var year = value.getFullYear();
    alert(year);
    if (year >= 2015) {

    return { result: false, message: “Ship Date should be before 1/1/2015” };
    }
    return true;
    },

    initeditor: function (row, cellvalue, editor, celltext, pressedkey) {
    // editor.jqxDateTimeInput({ formatString: ‘dd-MMM-yyyy’ });
    //alert(cellvalue);
    editor.val(cellvalue);
    },
    geteditorvalue: function (row, cellvalue, editor) {
    // return the editor’s value.
    return editor.val();
    alert(editor.val());
    }
    }

    Can you please look into this once and suggest why I am getting this error.Also,what is the value for ‘year’ variable.I want to avoid previous date selection.

    Thanks ,
    Abhishek


    abhishekkkk
    Participant

    Thanks Nadezhda.This is what I needed.

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