jQWidgets Forums
Forum Replies Created
-
Author
-
November 6, 2022 at 10:25 am in reply to: Angular build giving warning for jqwidget class Angular build giving warning for jqwidget class #123820
Hi,
Since jqwidget is a third party library and to my knowledge application should never be making changes to 3rd party libraries:
Reason- Since, developer will only be bothered about package.json file and with the help of
npm install
command he/she will download the modules. And, If we make a change in 3rd libraries then onnpm install
command they will never get the version they are willing to use as it will be one which library such as jqwidget provides. Unless, developer make a change to file and host that package in his npm registry (place where packages are hosted).Not, all the packages are always hosted on npm registry.
Isn’t there a way we can ignore these warning ?Regards,
Prashant SrivastavaOctober 31, 2022 at 11:00 pm in reply to: jqGrid Group Renderer not working jqGrid Group Renderer not working #123783Hi,
Well that’s not the case. The data object of jqGrid will have the details pretaining the “localdata” object of the “dataAdapter._source”.
Which actually is the filtered data. Because what we show on grid is the result based on the selection made by the user on the screen in search controls (controls which are not part of grid).It’ s not the whole data (the one which does not have records filtered out). And, percent completion rollup here is based of total data vs the data shown on screen for specific status. So, in a nutshell counting the number of rows from each group would not suffice the need as it is the filtered (data bind to Grid)
In between, what is the sequence behaviour of groupsrenderer and onGroupschanged event. I do see that- when I load the grid by applying 2 fields in group by property (i.e. set an array with 2 elements to it for group by) then It loads perfectly fine. Here, onGroupschanged is fired first and then groupsrenderer is fired.
However, If I manually, drag and drop one column to group then that is where the sequence of event changes. I.e. groupsrenderer is fired first and then onGroupschanged is fired.
To conclude this does not seems to have a consistent behavior.
Could you please suggest anything on this?October 31, 2022 at 7:09 am in reply to: jqGrid Group Renderer not working jqGrid Group Renderer not working #123779Hi,
Unfortunately I cannot build that object inside the groupsrenderer because- That object is based of what groups have been applied. As percent rollup for groups work based the group fields applied on the Grid.
And, in groupsrenderer function do not have a way to know what fields are used for grouping. Also, the other demerit of creating that object inside the groupsrenderer is it will fire for each row. However, onGroupschanged will fire once and that too only when there is a change in the list groups.
Here is use case which might help you to visualize my problem statement:-
1. There is a screen which have search filter (dropdown lists and checkbox). Ex: “Department”, “Team” and “Items completed”. Here, “Items completed” is checkbox.
2. Here, we have whole data called report data and then based on “Items completed” checkbox value we filter on top of that data to display in Grid.
3. On selection of values from filters the results is shown on Grid (jqGrid).
4. If user applies grouping then what we have to do is calculate the percent rollup for a group based below formula:
4.1 Get total records for that group.
4.2 Get total records for that group which are status “routed”.
4.3 Then, percent is = ROUND((total records for that group which are status routed) / (Get total records for that group) * 100)Question here is:-
Isn’t there a event which grs triggered before groupsrenderer event fires ? I was assuming therotically- everytime there is a change in Group that has to be renderer. So, that way- onGroupschanged should be called first and then should be groupsrendererPlease advise.
October 28, 2022 at 10:09 am in reply to: watermark (link to jqwidgets URL) appears in my grid (licensed version) watermark (link to jqwidgets URL) appears in my grid (licensed version) #123772Hi,
I have group license at my company for jqWidgets. And, per the response from your support team, I ran install for “jqwidgets-ng” and then specified the credits in App module Ex: jqx.credits = “———- LICENSE GOES HERE —“.
But, for some reason, even after specifying the LICENSE in jqx.credits it shows jqwidgets url on bottom right of the jqgrid for 5 seconds and then it fades of.
How can get rid of that jqwidgets url which pops up of few seconds ?
October 28, 2022 at 5:35 am in reply to: jqGrid Group Renderer not working jqGrid Group Renderer not working #123770Thanks ! With the help of your Sample. I was able to trigger GroupsRenderer function present in Parent Component for our jqxGrid control present in Child Component.
But, what I noticed is onGroupschanged is called after groupsrenderer event (if you have just drag one column to group).Use case:-
I have to show the data in Grid and have multi level grouping concept. I.e. It can be grouped based on one or multiple fields.
Here, grouping header will be custom. I.e. I have to show the rollup percent of records and their total count in that group.Ex:
|- Group Level 1 35% (Total records:- 5)
|- Group Level 1.2 20% (Total records:- 2)
|- Group Level 1.2.1 20% (Total records:- 1)
|- Group Level 1.2.2 20% (Total records:- 1)
|- Group Level 1.3 10% (Total records:- 2)
|- Group Level 1.3.1 20% (Total records:- 1)In this the percent calculation is done on whole data we have (Please note:- in grid not all the data shown. It will display only what user applier filter for on screen).
Problem Statement:-
In onGroupschanged event we build an object which will have overlapper Array chunk and that will tell details about percent complete and total records for each group level. And, later in the groupsrenderer we just filter that object and use respective property to render the details.
We are doing this so that for each group we do not end up computing percent complete and total records everytime.
Intent is to build once and use it for rendering all the groups.This works fine when we drag multiple fields for grouping. But, when we just group by one field then it fires groupsrenderer function first then goes to onGroupschanged . Since the object is built in onGroupschanged and then is supposed to be used in groupsrenderer. So, in groupsrenderer that object is null and this in turn does not render the customize content in grouping header.
Question here is:-
is there a way we trigger groupsrenderer after onGroupschanged ? -
AuthorPosts