How to make individual events editable? - jquery-plugins

Is there any way to make individual events editable as opposed to making the entire events array editable?
Thanks,
Shruthi

Each event has an editable=true/false property.
--patrick

Related

FireMonkey observers

I have two custom controls tDescendant1 and tDescendant2 that are descendants of other custom control tAncestor. tAncestor handle some events as MouseDown, Click, etc. tDescendant1 and tDescendant2 also must handle the Click event, so they, in turn, set the ancestor's OnClick event to its own handler.
I have on the form Descendant1 and Descendant2 (wich are instances of tDescendant1 and tDescendant2 respectively) and I need that when an OnClick event is fired on Descendant1, the underlying tAncestor of Descendant2 be notified.
Can I use observers to accomplish this?
Appreciate any suggestion. Thanks.

Add custom cell after the creation of a handsontable

I'm trying the Handsontable for the first time. My requirement is this: I want to be able to add a cell after the table has been created, in which I want to customize the content using renderer methods.
My goal is to add action buttons, such as "edit, delete, etc." for each row.
It seems possible to do so when creating the table, using the renderers, but I really need to be able to do this later on.
Is such a feature possible with Handsontable ? Any hint ?
On your action handlers, try calling HOT's updateSettings passing in the new options. options takes in a list of name-value pairs which can be any handsontable property that can be configured.

How to collapse all the groups of CListCtrl?

I have created a CListCtrl with groups in it. I need to expand/collapse the group dynamically. How can I achieve that?
LVM_SETGROUPINFO message updates list view group data, including state. And one of the states is:
LVGS_COLLAPSED The group is collapsed.
Hence, you send a message and update the state. MFC wrapper over it is CListCtrl::SetGroupInfo.

When using data binding, how do I know when a control was added?

When using data binding, how do I know when a control was added?
I'm using ItemsControl element with ItemTemplate.
I want to know when a control was added like event(ex. OnControlAdded)
Please help me
That's not how it's supposed to work, you got it upside down.
You're supposed to have a ViewModel, and Collection in there that you then bind to your ItemsControl.
On that collection, which should be observable, you have a CollectionChanged event. Subscribe to this one, it will fire when elements are added/removed which in turn will make your ItemsControl grow/shrink.

using jquery, if i need to capture dropdown change event, do i need livequery plugin?

I want to have some code run when i change the selection of a dropdown. i see the livequery plugin states that this is needed to support as some browsers don't do it out of the box
Do I really need livequery to capture onchange event of a dropdown that i create dynamically or does the regular live syntax work in all browsers?
live takes advantage of event bubling mechanism so we can attach event handlers to elements which are created dynamically also, it will work as expected since it attaches event to the document element and listens to them. But I believe change event is not bubbled upto the dom tree so it may not work.
from this page, it looks like you need livequery for it to work in IE
No. You should be able to use just the standard jquery api.
for the dynamic elemenets use .live('change', function to capture the event.

Resources