@svetoslav_borislavov
@svetoslav_borislavov
Forum Replies Created
-
AuthorPosts
-
March 20, 2023 at 4:52 am in reply to: Programmatically Sort with addSort() by multiple DataFields #104568svetoslav_borislavovParticipant
Hi,
You are welcome!
If you face any difficulties, do not hesitate to contact us!Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Thank you for updating us!
Good job, if you need further assistance, do not hesitate to ask!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may fetch the JSON and parse it to a plain object. The config cannot be JSON.
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
The equivalent to the jqx-all.js is the smart.elements.js. You can use it to import all the components.
Do not forget to import the CSS, smart.default.css.If you want to import only a specific component, you should import it with its related module.
For example, if you want to import only the buttons: ‘source/modules/smart.button.jsBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/March 17, 2023 at 9:45 am in reply to: Programmatically Sort with addSort() by multiple DataFields #104551svetoslav_borislavovParticipantHi,
Thank you for reporting that, it is a problem on our side!
Here is a workaround for it: https://stackblitz.com/edit/github-r7q5ul?file=src/app/app.component.ts
Just set the arrays as anyI hope this helps
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may try using beginUpdate and endUpdate methods.
Invoke the beginUpdate before the many updateTask invocations. After updating the task call the endUpdate method.
This should help improve the performance.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may have attached a click event with some behaviour to this invisible button.
Here is a demo of this invisible button and you may see that clicking it won’t cause a crash.
https://codepen.io/svetoslavjqwidgets/pen/bGxKxgZ?editors=0110If you want a header to be without buttons you have two options:
1) use your approach and set the headerButtons to [”] and using CSS set the display property of the .smart–button to none
!Note that the button’s class name has two dashes ‘smart–button’2) The second one is to hide the ‘smart-buttons-container’ of the panel that you want to be without buttons.
Here is a demo: https://codepen.io/svetoslavjqwidgets/pen/RwYJYgJI hope this helps resolve the problem!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Yes, as my colleague said. If you want to translate to ‘de’, for example, the messages object will be something like this:
messages: {
‘de’: {
‘pagerFirstButton’: ‘First’,
‘min’: ‘Min value: {{value}}’
}
}Please see the Localization guide, my colleague forwarded to you, to get a full understanding.
Here is a demo with a localized grid: https://www.htmlelements.com/demos/grid/localization/
Codepen: https://codepen.io/svetoslavjqwidgets/pen/JjaZaKWI hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Smart.Grid rerenders itself when needed and upon many events. This is the default behaviour and it is not problematic. You are maybe triggering the rerender of it with some non-grid-related code. You may see that even if you open your dropdown in a smaller viewport, the grid will trigger a rerender.
I can see that in your grid_init function, you are invoking the ‘ajaxProgressStop’ method, which may cause this rerender if the method has something to do with the DOM.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may send it here: support@jqwidgets.com
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
As you can see with your code, the described behaviour is not present.
https://codepen.io/svetoslavjqwidgets/pen/xxaWgRECan you please share a demo with the problem?
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
The filter property can also be a function. This allows to completely customize the filtering logic.
The function passes a single argument – each Scheduler event that will be displayed.
The function should return true ( if the condition is met ) or false ( if not ).Here is an example: https://codepen.io/svetoslavjqwidgets/pen/LYJmGLr
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
The paging functionality is required when using virtual data source.
This is the reason why changing paging to false does not work.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may check our demo with the dynamic column template:
https://www.htmlelements.com/demos/grid/column-dynamic-template/Here is a custom one for your needs: https://codepen.io/svetoslavjqwidgets/pen/xxaWgRE
You should set a template in the column definition.
It should be a function that accepts formatObject.
You can use the format object to access the row data.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
What you are saying is different to the one in the original question
To do the desired thing please see here: https://stackblitz.com/edit/github-qf1sqv-bdtga8?file=src/app/app.component.ts
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts