≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Select default line
Select default line
gerenne
Posts: 30
Questions: 0
Answers: 0
May 2012
edited May 2012
in
General
Hi all,
I have a dataTable (DOM), when I open the app, I want that the firts line in the table appear selected by default, how is this possible?.
Thanks in advance.
Replies
allan
Posts: 65,846
Questions: 1
Answers: 10,956
Site admin
May 2012
Sure it's possible. How are rows selected in your table? If its a click on the row just do something like $('mutable tbody tr:eq(0)').click().
Allan
gerenne
Posts: 30
Questions: 0
Answers: 0
May 2012
Hi Allan , only one line.
Thanks in advavnce.
gerenne
Posts: 30
Questions: 0
Answers: 0
May 2012
Hi again,
If I want select another line?, but this line I don't know the row number, I only know the code, that this code to appear in the first column.
Thanks in advance.
allan
Posts: 65,846
Questions: 1
Answers: 10,956
Site admin
May 2012
Then you would need to parse through the table, find it and click it, using the technique I suggest.
fnGetNodes
and
fnGetData
might be useful.
Allan
This discussion has been closed.
Replies
Allan
Thanks in advavnce.
If I want select another line?, but this line I don't know the row number, I only know the code, that this code to appear in the first column.
Thanks in advance.
Allan