What is the best way to achieve the following behavior?
After adding a new row to the table (done on server side) we want the table to:
1. Focus to the new row.
2. Highlight the new row.
How exactly are you adding the new row? using Editor? If so, use submitComplete to know when the edit is complete and do whatever processing you require.
Answers
How exactly are you adding the new row? using Editor? If so, use
submitCompleteto know when the edit is complete and do whatever processing you require.Hi Allan,
We will be using the editor in some cases.
What I meant asking was what api to use in order to achieve the focus and highlight.
Many thanks,
Yishay
You would use
row().node()to get thetrelement. You can then do whatever focus or highlighting you want on it.Allan