@valve1023gmail-com
@valve1023gmail-com
Forum Replies Created
-
AuthorPosts
-
valve1023@gmail.comParticipant
Hello.
I figured out why the onInit event is not triggered.
The Smart UI version I tested is 15.2.8, while the example on CodePen is using version v14.1.2, which is a different version.
When I tested it with version 14.1.2, the onInit and onRender events were triggered, but when I tested it with version 15.2.8, the events did not trigger.
Is this phenomenon a bug, or is there another reason?
valve1023@gmail.comParticipantHello.
In general, the insertTask sample source works fine.
Currently, I am using jqWidgets and I want to use GanttChart of SMART UI in addition.
However, it seems that an unknown error occurs because of jQuery of jqWidgets.
There seems to be a problem when using jqWidgets and SMART UI together. Is there any way to solve this?
thank youvalve1023@gmail.comParticipanthello.
insertTask function does not work.
Below is the sample code.Maybe jQuery is the problem?
How do I solve this?Sorry for being written by a translator.
Thank you.
$(document).ready(function () { const ganttchart = document.querySelector('smart-gantt-chart'); const result = ganttchart.insertTask({ label: "Project1", dateStart: '2021-01-01', dateEnd: '2021-06-31', type: "project" }); }); Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf') at BaseElement.insertTask (smart.elements.js:83:32164) at BaseElement.r (smart.elements.js:6:72232) at HTMLDocument.<anonymous> (001.aspx:152:39) at j (jquery-1.11.1.min.js:2:27244) at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2:28057) at Function.ready (jquery-1.11.1.min.js:2:29891) at HTMLDocument.J (jquery-1.11.1.min.js:2:30257)
</div>
- This reply was modified 2 years, 5 months ago by valve1023@gmail.com.
-
AuthorPosts