jQWidgets Forums
-
Search Results
-
Topic: ThemeBuilder 2.0
Hi,
I have a question to the new ThemeBuilder. PS: It’s very nice ?
But I have several points which are special:
Point 1:
If I export a new CSS from ThemeBuilder, after the –jqx-accordion-arrow-down-hovered-color-light is a “undefined”.
–jqx-accordion-arrow-up-hovered-color-light: url(‘images/metro-icon-up.png’);
–jqx-accordion-arrow-down-hovered-color-light: url(‘images/metro-icon-down.png’);
undefined
–jqx-button-default-text-color-light: rgba(85, 85, 85, 1);
–jqx-button-default-background-color-light: rgba(255, 255, 255, 1);Point 2:
The .jqx-tabs-content-light includes a “padding:5px” line. Is there a possibility to set the padding in the ThemeBuilder? I use 0px; I must every time change it manually.
Point 3:
I’ve used the light theme builder theme. Now, all Date-Fields (jqxDateTimeInput) has no calendar icon. The Clock input field has one. Both are set for showing the Button and I can click on it and the calendar will start.
Point 4:
With the new Theme Builder and using altRows in Grid, the background color which is set with the classname will not be shown on lines with alternating color… Without alternating rows or the rows, which are not alternated, the class will be displayed. With the old theme, it works.
I use the version which is explained under following demo: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/showcase.htm
For me it’s a very important feature, because I mark special entries with different background colors.
Thanks,
RolandHi there
We had chart export functionality working fine but suddenly it stopped working.
It is giving below error message when trying to export chart as imageKindly advise the solution/workaround ASAP
Thanks
AbhishekHi, I’m trying to export my jqxGrid to an excel file but it does not download. I hope you can help me. Thank you.
This is my code and it does not show me any error in console.
function obtener_Personas() { var persona = $("[id*=ddlPersona]").val(); var Sucursal = ""; var id_Rol = 1; if (intervalo != 0) { var valores; $.ajax({ type: "POST", dataType: "json", url: "frmPersonas.aspx/Persona", contentType: "application/json; charset=utf-8", data: '{id_Persona:"' + persona + '",Sucursal:"' + Sucursal + '",id_Rol:"' + id_Rol + '"}', async: false, success: function(data) { if (data != '') { valores = data.d.split("-"); var url_imagen = valores[1]; $("#imgProceso").attr("src", url_imagen); valores = JSON.parse(valores[0]); } var gridSource = { datatype: "json", localdata: valores, async: false }; var gridDataAdapter = new $.jqx.dataAdapter(gridSource); $("#gvDatos").jqxGrid({ width: 1030, columnsresize: true, autoheight: true, autorowheight: true, autoheight: true, altrows: true, rowsheight: 35, pageable: true, sortable: true, filterable: true, source: gridDataAdapter, columns: [ { text: 'ID', datafield: 'id_Persona', width: 200 }, { text: 'Sucursal', datafield: 'Sucursal', width: 200 }, { text: 'Estado', datafield: 'Estado', width: 200 }, { text: 'Municipio', datafield: 'Municipio', width: 200 }, { text: 'Ciudad', datafield: 'Ciudad', width: 200 }, { text: 'Nombre', datafield: 'Nombre', width: 200 } ] }); }, error: function(error) { alert(error.responseText); console.log(error.responseText); jsonValue = jQuery.parseJSON(Error.responseText); alert(error.respose.Text); alert("Error"); } }); } else { alert("Por favor seleccione todos los datos"); } }
This is my function to download my excel through a variable but it does not download anything and if it shows me the data in console, but I do not download the file (I have added the resources as indicated in your documentation). I do not have developer or company licenses.
var descarga; function descargar_Excel() { descarga = $("#gvDatos").jqxGrid('exportdata','xls'); console.log(descarga); }
Hi, I’m trying to export my jqxGrid to an excel file but it does not download. I hope you can help me. Thank you.
This is my code and it does not show me any error in console.
function obtener_Personas() { var persona = $("[id*=ddlPersona]").val(); var Sucursal = ""; var id_Rol = 1; if (intervalo != 0) { var valores; $.ajax({ type: "POST", dataType: "json", url: "frmPersonas.aspx/Persona", contentType: "application/json; charset=utf-8", data: '{id_Persona:"' + persona + '",Sucursal:"' + Sucursal + '",id_Rol:"' + id_Rol + '"}', async: false, success: function(data) { if (data != '') { valores = data.d.split("-"); var url_imagen = valores[1]; $("#imgProceso").attr("src", url_imagen); valores = JSON.parse(valores[0]); } var gridSource = { datatype: "json", localdata: valores, async: false }; var gridDataAdapter = new $.jqx.dataAdapter(gridSource); $("#gvDatos").jqxGrid({ width: 1030, columnsresize: true, autoheight: true, autorowheight: true, autoheight: true, altrows: true, rowsheight: 35, pageable: true, sortable: true, filterable: true, source: gridDataAdapter, columns: [ { text: 'ID', datafield: 'id_Persona', width: 200 }, { text: 'Sucursal', datafield: 'Sucursal', width: 200 }, { text: 'Estado', datafield: 'Estado', width: 200 }, { text: 'Municipio', datafield: 'Municipio', width: 200 }, { text: 'Ciudad', datafield: 'Ciudad', width: 200 }, { text: 'Nombre', datafield: 'Nombre', width: 200 } ] }); }, error: function(error) { alert(error.responseText); console.log(error.responseText); jsonValue = jQuery.parseJSON(Error.responseText); alert(error.respose.Text); alert("Error"); } }); } else { alert("Por favor seleccione todos los datos"); } }
This is my function to download my excel through a variable but it does not download anything and if it shows me the data in console, but I do not download the file (I have added the resources as indicated in your documentation). I do not have developer or company licenses.
var descarga; function descargar_Excel() { descarga = $("#gvDatosCompensaciones").jqxGrid('exportdata','xls'); console.log(descarga); }
I have a grid with an image column and a custom @angular/material dialog defined, but I have problem integrating the two:
import { Component, Inject } from '@angular/core'; import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material'; import { DialogDetailComponent } from '../dialog-detail/dialog-detail.component'; import { jqxGridComponent } from '../../../node_modules/jqwidgets-scripts/jqwidgets-ts/angular_jqxgrid'; export class MyComponent { dialog: MatDialog; // local instance of the @angular/material dialog constructor(dlg: MatDialog) { this.dialog = dlg; console.log("dialog obj:", this.dialog); // correctly prints the dialog obj }; columns: any[] = [ { text: 'Name', datafield: 'name', width: '200' }, ... { text: 'Action', datafield: 'id', editable: false, filterable: false, createwidget: (row: any, column: any, value: string, htmlElement: HTMLElement): void => { ... const vButton = jqwidgets.createInstance('#'+ vId, 'jqxButton', vOptions); vButton.addEventHandler('click', function (): void { ... const dialogConfig = new MatDialogConfig(); dialogConfig.disableClose = true; dialogConfig.autoFocus = true; dialogConfig.data = row.bounddata; // follow the angular material example to create a dialog // <a href="https://material.angular.io/components/dialog/examples">@angular/material MatDialog documentation</a> this.dialog.open(dialogDetailComponent, dialogConfig); // the above statement fails as "this" no longer references the MyComponent console.log(this); // it prints a html dom element instead ... } } ]
In createwidget(), how can I make a call to the open() method that the local member “dialog” of the MyComponent has?
Topic: export – grid -error
I am trying to do the export of grid to excel.
I am using the following code to the exportexcelBtnOnClick() { console.log('excelBtnOnClick()'); this.myGrid.exportdata('xls', 'jqxGrid'); }
I got the following error. what is is ‘getexportcolumntype’ means in the below error.
ReportEngineComponent.html:70 ERROR TypeError: Cannot read property 'indexOf' of null at c.(:8888/reportMgr/anonymous function)._getexportcolumntype (http://localhost:8888/gainangular/app-image-upload-image-upload-module~app-…s-module~app-my-data-my-data-module~app-predef-cust~3c0da948.js:33931:7668) at c.<anonymous> (jqxgrid.export.js:8) at Function.each (jqxcore.js:8) at c.(:8888/reportMgr/anonymous function).exportdata (http://localhost:8888/gainangular/app-image-upload-image-upload-module~app-…s-module~app-my-data-my-data-module~app-predef-cust~3c0da948.js:33931:1551)