|
INTERVIEW QUESTIONS
WEB
ACTION SCRIPT
DETAILS
Question: When I add or modify an item in my dataProvider, why does not it show up in my DataGrid?
Answer: Low-level methods like Array.push() or myArray[0] = "whatever" do not cause the dataProvider's modelChanged event to fire. When you work with a dataProvider, it is always best to use the dataProvider API. In the above example, you might code: myDataProvider.addItem(myItemObject) to add an item or use editField() to modify a value programmatically. Alternatively, you can call myDataProvider.modelChanged yourself or reassign dataProvider to the control, as follows: myDataGrid.dataProvider = myDataProvider;
|
|
|
Category |
Action Script Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7629 users |
Added on |
9/22/2014 |
Views |
66612 |
Rate it! |
|
|
Question:
When I add or modify an item in my dataProvider, why does not it show up in my DataGrid?
Answer:
Low-level methods like Array.push() or myArray[0] = "whatever" do not cause the dataProvider's modelChanged event to fire. When you work with a dataProvider, it is always best to use the dataProvider API. In the above example, you might code: myDataProvider.addItem(myItemObject) to add an item or use editField() to modify a value programmatically. Alternatively, you can call myDataProvider.modelChanged yourself or reassign dataProvider to the control, as follows: myDataGrid.dataProvider = myDataProvider; Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Why is myTreeNode.label or myTreeNode.attributes.label undefined?
|
View Answer
|
|
Sometimes, if I do not move the mouse, "click" and "mouseDown" do not work. Why is that?
|
View Answer
|
|
Why are there errors with the macromedia.css.LocatorParser class and WebLogic?
|
View Answer
|
|
Is double-clicking supported on various components?
|
View Answer
|
|
Can Flex applications communicate with each other on the client?
|
View Answer
|
|
Can I resize the Internet Explorer browser window from Flex?
|
View Answer
|
|
How do I get access to the J2EE session from my RemoteObjects?
|
View Answer
|
|
Why do strongly typed objects appear as "undefined" in the NetConnection Debugger?
|
View Answer
|
|
Why are my ValueObject member variables undefined in the results from my RemoteObject requests?
|
View Answer
|
|
When I set visible="false", the component still takes up space and appears in the tab order. Why is that?
|
View Answer
|
|
Can I load CSS style sheets dynamically at runtime?
|
View Answer
|
|
Can I dynamically instantiate a WebService or HTTPService in ActionScript?
|
View Answer
|
|
Differences between defining bindings in MXML and ActionScript?
|
View Answer
|
|
How do we identify a component created in a repeater using flex?
|
View Answer
|
|
Explain the difference between creating an effect and setting the target as opposed to adding an effectListener?
|
View Answer
|
|
What is the problem with calling setStyle()
|
View Answer
|
|
What does calling preventDefault() on an event do? How is this enforced?
|
View Answer
|
|
How do you add event listeners in mxml components. Now AS3 components?
|
View Answer
|
|
Why would you want to keep a reference to a ChangeWatcher and call unwatch()?
|
View Answer
|
|
What is the difference between ChangeWatcher.watch, and BindingUtils.bindProperty?
|
View Answer
|