jQuery UI Widgets › Forums › General Discussions › Editors › DateTimeInput › During page load I would like one behavior and during change different one
Tagged: change, chart, date, datetimeinput, event, graph, initialize, jqxdatetimeinput, value
This topic contains 4 replies, has 2 voices, and was last updated by lev_povolotsky 11 years, 7 months ago.
-
Author
-
September 14, 2014 at 7:56 am During page load I would like one behavior and during change different one #59492
HI,
I try to implement a page the first will load a graph according the current date.
and when I change DateTimeInput I would like that the graph will be changed.I succeed to implement or the first step or the second one I don’t succeed to merge between them.
Please show me an example.
Best Regards,
Lev PovolotskySeptember 15, 2014 at 5:01 am During page load I would like one behavior and during change different one #59498Hello Lev Povolotsky,
We do not have such an example because this is a scenario specific to your project. However, we suggest you bind to the jqxDateTimeInput change event and update your graph in its event handler.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/September 16, 2014 at 10:22 am During page load I would like one behavior and during change different one #59564The issue that I need diffrent behavior when the page loaded I would like that it will load the graph according to current dat and the next according to chnage I dont know how to implement the first load the change I already implemented.
Do I need to seperate it from $(document).ready(function () { function?
September 16, 2014 at 10:45 am During page load I would like one behavior and during change different one #59565Hi lev_povolotsky,
From your first post I understood you had implemented the initial load successfully. It seems that was not the case.
You can set the initial value of jqxDateTime input on initialization by setting its value property, e.g.:
$("#jqxWidget").jqxDateTimeInput({ width: '250px', height: '25px', value: new Date() });This has to be executed in $(document).ready(), as should all your widget-related code, including event bindings.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/September 16, 2014 at 11:53 am During page load I would like one behavior and during change different one #59567OK I’ll try that if I will have any other question I’ll ask you.
Thanks a lot.
-
AuthorPosts
You must be logged in to reply to this topic.