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 - dagarwal

Pages: [1] 2
1
Hi,

I am using Angularjs4.0.0 (https://angular.io/). I want to integrate paramquery. I tried to find some example but each example is using older version of angularjs(http://jsfiddle.net/0g0psuo7/1/).


can you provide me example of paramquery integration with Angularjs4.0.0 (https://angular.io/)?

Also how can i install using npm or bower?







2
I need some information of cell and row like colIndx , rowIndx  on mouseup on a cell.


How can i bind this event on a cell to get these information on mouseup?

3
I created a param query grid. I have added selectionModel: { type: null,  'native':true }. I am refreshing grid after every 10 second. I am selecting text of a cell but after refresh, that selection text  of that cell has removed. I want selected text after refresh of grid.


How to achieve this?

4
Help for ParamQuery Pro / Re: Custom HTML in toolbar
« on: December 07, 2016, 08:19:47 am »
I do it this way:

Code: [Select]
toolbar: {
 items: [
{
 type : '<div>This is my custom html</div';
}
]
}

5
Help for ParamQuery Pro / Re: pqGrid Angularjs and Flot integration
« on: December 07, 2016, 08:17:38 am »
Thank you so much. Could you please provide the pro version of 3.3.4

I don't see Pro Downloads under my menu bar. Probably because my account is not associated with my enterprise acccount. Can you tell me what should I do in order to see the Pro Downloads

6
Help for ParamQuery Pro / Re: pqGrid Angularjs and Flot integration
« on: December 07, 2016, 01:09:48 am »
Thank you so much. Could you please provide the pro version of 3.3.4

7
Help for ParamQuery Pro / Re: pqGrid Angularjs and Flot integration
« on: December 02, 2016, 10:43:31 pm »
A more simple approach http://jsfiddle.net/0g0psuo7/5/

Looks like the issue is I am unable to plot on pqgrid. See how I can plot on #test but not on #achart_1

8
Help for ParamQuery Pro / Re: pqGrid Angularjs and Flot integration
« on: December 02, 2016, 09:31:49 pm »
http://jsfiddle.net/0g0psuo7/3/

You would see the following code. It's getting correct data. So, chart is correctly populated and elem is also correct. But Trend column is empty.

   
Code: [Select]
var chart = jQuery.plot(jQuery('#achart_'+id),
[evseries],
options
);

elem.show();


9
Help for ParamQuery Pro / Re: pqGrid Angularjs and Flot integration
« on: December 01, 2016, 10:59:05 pm »
Can you set this up for the run of http://paramquery.com/pro/demos/ng_grid

I tried but it is showing some module error. If you help me setting up this jsfiddle I will update it with my code.

http://jsfiddle.net/abwh7Lkx/1/

10
Help for ParamQuery Pro / pqGrid Angularjs and Flot integration
« on: December 01, 2016, 04:05:02 am »
My Angular controller looks like this (only a snippet)
Code: [Select]
$scope.ajaxData = [];
 $scope.fetchData = function() {
  $http.get("/getdata").success(function(data) {
$scope.ajaxData = data;
});
}
.
.
.

myApp.directive('chart', function(){
return{
restrict: 'E',
link: function(scope, elem, attrs){

scope.$watch('ajaxData', function(dataset){
                                         // Draw Flot chart
                        }
                }
}
.
.
$scope.gridOptions = getPQGrid();


My other javascript looks like:
Code: [Select]
function getPQGrid() {
var pqGridObj = {
        width: "80%",
        height: 800,
        resizable: true,
        title: "Angularjs grid",       
        scrollModel: { autoFit: true },
        dataModel: { data: 'ajaxData' },
colModel : getColumnModel()
    };

return pqGridObj;
}

function getColumnModel() {
var cols = [
    { title: "Instance", width: 100, dataType: "String", dataIndx: "inst" },

{ title: "Trend", width: 150, template: "<chart  ng-model='ajaxData' type='line'><div class="mychart" style='width:170px;height:35px'></div></chart>' "
}

];
return cols;
}


I get the table populated but charts are not coming. If I use simple table (without pqgrid) charts are coming. So, I am guessing I am missing something.

11
Help for ParamQuery Pro / Does 3.3.0 has basic angular support
« on: December 01, 2016, 01:57:58 am »
We are using Pro version 3.3.0 . Does it have the basic support fro ng-grid, ng-template and ng-bind ?If not when can we expect it to be released.

Thanks !

12
I want to show context menu on right click on a header cell.


13
I am using width:flex and it is creating browser scrollbar when no of columns is high. This is right. when no of columns is less, grid width decreases less than browser width and grid is not using full browser width.

Requirement : if no of columns is less, then grid must use browser width and visible in full width of browser and if no of columns is high, then scrollbar visible.

I tried to use minWidth: jQuery("window").width() with width:flex but not working.

What is solution

14
I do not want row and cell selection on click on row or cell.

15
I want to show scrollbar rather than paramquery grid scrollbar if columns is not fitting on screen width.

Pages: [1] 2