Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alandman

Pages: [1]
1
Help for ParamQuery Pro / Re: How I can use pqselect as custom editor?
« on: October 19, 2016, 01:24:26 am »
Sorry but the question was and still remains about using PQSelect in custom editor.
If you can give me example would be great.
So far all samples for pqselect related to fitering.

Dont worry about ui.rowIndx I am using it already.

2
Help for ParamQuery Pro / How I can use pqselect as custom editor?
« on: October 18, 2016, 12:47:06 am »
Hi Paramvir,
I am using jquery 2.2.0 for one of my projects.

Right now I am using multiselect but there are some problems with it.
My Custom editor has some logic and depends on the row number is different.
For row #4 it should be multiselect. What is the easier way to implement it?
So far I have:
var abnrmCondEditor = function (ui) {
    var $cell = ui.$cell,
    rowData = ui.rowData,
    dataIndx = ui.dataIndx,
    cls = ui.cls,
    dc = $.trim(rowData[dataIndx]),
    wdth = ui.column.width-4;
       
    $.ajax({
        url: 'getAbnormalCodes.do',
        type: 'GET',
        dataType: "json",
        async: false,
        success:  function(json_arr) {
           if (json_arr) {
                  var options="", code, desc;
                  //alert(dc);
                  $.each(json_arr, function(i,val) {
                    code = val.valueIndx,
                    desc = val.labelIndx.toUpperCase();
                    
                    //alert("DC:"+dc);
                       if (dc && dc.toUpperCase() == desc) {
                          options = options + "<option selected='selected' value="+code+">"+desc+"</option>";
                       } else {
                          options = options + "<option value="+code+">"+desc+"</option>";
                       }
                   });
                  
                    var $dropdownField = $("<select name='" + dataIndx + "' class='"+cls+" grp-cmb-abnrml-cond pq-ac-editor' multiple='multiple'>"+options+"</select>")
                                        .appendTo($cell).val(dc.split(','));
      
                    $dropdownField.multiselect({
                      selectedList: 2,
                      minWidth: wdth,
                      noneSelectedText: "",
                      click: function() {
                         var selections = $.map($(this).multiselect("getChecked"),function( input ){
                            return input.value;
                         });

                         alert("Selections:" + selections);
                         $dropdownField.appendTo($cell).val(JSON.stringify(selections));

//                         //$("#grid_group_lc_hdr_2").pqGrid( "quitEditMode" );
                      },
                      close: function() {
                         $("#grid_group_lc_hdr_2").pqGrid("quitEditMode");
                      }
                    });
           } else {
              alert('Failed to upload Abnormal Conditions');
           }
        },
        error: function (xhr, ajaxOptions, thrownError) {
         alert('Failed to upload Abnormal Conditions');
        }
   });

}

3
I can't reproduce it. Only when we do the LoadRunner performance test.
It might related to the way the LoadRunner creates requests, but I am not sure. Did you heard about any similar issue in the past?

4
Help for ParamQuery Pro / Re: synchronizing data between 2 grids
« on: May 19, 2016, 12:18:53 am »
Great, thank u

5
Help for ParamQuery Pro / synchronizing data between 2 grids
« on: May 18, 2016, 08:08:06 pm »
I have a case when I need to load 2 separate grids on one page that depend on each other.
How do I make sure that data on 1 loads before the 2?
Thank you,

6
I am integrating Infinite Scrolling demo code (v3.2) and mostly it works, however I have problem when we do load test
The error and my code attached.

Pages: [1]