@svetoslav_borislavov
@svetoslav_borislavov
Forum Replies Created
-
AuthorPosts
-
svetoslav_borislavovParticipant
Hi,
Could you, please try setting the dataSource after sorting the table?
const table = document.getElementById(‘table’);
table.sortBy(‘Country’, ‘asc’);
table.dataSource = ……Hope this helps and we are waiting for your feedback!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You should change the settings.value in order to display the correct format.
{
label: ‘Date’,
dataField: ‘date’,
formatFunction: function (settings) {const formatedDate = new Smart.Utilities
.DateTime(settings.value)
.toString(‘MM/dd/yyyy’);settings.value = formatedDate;</div>
}
}Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/- This reply was modified 1 year, 11 months ago by svetoslav_borislavov.
- This reply was modified 1 year, 11 months ago by svetoslav_borislavov.
svetoslav_borislavovParticipantHi,
You can import Smart and use it this way:
import { Grid, Smart } from ‘smart-webcomponents-react/grid’;I hope this helps, if not, do not hesitate to contact us!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/- This reply was modified 1 year, 11 months ago by svetoslav_borislavov.
- This reply was modified 1 year, 11 months ago by svetoslav_borislavov.
svetoslav_borislavovParticipantHi,
Can you please send us an example?
You can do it in codepen: https://codepen.io/svetoslavb04/pen/LYrBmrJ
or send a demo here: support@jqwidgets.comBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Here is a demo with a tooltip in the grid. As you can see it is pretty complicated.
https://codepen.io/yavor_htmlelement/pen/dyVOEpY?editors=0010
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
The next release will be in December.
You cannot restrict half an hour. We do support restrictions for hours and days!
We hope you are happy using our product, if you face any additional questions, let us know!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
In the example, the group is clientId which is an array of three people. To group by more people just add more people to the array.
To remove the image you can edit the group template which is located in index.html.Refer here to see it in index.html: https://stackblitz.com/github/htmlelements/smart-webcomponents-angular/tree/master/demos/scheduler/grouping-overview/?file=src%2Findex.html
Here is an example of adding more people to the resources: https://codepen.io/svetoslavb04/pen/vYrjdve
The size of each person is calculated by calculating the total width of the cells in the timeline.
Of course, you can edit them.You can style the grid the way you want, click here and scroll down to see all the available CSS variables that you can tweak:
https://www.htmlelements.com/docs/scheduler-css/I hope this helps! If not, do not hesitate to contact us!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/svetoslav_borislavovParticipantHi,
In the Angular version, there is a property “restricted” which accepts an array of objects. Each object has a date and hours. This describes the restricted dates with hours:
For example:
const today = new Date();
const currentDate = today.getDate();
const currentYear = today.getFullYear();
const currentMonth = today.getMonth();restricted: [
{ date: new Date(currentYear, currentMonth, currentDate), hours: [[0, 8], 20, 21, 22, 23] },
{ date: new Date(currentYear, currentMonth, currentDate – 2), hours: [[0, 3], 12, [20, 21]] },
{ date: new Date(currentYear, currentMonth, currentDate + 2), hours: [13] },
{ date: new Date(currentYear, currentMonth, currentDate – 5), hours: [[0, 3], 13, [21, 22]] },
{ date: new Date(currentYear, currentMonth, currentDate + 5), hours: [[0, 7], 13, [21, 22]] },
{ date: new Date(currentYear, currentMonth, currentDate – 10), hours: [[0, 8], 12, [20, 23]] },
{ date: new Date(currentYear, currentMonth, currentDate + 10), hours: [[0, 9], 12, [20, 23]] }
]In the next release, the property will be available in all versions
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/- This reply was modified 2 years ago by svetoslav_borislavov.
svetoslav_borislavovParticipantHi,
You can select every child element, remove the style property, and then get the inner HTML.
const table = document.querySelector(‘table’);
table.removeAttribute(‘style’);const tableElements = table.querySelectorAll(‘*’);
tableElements.forEach(el => el.removeAttribute(‘style’))console.log(table.innerHTML);
I hope this helps, if not, do not hesitate to contact us!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/- This reply was modified 2 years ago by svetoslav_borislavov.
svetoslav_borislavovParticipantHi,
It is not possible. the allowed values are:
Allowed Values
“hour” – The timeline cells have a duration of one hour.
“halfHour” – The timeline cells have a duration of one half an hour.
“quarterHour” – The timeline cells have a duration of one quarter hour.
“tenMinutes” – The timeline cells have a duration of ten minutes.
“fiveMinutes” – The timeline cells have a duration of five minutes.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You are using the onClick event in which there isn’t event.detail or event.detail.item.
You should you onItemClick and also get the target from here: event.detail.originalEvent.targetHere is the desired method:
handleGanttClick(event: CustomEvent) {
const ganttChart = this.ganttchart?.current;
const eventDetails = event.detail;
const target = event.detail.originalEvent.target;
if (target.classList.contains(‘add-task-button’)) {
const itemIndex = parseInt(
ganttChart?.getItemPath(eventDetails.item).split(‘.’).slice(-1)[0]) + 1,
itemProject = ganttChart?.getItemPath(ganttChart.getTaskProject(eventDetails.item)
);
//Add a new Task
const newItemId = ganttChart?.insertTask(
{
label: ‘New Task’,
dateStart: ganttChart.dateStart
},
itemProject,
itemIndex
);
//Open the Editor to configure
ganttChart?.openWindow(newItemId);
}
}I hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/- This reply was modified 2 years ago by svetoslav_borislavov.
svetoslav_borislavovParticipantHi,
You can safely use the dropdown list as it has the virtualized property.
This property will add a few elements and update them upon scrolling.I hope this helps increase the performance!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
I cannot see the images, can you send them here: support@jqwidgets.com
Also, can you send the demo project?
We are waiting for your reply
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
I received your example. I have modified it a little bit.
Since loading data with the property ‘ virtualized’ of the list box significantly increases the performance I have implemented a drop-down list with the combination of a drop-down button and a list box. Also, I have applied some CSS as you can see in the ‘elementi.css’.
You can download a copy of the modified version from here: https://easyupload.io/0eeudv
See how a managed to do the drop-down list and you can implement it with every drop-down list which has got many data.Please use this method only when you have got many data. For a drop-down with a few list items use the default drop-down list.
See ‘elementi.css’, ‘index.html’, ‘combobox.js’
I hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
The problem comes from the grid’s static width. It is overflowing from the wrapper container.
You can set the overflow to auto of the wrapper container this way: <div class=”border border-primary rounded p-2 my-auto bg-light overflow-auto”>I hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts