jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 71 total)
  • Author
    Posts
  • in reply to: remove Filter in gird remove Filter in gird #57291

    ssp
    Participant

    Hi Peter,

    filterGroups will come as empty array if we clear the filter text. So i am not able get the datafield name for which i cleared the filter text.

    Regards,
    SSP


    ssp
    Participant

    Hi

    Is there a way to clear the value of one combo box on change of other combo box ??

    example : i have A and B column in grid, and both are of type combo box. on change of A i’m doing ajax call to get B values ,
    Now i want to clear B combo box when i change A.

    PS : All action should happen inside grid.

    Regards,
    Chaitra

    in reply to: Menu text text color change Menu text text color change #55631

    ssp
    Participant

    Thanks a lot.. its working

    in reply to: Multi-Cell Delete Multi-Cell Delete #55466

    ssp
    Participant

    Hi Dimitar!!

    Thank you very much for your response and it helped me in solving my issue!!

    I had missed var oldvalue = args.oldvalue; in my code,,,,

    Thanks & Regards,
    ssp

    in reply to: Problem with editmode Problem with editmode #55129

    ssp
    Participant

    Hi,

    Awaiting ur reply!!!


    ssp
    Participant

    Hi Dimitar,

    The link you have mentioned above, worked when datetimeinput is used as normal textfield,
    but when I implement the same in the grid as
    {text : ‘Valid From’,datafield : ‘validFrom’,columntype:datetimeinput’, readonly: true,allowKeyboardDelete: false,
    cellsformat : ‘d’, align : ‘left’, width : 140, cellsalign : ‘left’},

    neither readonly nor allowKeyboardDelete properties work in the grid column!!?


    ssp
    Participant

    Hi Dimitar,

    Thank you very much, the given properties worked as needed!!

    in reply to: Ajax calls from jqxWindows Ajax calls from jqxWindows #54539

    ssp
    Participant

    Hi Dimitar,

    I have popup window (i.e i have used jqxwindow) in the jqxwindow i have grid , i that grid i have a button when i click on that button it should do a ajax call. but it is not happening..

    Here is the code :

    $(“#jqxResLocation”).jqxGrid({
    width : 480,
    autoheight : true,
    source : resourceLocdataAdapter,
    theme : ‘energyblue’,
    altrows : true,
    pageable: true,
    editable: true,
    pagermode: ‘simple’,
    selectionmode : ‘multiplecellsextended’,
    columns : [

    {
    text : ‘Host Location’,
    columntype : ‘dropdownlist’,
    datafield : ‘hostLocation’,
    width : 120,
    align: ‘right’,
    cellsalign : ‘right’
    },

    , {
    text : ‘Current Location’,
    columntype : ‘dropdownlist’,
    datafield : ‘currentLocation’,
    width : 120,
    align: ‘right’,
    cellsalign : ‘right’
    },

    {
    text : ‘Valid From’,
    datafield : ‘validFrom’,
    columntype : ‘datetimeinput’,
    cellsformat : ‘d’,
    align: ‘right’,
    width : 120,
    cellsalign : ‘right’
    },

    {
    text : ‘Valid To’,
    datafield : ‘validTo’,
    width : 120,
    columntype : ‘datetimeinput’,
    cellsalign : ‘right’,
    cellsformat : ‘d’,
    align: ‘right’,
    },

    {
    text : ‘id’,
    datafield : ‘id’,
    width : 120,
    columntype : ‘datetimeinput’,
    cellsalign : ‘right’,
    cellsformat : ‘d’,
    align: ‘right’,
    hidden: true
    },

    {
    text : ‘globalID’,
    datafield : ‘globalID’,
    width : 120,
    columntype : ‘datetimeinput’,
    cellsalign : ‘right’,
    cellsformat : ‘d’,
    align: ‘right’,
    hidden: true
    },

    {
    text : ‘Update’,
    datafield : ‘update’,
    columntype : ‘button’,
    width : 72,
    autoheight: true,
    cellsrenderer : function() {
    return “Update”;
    },
    buttonclick : function(
    row) {

    var dataRecord = $(
    “#jqxResLocation”)
    .jqxGrid(
    ‘getrowdata’,
    row);
    $.ajax({
    cache : false,
    type : “POST”,
    contentType:’application/json;charset=utf-8′,
    async : false,

    url :”test.htm?globalId=” + dataRecord.globalID + “&id=” + dataRecord.id
    + “&hostLocation=” + dataRecord.hostLocation + “&currentLocation=”
    + dataRecord.currentLocation + “&validTo=” + dataRecord.validTo + “&validFrom=”
    + dataRecord.validFrom,
    success : function(response) {

    alert(“updated”);
    },
    error : function(e) {
    alert(“update fail”);
    }
    });

    }
    }

    ]
    });

    });

    });

    });`

    Please do the needful.

    Regards,
    SSP


    ssp
    Participant

    I have gone through the above two options,
    but they are missing with Show rows dropdown option, which is very much required!!


    ssp
    Participant

    Hi Dimitar,

    This was happening bcz in the initial loading of the grid, the empty cells were initialized to null,
    this issue is solved when empty cells are loaded with empty string (“”)

    Thanks & Regards,
    ssp


    ssp
    Participant

    Hello,

    I am using the paging feature of the jqxrid,
    but as per my requirement I have to remove the Go to page feature from the pagination bar!!

    Plz let me is this possible and how can I do it?

    Thanks & Regards,
    ssp


    ssp
    Participant

    Dimitar,

    I am using version 3.2.1 of jQWidgets throughout my application,
    And for empty grid, I do get the msg “No data to display”
    I am not referring to the empty grid here, rather when few columns of the grid have data and few columns are empty!?

    var wklyData =ColGridDataField;
    
    // prepare the data
       var wklysrc =
       {
           datatype: "json",
           datafields:dataFieldColumns,
       
           localdata: wklyData,
           addrow: function (rowid, rowdata, position, commit) {
          
               commit(true);
           }
       }; 
    
    var dataAdapter2 = new $.jqx.dataAdapter(wklysrc, {
       downloadComplete: function (wklyData, status, xhr) { },
       loadComplete: function (wklyData) { },
       loadError: function (xhr, status, error) { }
    });
    
    $("#jqxgridWeekly").jqxGrid(
           {
        	   width: 1015,               
               source: dataAdapter2,
    ...

    aggregates: [{ 'D':
    	 			function (aggregatedValue, currentValue,column,record) {
    	       	   
                    if(record['LPN'] != null && record['LPN'] != "")
                    {
                  	  // aggregatedValue=aggregatedValue+aggregatedValue;
                    	//alert("aggr:"+aggregatedValue+"curr:"+currentValue);
                    	if(currentValue == ""){
                    		currentValue =0;
                    	}
                         return aggregatedValue+currentValue;
                     }
                  //  alert("ret:"+aggregatedValue);
                     return aggregatedValue;
                 }
             },
             { 'T':
                 function (aggregatedValue, currentValue,column,record) {
          	 // if( record['LPN'] == "")
             //    {
          		 if(currentValue == ""){
             		currentValue =0;
             	}
                         return aggregatedValue + currentValue;
               //      }
    
                     return aggregatedValue;
                 }
    	         }
    	        ],

    ….


    ssp
    Participant

    Hello Dimitar,

    Exactly! I meant when the cells of the columns are empty…I get [object Object]:0,
    but for the columns with data in any cell, it is properly displayed
    also once I enter data in the empty column, it displays properly as
    | Direct:40
    | Indirect:10

    But for empty column this issue is occuring,
    plz let me know!!

    Thanks & Regards,
    ssp


    ssp
    Participant

    Peter,

    Thanx, I am referring to the same demo, but in the demo the aggregate is merged in a single row, I wanted to check whether is it possible to split the ‘count’ and ‘Cappuccino ‘ in different rows!


    ssp
    Participant

    Hi Dimitar,
    I am able to do the implementation using your given demo,
    but on initial loading of empty columns, the aggregate is displayed as [object Object]:0,
    only once I enter any values in the cells of the grid, I am able to get the output in proper format like:
    | Direct:50
    | Indirect:10

    How will I get the proper format for empty columns on initial page load like:
    | Direct:0.0
    | Indirect:0.0

    Do I have to use aggregatesrenderer? If yes, plz let me know how can I achieve this??

    Thanks & Regards,
    ssp

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