as in title. If I set $.ui.autoLaunch to false (to get splashscreen) and fire $.ui.launch(); after few seconds, loadpanel event is not being fired when I switch between views. Anyone faced that?
You might be using an older version of appframework?, here is a working example of loadpanel event firing with $.ui.autoLaunch = false:
http://jsbin.com/rigit/1/edit
This example is using latest 2.1 version of Intel appframework.
Related
Im using free-jqgrid and trying to simply hande subgrid collapsed event (subGridRowColapsed). However it's never get triggered.
I've tried jqGridSubgridRowColapsed also and same result.
subGridRowExpanded works fine.
...
subGridRowColapsed: function (pID, rID) {
console.log("YES");
},
...
It's good if you post the version of free jqGrid, which you use.
In any way, free jqGrid don't support neither subGridRowColapsed callback nor the event jqGridSubgridRowColapsed. There are exist callbacks subGridBeforeCollapse, subGridBeforeExpand, subGridRowExpanded and events jqGridSubGridBeforeCollapse, jqGridSubGridBeforeExpand, jqGridSubGridRowExpanded, which can be used. See here and here as short documentation.
I’m using StimulSoft JavaScript reporting and I need to make charts in the GroupFooter of my report. I searched for the solution and I came up with the following link:
https://forum.stimulsoft.com/viewtopic.php?&t=5212
I tried it but the events in the report seem to not be working.
I prepared a sample report similar to what I need without the unnecessary data:
In this (attached) report, there is a GroupHeader, a Databand (not assigned), a GroupFooter, a chart in the GroupFooter with constant data and a variable named “myVar” with the initial value of “12”. There is also a TextBox set with {myVar} in order to see if the value of variable is changed. In the “before event” of the GroupHeader, the value of variable is changed to “98”. However, in the preview mode the event does not seem to fire and the value of TextBox is not changed.
What am I doing wrong? I checked the similar reports and they went through the same process.
I checked it on js.stimulsoft.com as the latest build.
The events are not supported in Stimulsoft Reports.JS
When I add a new row kendo ui grid it does not move to next page even I set page number dynamically.
But when there is a javaScrip alert it's working fine.
Has any one faced this issue before. Please suggest me a solution.
Thank you.
The problem is that when you add a new row there are a series of actions that happen in parallel and they are not immediate. If you try to move to the end but the row still is being created, if fails.
When you add an alert, you delay the fact of moving and creation now have time.
If you really need to do it, you can add a timeout (delay) it is not nice/clean but should work.
Do something like:
setTimeout(function() {
grid.page(3);
}, 500);
for introducing half second (500 ms) delay, should be enough.
We had sort of similar issue in IE - onchange fired twice with alert in the event handler. According to what you saying, it sounds like when the alert is NOT in you are getting correct behaviour. Review your code without having the alert in or post a fiddle. Below is an answer from Kendo support in regards to alerts while debugging. Do not use alerts with kendo to stay safe.
Basically this behavior is caused by using "alert" method for debugging purposes - please note that this is not recommended because it can lead to unexpected behavior when interacting with focusing elements. After replacing the "alert" method and with "debbuger" command or "console.log()" function the change event is working as expected - please check this screencast(http://screencast.com/t/7qIAdK6hZ5kD).
Hope it helps.
I have a numberfield and a list in Sencha Touch. When I click on an item in the list, I am doing an AJAX request to send data to the server. However, if there is data in the numberfield, I want to clear that when the list is clicked on. I have no problem doing this (I am setting the value to a blank string), however, the change event is fired on the numberfield. This causes another AJAX request to run which doesn't need to. Is there any way to clear a numberfield WITHOUT firing the change event? SuspendEvents does not work as clearing the numberfield requires an event. Any thoughts or suggestions? Thanks!Code lines that I have tried: suspendEvents(); me.getWhatScreen().down('numberfield[name=caseNumber]').setValue(''); resumeEvents(true); me.suspendEvents(); me.getWhatScreen().down('numberfield[name=caseNumber]').setValue(''); me.resumeEvents(true);
Do suspendEvents(), update your numberfield and then do resumeEvents()
UPDATE
var control = me.getWhatScreen().down(...);
control.suspendEvents();
control.setValue('');
control.resumeEvents(false);
UPDATE for Sencha Touch 2.4
the correct sequence is
var control = me.getWhatScreen().down(...);
control.suspendEvents();
control.setValue('');
control.resumeEvents(true);
resumeEvents takes the boolean parameter discardQueuedEvents
This code:
function attachDateNavEventHandler() {
$('.ui-datepicker-title option').each(function () {
$(this).mouseup(setFlag);
});
attaches the event fine in FF but not in IE 8 or Chrome. I'm working with the jQuery datepicker and want to set a flag if the user navigates with the month or year drop-downs. I can't seem to attach to the onchange event of the selects. I think there must be an internal block on those events. I also had trouble using a simple click
Any suggestions mooooooost welcome :).
Try:
$(this).on('mouseup', setFlag);
Though this is basically the same thing you have.
I have a feeling that the options themselves may have the funny business. Options can't do everything that a typical HTML element can, but I'm not certain of the limitations on what browsers.
What about setting an on change on the whole select itself instead of trying to listen for mouseup events of each individual option.
$('.ui-datepicker-title').change(