I have an application where I am displaying questions with associated answers in a 2-column group (questions in 1st col, answers in 2nd col). A question can have various possible answer types: list, text, date etc and I dynamically vary the editor being used to provide the answer in a particular row by overriding the getCellEditor() function. It is possible that if a question has a list type of answer and the user selects a particular choice from the dropdown, then the application would fetch additional questions from the database. In such scenarios, I need to save the answers to questions currently on the screen. To do that, I package all questions and answers to server and then, send them back in the Ajax response. this all works fine. The only problem is that answers to date type fields are not being sent to the server since the store does not have the selected date value.
Datefield is being created as:
var dt = new Ext.form.DateField({format: 'Y/M/D'});
Which event do I need to listen to in DateField so I can update the store?
Other thing I have noticed that I don't get the little maroon triangles in the edit cells when I choose answers to questions with list/date types.This is in a grid or a form? You haven't posted any code so I wasn't sure what all you're doing. I only get red triangles for dirty fields in a grid....I haven't seen them in a form.#If you have any other info about this subject , Please add it free.# |
|
7 January 2009 |
cameltoepants.com |
edit