⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Pages of rows on the grid view



jgalak
  • profile picture
  • Member

Posted 24 February 2013 - 01:32 AM

Three related questions:

 

1) By default, Grocery CRUD is set to display 25 rows per page.  For some reason, on my system, it's refusing to advance pages.  I've tried it both in Firefox and IE, no change.  You can see it here: http://www.jgalak.com/heraldry/rolls/index.php

 

2) Is there a way to change the default?

 

3) Is there a way to make it display all of the rows on one page?

 

Thanks,

Juliean.

 

 


davidoster
  • profile picture
  • Member

Posted 24 February 2013 - 01:38 AM

There is something wrong with your javascript. None of the operations of sorting/searchinh of the flexigrid works


jgalak
  • profile picture
  • Member

Posted 24 February 2013 - 01:58 AM

I don't think I did anything to the javascript.  The only thing I've done that might even remotely affect it is implement the changes from this post:

www.grocerycrud.com/forums/topic/1065-how-to-pass-extra-data-on-a-grocery-crud-view/

But I don't think that should break the JS...

 

Here's the code from my view:

 

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Period Rolls of Arms</title>
    <meta charset="utf-8" />
 
<?php
foreach($css_files as $file): ?>
    <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
 
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
 
    <script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
 
<style type='text/css'>
body
{
    font-family: Arial;
    font-size: 14px;
}
a {
    color: blue;
    text-decoration: none;
    font-size: 14px;
}
a:hover
{
    text-decoration: underline;
}
</style>
</head>
<body>
<!-- Beginning header -->
    <?php
    if($extra == "")
    { ?>
        <div>
            <a href='<?php echo site_url('Login');?>'>Login</a>

        </div>
    <?php
    } else { ?>
        <div>
            Welcome <?php echo $extra;?> |
            <a href='<?php echo site_url('roll_c/logout');?>'>Logout</a>
        </div>
    <?php
    } ?>
    <h1>Period Rolls of Arms</h1>
    <!-- End of header-->
    <div style='height:20px;'></div>  
    <div>
        <?php echo $output; ?>
 
    </div>
<!-- Beginning footer -->
<div>Footer</div>
<!-- End of Footer -->
</body>
</html>
 

victor
  • profile picture
  • Member

Posted 24 February 2013 - 08:06 AM

/topic/1378-view-without-a-limit/

davidoster
  • profile picture
  • Member

Posted 24 February 2013 - 09:45 AM

Check here : /topic/1411-route-problem/#entry5981


jgalak
  • profile picture
  • Member

Posted 25 February 2013 - 23:21 PM

/topic/1378-view-without-a-limit/

 

That worked great, thanks.