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.


Topics - rallesaid

Pages: [1]
1
ParamQuery Pro Evaluation Support / Help with custom editor "input file"
« on: November 29, 2016, 06:54:55 pm »
Im trying to use a custom editor, But I can not get it to work properly. when i click the button "choose a file",the editor disappears, and when i click in accept button, nothing happens.

im recreate it in a jsfiddle

http://jsfiddle.net/rallesaid/a3baab5z/

Is this the right way to create a custom editor?

Any idea how to solve this?

Thanks

2
ParamQuery Pro Evaluation Support / problem filtering integer column
« on: October 13, 2016, 08:56:15 pm »
I have implemented the filter from the example filter local
http://paramquery.com/pro/demos/filter_local

I add a column with dataType="integer", and when I try to filter with "all fields"or only integer fields and any condition, I received the exception

pqgrid.min.js:423 Uncaught TypeError: a.indexOf is not a function
contain                                 @ pqgrid.min.js:423
c.isMatchCellSingle               @ pqgrid.min.js:425
c.isMatchRow                       @ pqgrid.min.js:426
c.filterLocalData                    @ pqgrid.min.js:427
d._onDataAvailable               @ pqgrid.min.js:315
d.filter                                   @ pqgrid.min.js:311
(anonymous function)          @ jquery-ui.min.js:6
each                                      @ jquery.min.js:2
each                                      @ jquery.min.js:2
e.fn.(anonymous function)   @ jquery-ui.min.js:6
filterhandler                           @ VM1805:23
(anonymous function)          @ pqgrid.min.js:346
dispatch                                @ jquery.min.js:2
u                                           @ jquery.min.js:2

Any idea what it could be?

3
if I add a new row, and complete all fields, how can give focus to the Save button?, currently pressing enter or tab, the editor is maintained in the last cell when this is located in the last row.

4
in te example  http://paramquery.com/pro/demos/nesting_local
there are 3 grids, if I edit a cell in each grid, how I can save all grids from a unique action.
currently, I'm generating multiples sub-grid dinamically from a global model.

5
ParamQuery Pro Evaluation Support / addRow when editable = false
« on: September 13, 2016, 03:07:43 am »
Hi, i have a question,
when I add a new row whit a default value in a column 'editable:false', I add in addRow({checkEditable:false}) and the row is added whitout problem, but when i add a second row, i get this error "Uncaught primary key violation", but if i remove checkEditable:false or replace whit checkEditable:true, then i can add unlimited rows, but the default values of the column 'editable:false' is not added, how i can add multiples row whit a default value when column editable is false?
thanks :)

6
ParamQuery Pro Evaluation Support / Validation alert
« on: September 08, 2016, 12:10:12 am »
It is possible that instead of the tooltip "required",


an alert "required" is displayed

7
i have a custom field, it's a bootstrap switch, which he called from a function

var config = {
            dataIndx : "usr_est",
            title    : "Estado",       
        };

function check_stat(config){
    var grid;
    return { title: config['title'], dataIndx: config['dataIndx'] , width:"100px", align: "center", resizable: false, editable:true,
            editor: false,
            editable: function (ui) {
                            return !ui.rowData.disabled;
                        },
            render: function (ui) {
                grid = this;
                var cellData = ui.cellData;
                var checked = cellData === 1 ? 'checked' : '';
                return  { text: "<label><input type='checkbox' " + checked + " name='check-stat'/></label>" };
            },
            postRender: function(ui){
                $("[name='check-stat']").bootstrapSwitch(
                    {size:'mini',
                    onText:'Activo',
                    offText:'Inactivo'}).on('switchChange.bootstrapSwitch', function(event, state) {
                     
                      var rowData = ui.rowData;
                      if(state){
                        this.value = 1;
                        rowData[config['dataIndx']] = 1;
                      }else{
                        this.value = 0;
                        rowData[config['dataIndx']] = 0;
                      }
                     
                      grid.addClass({ rowData:rowData, rowIndx: ui.rowIndx, cls: 'pq-row-edit pq-cell-dirty ' });
                      grid.refresh()
                     
                      console.log(ui)
                    });
               
            }           
        };
}



but when I change the state, the save button is not activated



How can I force to take it as a change made by the user? Any idea?

8
ParamQuery Pro Evaluation Support / empty column at the end of the grid
« on: August 11, 2016, 10:36:42 pm »
Hi, I'm having a little problem, apparently is adding an empty column , or for some reason it is appearing a space at the end of the grid




My colModel

 var colModel = [ 
                {title:"ID",  width:"0%", dataType:"string",dataIndx: "eti_id",hidden:true,editable:false},
                {title:"Pagina", width:"20%", dataType:"string",dataIndx: "eti_pag_cod",nodrag:true,editable:false}, 
                {title:"Codigo", width:"20%", dataType:"string",dataIndx: "eti_cod",nodrag:true,editable:false}, 
                {title:"Etiqueta", width:"60%", dataType:"string",dataIndx: "eti_val",nodrag:true}             
                ];
I tried whit width and minWidth, whit % and px, Any idea what it could be? Thanks.

9
ParamQuery Pro Evaluation Support / How to refreshRow in detail grid
« on: July 28, 2016, 03:09:04 am »
I have a grid with continents and the detail with countries , if I add a new continent, the method refreshRow work fine to show the new ID, but if I add a country , does not work the method refreshRow and I can not show the new ID until recharge full page.

How I can refresh the grid detail ?

Pages: [1]