-
1. Re: A4J Updating all rows in datatable
bek816 Sep 20, 2010 10:53 AM (in response to bek816)Can we use AjaxKeys for this?
-
2. Re: A4J Updating all rows in datatable
liuliu Sep 20, 2010 11:40 AM (in response to bek816)no, ajaxkeys is for the row,
but i think you can rerender the id of column.
-
3. Re: A4J Updating all rows in datatable
bek816 Sep 20, 2010 11:49 AM (in response to liuliu)So using my example, if I have three rows:
A1 B1 C1
A2 B2 C2
A3 B3 C3
If I update A1, I want to re-render C1, C2, and C3 without re-rendering the whole table. Can I set AjaxKeys to all rows? I tried re-rendering the column id, but it still wouldn't look outside the row that was modified.
-
4. Re: A4J Updating all rows in datatable
bek816 Sep 20, 2010 3:45 PM (in response to bek816)We solved the problem using AjaxKeys. Note the problem was a little more complicated because we had a subtable. We discovered that the default behaviour of AjaxKeys is to update the row that was updated. Interestingly, if AjaxKeys was null, or something that couldn't be resolved, it updated all rows. In the end, we definitely AjaxKeys for the main table and all subtables. We populated all of the keys based on the number of rows in each table or subtable. That solved our problem of updating specific columns in all of the rows instead of updating the entire datatable.