on 04-08-2008 10:28 AM
HI Experts,
In my application There is one table with data on selecting a particular
Row in a table and clicking on a Add button i should make that row as editable.
Means on clicking on the button i should edit the particular table row fields.
Can any body please help me on this issue.
Thanks and Regards,
Shashikiran.B
Edited by: shashi kiran on Apr 8, 2008 11:35 AM
Hi Shashi,
You can implement it using the following steps:
1. All the columns that have to be made editable, will have InputField as the Cell Editor.
2. Add a boolean type of context to your node.
3. Assign the readOnly Property of all the CellEditors to this context.
4. By default, while adding data to the table set this Contebxt to TRUE.
5. On click of button, you can do as:
wdContext.current<Your_Node>Element.set<Boolean_Context>(false);
This will enable all the InputFields in that row.
Hope it helps.
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shashi,
One of the solutions may be as follows:
Make TableCellEditor of that columns you want to edit as InputField. Map the text property of this InputField to the attribute you want to edit. This way you don't have to write any action for OnLeadSelection. But the disadvantage is all the rows will become editable for the column/fields you want to make editable.
Regards,
Gopal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you need the "Add" button? To make the editors in the selected row editable,
- create a calculated attribute "readOnly" under the data source
- bind the "readOnly" property of the column editors to that attribute
- return "false" for the attribute of the lead-selected row, "true" for all other rows
- assign an empty action to the "onLeadSelect" event
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.