![]() |
Multiple datagrid display into one view page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Multiple datagrid display into one view page (/showthread.php?tid=10367) |
Multiple datagrid display into one view page - El Forum - 07-29-2008 [eluser]Jilani Jidni[/eluser] Hi I wanna add multiple datagrid into same view page. I have done this but the column order by is not working. please view my code Controller Code: $this->load->model('Merchant_model', 'Merchant_model', TRUE); Model Code: function getMerchantPackages($merchant_row_id) View Code: <tr><td>Package List</td></tr> when I am clicked on order by link then its shows a database error. This error occurred because every time it called the same controller function. please help me on this issue. Multiple datagrid display into one view page - El Forum - 07-29-2008 [eluser]andreagam[/eluser] Hi Jilani, you should specify you're using the Rapyd libary, as not everyone may recognise it. Well, I don't think that's the problem, but the syntax you are using is different from what I usually do. You write: Code: $grid->column_orderby ('Charge Date', 'date_of_transaction', 'date_of_transaction', 'align=\'center\''); so you're passing four params. I usually write something like Code: $grid->column_orderby ('Label Name', '<#value#>', 'field_name', 'style=\'css style\''); In particular, the field value stays between '<# ... #>' Maybe I'm just missing something... bye, Multiple datagrid display into one view page - El Forum - 07-29-2008 [eluser]Jilani Jidni[/eluser] Hi andrea Thanks for your reply. Sorry I forgot to write this that I used Rapyd Library . I think may I have not clear my problem to you all. Trying to clear it once again..... when I wanna sort the datagrid by column wise then a database error occur unknown column name "filed_name" . Because two datagrids are build from two tables of data. when I want to sort one datagrid this also called the second one and the problem arise that time. |