jQWidgets Forums
Forum Replies Created
-
Author
-
Hello, Peter,
I tried what you suggested and found that PivotGrid does not have method setColumnWidth available.
You using something that is in pre-release. If so not a problem for me. I can wait.
Thanks,
GaryHello, Peter,
I might not have been clear about width setting. I wanted to put on the dataField and adjust for the chart. Please see the below.
When execute I get an adjustment for only the second width. However, the first width statement does not affect anything.
const pivotDataSource = new jqx.pivot(
dataAdapter,
{
pivotValuesOnRows: false,
totals: {
rows: {subtotals: true, grandtotals: true},
columns: {subtotals: false, grandtotals: false}
},
rows: [
{dataField: ‘Precinct’, width: 300}, <==== This has no affacts.
{dataField: ‘Candidate’, width: 175} <==== This works.
],
columns: [{dataField: ‘Office’}],
values: [
{dataField: ‘VotesPolling’, ‘function’: ‘sum’, text: ‘Polling’, align: ‘right’},
{dataField: ‘VotesEarly’, ‘function’: ‘sum’, text: ‘Early’, align: ‘right’},
{dataField: ‘VotesProvisional’, ‘function’: ‘sum’, text: ‘Provisional’, align: ‘right’},
{dataField: ‘VotesTotal’, ‘function’: ‘sum’, text: ‘Total’, align: ‘right’}
]
}
);Update…..
Please disregard the expand error I mention earlier. It is the result of data not making it to the pivot data source. I believe my question is, how
to get the data from the DataAdapter to the pivot data source. I’m not sure how to construct the Binding complete function on the DataAdapter so I can ensure the data is loaded before executing the pivot data source.I’m sure I just not understanding something. A little different twist here with the need to transform the data.
Thanks,
GaryPeter,
Thanks for the update. I was thinking the same.
Like I said everything with the control works.Gary
I fixed my configuration problem.
Never mind…
Gary
Works…
Thanks,
GaryStanislav,
It works.
Thanks,
GaryThanks Peter… Was the problem.
That is what I get for cutting and pasting…
Works great….
Ivo,
I have but, I just have not had the time to work on that piece just yet. I want to make sure I have done my diligence before asking for help.
Again, I’m using angular-cli@1.0.0-beta.24 and some of the WEBPACK definitions are not exposed and I want to work through that tool.
Thanks for reaching out. I’ll be back either way once I get back to that task.
Best regards,
GaryHi Rjwjnen,
I have a development environment working with angular-cli@1.0.0-beta.24. This setup process uses WEBPACK with JQWIDGETS 4.4.0 and Angular 2.3.1.
My intent was to use all Open Source products and procedures with minimum configuration to make things work.However, I do not have anything in writing on what I changed right now but, I can send you copies of my files short term and then in a couple of days I will put together the steps I performed to make this work for me. The JQWIDGETS are getting loaded to the script bundle and the Angular 2 components are being loaded to the main bundle.
The one thing I have tried and have a problem with is AOT. I just have not had a chance to get back into looking at the issue.
If this sounds like something that might work for you please send me an email to ghaddon1@gmail.com.
Regards,
GaryPrashant,
If you can send me your email I’ll will forward copies of files requested if still needed.
Regards,
GaryI can wait for the update.
I’m just in the beginning of using Angular 2 with JQWIDGETS and Angular 2 is still in RC mode.Thanks….
Peter,
I found the error om my side.
When I call the grid rowclick event the code in the template should read <angularGrid (OnRowclick)=”OnRowclick($event)”></angularGrid>.
The key to Angular 2 passing the arguments is that the $event ($event) to component from angular jqwidgets control.
I hope this makes sense.Thanks,
GaryPeter,
Works!!!! Thanks………
Thanks Peter….
-
AuthorPosts