show hide details from row. Load text from DB possible ?

show hide details from row. Load text from DB possible ?

emelianenkoemelianenko Posts: 18Questions: 0Answers: 0
edited September 2010 in General
Thank you Allan for the indications. The more one gets to know dataTables, the more one likes it.

As per the "Show and hide details of a row" by clicking on the icon, I ve had had a look at the code and probably I failed at understanding how those details would be able to come from a database, which is what I am interested in. Or is it that it is basically "hardwritten" text that one can add in there as I have seen ? Or, if one can indeed load the details from the DB, where is it that you retrieve (and forward) the parameter of the row you want further details from ?

thank you

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi emelianenko,

    The information in the 'hidden' row can come from anywhere you want. One option for example, using a remote db, would be to have the click event handler open the row with some "loading" text / image, and then do an Ajax request to the server to get the data you want, and the place it into the newly created row. So just a standard $.ajax() thing will do.

    Allan
This discussion has been closed.