jQWidgets Forums
Forum Replies Created
-
Author
-
November 26, 2021 at 4:26 pm in reply to: Getting "file format and extension don't match" when exporting xls file Getting "file format and extension don't match" when exporting xls file #121134
Hello Kamp,
Unfortunately this functionality is not yet available for the xlsx file format, however it is something we may consider adding in the future.
In the meantime, you may also consider usingexportdata('html')
which also preserves the CSS rules of the GridIf you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comNovember 26, 2021 at 3:10 pm in reply to: How to set a value for jqxdropdownlist filter How to set a value for jqxdropdownlist filter #121131Hi qx5,
The filter works when the ‘keyup’ event is fired. So if you want to filter by setting a value, you need to fire the ‘keyup’ event:
element.dispatchEvent(new Event('keyup'))
Please have a look at the fiddle here: https://jsfiddle.net/tq041zuw/5/
If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comNovember 24, 2021 at 4:25 pm in reply to: Getting "file format and extension don't match" when exporting xls file Getting "file format and extension don't match" when exporting xls file #121122Hi Kamp,
Thank you for reporting the problem. We are aware of the issue and we are working on fixing it as soon as possible.
The problem comes from the jqxGrid not importing some of the required scripts.
Until the fix becomes available, you can use theexportview
function by manually importing the missing scripts:
Inside the index.html file of the project, you need to import the following scripts:<script type="text/javascript" src="https://www.jqwidgets.com/public/jqwidgets/jqxexport.js" ></script> <!-- JSZip --> <script type="text/javascript" src="https://www.jqwidgets.com/jquery-widgets-demo/scripts/jszip.min.js" ></script> <!-- pdfmake --> <script type="text/javascript" src="https://www.jqwidgets.com/jquery-widgets-demo/scripts/pdfmake.min.js" ></script> <script type="text/javascript" src="https://www.jqwidgets.com/jquery-widgets-demo/scripts/vfs_fonts.js" ></script>
Then inside the app.module.ts, you need to import the following script:
import 'jqwidgets-scripts/jqwidgets/jqxexport';
Now you can use the exportview function in your application:
this.myGrid.exportview('xlsx', 'jqxGrid');
You can have a look at a working demo here: https://stackblitz.com/edit/github-a5f9we?file=src/app/app.component.ts
Apologies for the inconvenience. We will release a permanent fix as soon as possible!
If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comNovember 22, 2021 at 4:46 pm in reply to: Card View & Dropdown Lists Card View & Dropdown Lists #121113Hello Warren,
Yes, it does work! Although this functionality is not natively supported, it is possible to apply a work-around solution.
Please have a look at this fiddle: https://jsfiddle.net/mozhbqfe/1/The function inside the event, triggered on ‘pointerdown’, replaces the default text field with a drop down list and then passes the selected value back to the text field.
Using a similar method, it is possible to use any other jqWidgets Component inside CardView.If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comNovember 22, 2021 at 1:58 pm in reply to: Getting "file format and extension don't match" when exporting xls file Getting "file format and extension don't match" when exporting xls file #121111Hi Kamp,
The xlsx format is now supported either by using the exportdata method or exportview, which generates the exported file on the client-side, without requiring a server.
Please have a look at the demo here: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/dataexportview.htm?lightIf you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comHi naveen145903,
For exporting large amount of data, I suggest using the
exportview
method(have a look at the demo here), which generates the exported file client-side and doesn’t require a server. For example:
$("#gridTasks").jqxGrid('exportview', 'xlsx', 'TaskList');
or
$("#gridTasks").jqxGrid('exportview', 'csv', 'TaskList');
Alternatively, exportData allows you to export only the rows you need using the
rows
property.Please let me know if any of these solutions work for you!
If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comHi loridale27,
If you don’t use github, you can also send us a zipped project, which reproduces the issue so that we can give you a proper solution.
In the meantime, if have already imported jqxGridModule and/or any other jqWdigets Module in
AppModule
and you want those modules to be available to other custom modules, then you can set jqxGridModule as one of theexported
modules fromAppModule
and then importAppModule
to the custom modules, where you want to use the jqxGridModule. I suggest having a look at the following guide regarding sharing modules in Angular.I hope this will be of help!
If you face any other problems, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets TeamNovember 19, 2021 at 1:53 pm in reply to: [jqxGrid] Export column date time to xlsx [jqxGrid] Export column date time to xlsx #121104Hello Vince,
The numbers in the xlsx file represent 2 + the number of days since 1900-01-01 , which is Excel’s default way of handling Dates.
To customize this, you can set the
cellsformat
property of your date column.
For example the following column:{ text: "My date", datafield: 'myDate', cellsformat: 'dd.MM.yyyy HH:mm' }
will correctly export the data to an xlsx file.
If you have any other questions, please do not hesitate to contact us again!
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comNovember 17, 2021 at 2:29 pm in reply to: jqxDateTimeInput 'German'`Error in Input jqxDateTimeInput 'German'`Error in Input #121097Hello gruppenhaus,
Thank you for reporting the problem. This is not the expected behavior of the editMode and we will work on finding the issue as soon as possible.
In the meantime, I suggest using editMode: “default”, which also allows users to manually input dates by entering numbers.
To see how default editMode can work in your case, please have a look at this fiddleIf you have any other questions, please do not hesitate to contact us again!
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comNovember 15, 2021 at 3:17 pm in reply to: Aggregate status bar row not lining up with row above Aggregate status bar row not lining up with row above #121081Hi jpeszleny,
Thank you for reporting the issue.
We will work on solving the problem, in the meantime, please have a look at the fix in this fiddle:
https://jsfiddle.net/5ok4t3L0/If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comNovember 15, 2021 at 2:17 pm in reply to: Angular Semi Knob not working Angular Semi Knob not working #121080Hello iwagner,
The issue seems to come from the setup of the Angular Application, rather than the Knob element.
Another possible solution would be to navigate to the
angular.json
file of your project and set
projects.$projectName.architect.build.options.preserveSymlinks
to true.If the problem continues, please contact us again by sending us a code example of the application, so that we can reproduce the issue and help you fix it.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comNovember 15, 2021 at 2:09 pm in reply to: Angular Semi Knob not working Angular Semi Knob not working #121079Hi alnajar85,
You can easily resize the Knob by setting the
width
andheight
properties as a percentage of the container element.
Please, have a look at the example here: https://stackblitz.com/edit/github-ylewon?file=src/app/app.component.html
I hope this will be of help!If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/November 15, 2021 at 11:22 am in reply to: Problem in Grid Checkbox filters Problem in Grid Checkbox filters #121077Hi bgl,
Filteritems accepts values of type array, so there is no need to use the jqx.dataAdapter for the filteritems property.
You can have a look at this angular demo to see an example of implemented filteritems.Also, if you want to display all unique values from a column in the checkbox filter, jqxGrid will do it by default without the need for filteritems property.
If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets TeamNovember 8, 2021 at 11:25 am in reply to: how to change the column order how to change the column order #121035Hi mustafa,
Please have a look at the following fiddle to see how to use the
setcolumnindex
method:
https://jsfiddle.net/L1hgy4fq/3/
$('#grid').jqxGrid('setcolumnindex', 'id', 0);
The first parameter of the method should be the dataField name of the column you want to move to the front. In the example above, it is “id”.
The second parameter sets the new index of the column. In your case, the index of the sequence numbers column should be set to 0 so that they are on the far left.I hope this will be of help!
If you have any other problems, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comOctober 29, 2021 at 11:38 am in reply to: How to tell if a tab is enabled? How to tell if a tab is enabled? #121000Hello ajcs,
I apologize for the confusion.
You can use the following code to get the state of a tab. Here#jqxTabs
represents the id of your jqxTabs element:
var state = !document.querySelectorAll("#jqxTabs .jqx-tabs-title")[index_of_tab].classList.contains('jqx-fill-state-disabled');
You can invoke the
length
method to get the count of the tabs. For example:
var tabsCount = $('#jqxTabs').jqxTabs('length');
Please have a look at the example here:
https://jsfiddle.net/q0gb9rvj/2/I hope this will fix your issue.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.com -
AuthorPosts