I have a view that has 2 combo boxes (Call them ParentTypeCombo and ChildTypeCombo). Both of these combo boxes have the same backing drop down list (call it WorkItemTypes).
Using MVVM how can I know when the value was changed for these combo boxes? I have bound them to properties (Call them ParentType and ChildType). But as I recall,...
What event character is the return key? for example:
If I used "[event characters]" and pressed "a" and then enter, what would come up? When I check it's just "a" and a space. but how would I simulate a return press in a string value?
Thanks,
Elijah
...
This is more of an usability problem/bug/question.
I wanted to add an event to occur on the end of the month for every month.
But if I choose October 31 and set Repeat Event -> Every Month, all months ending in 30 are left out (including 28-feb).
So, I could solve this by putting the end of the month at 30, and only miss out on February...
for some reason, i can't use jquey ,
this is my code :
document.addEventListener("touchstart", function(e) {
e.preventDefault();
var orig = e.originalEvent;
var x = orig.changedTouches[0].pageX;
var y = orig.changedTouches[0].pageY;
//id("#draggable").css({top: y, l...
hi guys,
using pure javascript can i select all a tags with href="#xyz". And also i would like to trigger some event while clicking on that element too...
how can i do that?
PS: pure javascript means without using jquery or other frameworks
...
I created a control where other developers can create an instance and use. There is a button click in the control. How do I allow developers to plug in their own code in a certain part of my control? I am not sure if or how exactly to use a delegate or event in this scenario. Can someone help in the below example:
public class MyControl...
I would like to trigger the onresize event from my C# code behind. I think this can be done with
Page.clientScript.RegisterScriptBlock(this.getType(), "id", "javascript code");
I have tried element.onresize() but it doesnt seem to work in firefox. What is the correct way to trigger an onresize event similar to the following jQuery?
...
I am trying to create what I am thinking of as a translation class, so that my program can speak to a variety of target platforms. Each platform will be handled by a separate implementation of an abstract class. I have pared things down for the sake of simplicity.
I have an abstract class, with a couple of abstract methods:
abstract cl...
I have an unmanaged C++ COM server that is setup to fire events, and i am trying to handle these events from my C# app.
However, I get an InvalidCastException when setting up the handler
myCOMObj.MyCOMEvent += new MyCOMSource_MyCOMEventHandler(handler);
The stack trace shows:
Specified cast is not valid. at
System.Runtime.Inter...
Hello,
I want to be able to measure the "responsiveness" of an application automatically. So I want to get the time difference between the moment when I click a button (i.e. when the corresponding event has been created) and the moment when my onClick method is being run.
Do you know what happens (what methods are being called) when I ...
According to the iOS documentation, the responder chain is used to pass touch events "up the chain". It's also used for actions generated by controls. Fine.
What I really would like to do is send a custom event "up the chain". The first responder to pick up on the event will handle it. This seems like a pretty common pattern, but I can'...
I have a page with multiple elements (page A). It is set up, so all are hidden but one. When you click on a link it will hide the one currently shown and only show the section corresponding to the link you clicked. I have that code working perfectly. I also have a separate page (page B) that has a list of links. When you click one of the...
I am firing an event from an ascx control in order to update some controls in the container to which the ascx control belongs.
The ascx control is displayed via a modal popup extender. When I click a button inside the ascx, I fire an event to which the container containing the ascx control is subscribes.
The event delegate is fired and...
I have a method setup to fire onChange with the following code:
var product = $('#selProduct:visible');
var note=$('#bbdata');
product.selectProduct({
target: note,
url: 'product.php',
data: { ajax: true }
}).trigger('change'); // TO DO: to fire also on visibility change
Then I have a method where I make a div visible.
...
I am trying to change a value in the event arguments. Not sure if this is possible, but this is my current event in the parent class:
public void MasterClass()
{
void btnSubmit_Click(object sender, EventArgs e)
{
...
OnInputBound(this, new InputEventArgs(postName, value));
//I would like to try something like this ...
I have a method defined this way:
var product = $('#selProduct:visible');
var note=$('#bbdata');
product.selectProduct({
target: note,
url: 'product.php',
data: { ajax: true }
}).trigger('change');
$.fn.selectProduct= function (options) {
var defaults = {
key: "id",
value: "label"
};
var se...
hi there
i have a page that generates a report, the report is sent to the browser as an attachment.
what i would like to do is .. disable the generate report button , or show a spinny please wait, and when the attachment has finished being generated and has been sent to the browser i'd like to remove the spinny logo/re-enable the button...
What's the recommended way to do unit testing of events for classes derived from QGraphicsWidgets?
Is there an equivalent to QTestEventList for QGraphicsSceneEvents? We need to simulate mouse events in QGraphicsWidgets.
Thanks,
Alex
...
In Flex, is it possible to listen to all event types of an object that's an IEventDispatcher? addEventListener's first parameter is the type, which is a string. In many cases the documentation is not clear what event type it fires. I'd like to attach a generic listener to inspect the events.
...
I'm using Python and Tkinter, and I want the equivalent of onchange event from other toolkits/languages. I want to run code whenever the user updates the state of some widgets.
In my case, I have many Entry, Checkbutton, Spinbox and Radiobutton widgets. Whenever any one of these changes, I want to run my code (in this case, update a tex...