Jump to content


waqar

Member Since 08 Sep 2012
Offline Last Active Sep 12 2012 09:58 AM
-----

Posts I've Made

In Topic: How do I disable Sorting for certain Columns of CRUD grid?

12 September 2012 - 06:31 AM

Anyone with any ideas on this? :)

In Topic: How do I create a custom field in Grid bottom, to show a Total Amount of XYZ...

12 September 2012 - 06:31 AM

Thanks, that seems good. 1 Question though, how do I pass the variable to the view list_template.php ?
What I pass is simply rendered on the custom view page (transactions.php in my case) and list_template.php is a core view for the CRUD Grid. I hope I'm able to explain well but let me know if not. Hope to get some help on this.

Thanks in advance.

In Topic: Start grid with search/Filter box open

11 September 2012 - 06:44 PM

Any ideas/thoughts on how to make the search filter for a scenario like:

Search Orders FROM DATE, TO DATE ?

In Topic: How do I create a custom field in Grid bottom, to show a Total Amount of XYZ...

11 September 2012 - 06:25 PM

Currently what I'm doing is simply printing a Balance field outside CRUD. For example:

// Render Crud
   $output = $crud->render();
   // Get Total
   $output->total = $this->Transactions_model->get_total();

And I simply print out the $total variable in the relevant view file such as:
<div id="total">
  <label id="total">AVAILABLE BALANCE = </label>
  <span><?php echo $total; ?></span>
</div>

But it would be great if I can simply add a row in bottom of the CRUD grid that spans all columns and is aligned right and I print the total there.

Any ideas for this would be appreciated.

Thanks
Waqar

Web and Software Product Development Experts, Consultants, and IT Service Provider: 4 Ace Technologies

In Topic: How do I disable Sorting for certain Columns of CRUD grid?

11 September 2012 - 05:32 PM

Thanks Victor. I guess that's not what I want though. Unsetting Columns or Edit/Add fields will only disable/hide them completely from the Grid and Add/edit form.

I basically want to show the field on the Grid just like normal, except that when I click on the heading of that specific Column, it doesn't perform a sorting of Order By Ascending/Descending at all.

I hope I'm able to explain correctly. Please let me know.