Giter Site home page Giter Site logo

datagrid's People

Contributors

aginev avatar aginev-fos avatar dependabot[bot] avatar dyankov91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datagrid's Issues

Which Javascript is needed?

Hi,

I tried to use your package, but I was unable to do, as I don't know which Javascript from Datagrad I should use.

Could you extend your explanation with that?

Thanks would be very helpful.

Thanks
kay899

Error on chaining properties

When you have variable like $client->country->region->title and country is null, there is an error in ModelRow.php with undefined property. Right behavior of grid is to print just empty string "".

Your code is:

	// The easiest way to chain the object properties
	foreach ($keys as $key) {
		$value = $value->{$key};
	}

The right code is:

	// The easiest way to chain the object properties
	foreach ($keys as $key) {
		$value = $value->{$key};

		if (is_null($value)) {
			break;
		}
	}

Please apply that to your code

Error in setRow() function

i use this datagrid in my project
i have this error in all of my pages in project :
count(): Parameter must be an array or an object that implements Countable
in setRow() in Datagrid.php

why this happens?

Wrapper - empty returns always true

This is very strange behavior. Empty condition is always true even if variable is for example 5.

'wrapper' => function ($value, $row) {
    if (empty($row->created_by)) {
        return '';
}

This works fine

 'wrapper' => function ($value, $row) {
   if ( ! $row->created_by) {
	return '';
       }

data-* attributes not recognized?

In the example the destroy/delete link has the data-method=DELETE attribute and data-confirm attribute set. Apparently these are not used when embedding the gridview in a plain blade template.

Is this as intended and do I need to add the relevant Javascript from somewhere else or did I miss a requirement in my composer.json?

$_GET parameters missing when filtering

When you use own filter form and send this filter form to get url like /orders?surname=Ginev and then click on sorting the grid ends up in start state. This feature will be very helpfull to others too.

Datagrid.php line 354 - instead:

$filters->toArray(), 'page' => 1, 'per_page' => $per_page]

change to:

$filter = ['f' => $filters->toArray(), 'page' => 1, 'per_page' => $per_page];
return empty($_GET) ? $filter : array_merge($_GET, $filter);

its displaying as raw text only

{!! $grid->show('grid-table') !!}

not working ,

updated dependecies for laravelcollective/html , but no hope
capture_adminpic

please help,.

Allow HTML titles

It is not possible to set HTML title for non-sortable columns:
->setColumn('name', '<strong>Name</strong>').
For sortable columns everything is OK.

How to fix

Change Views/grid.blade.php line 28 from {{ $col->getTitle() }} to {!! $col->getTitle() !!}

Sorting and filtering not working.

Im trying to use your datagridder, but the sorting and filtering aint working.
Sorting does the GET request but nothing happens.
Filtering won't even make the GET request.

Edit nvm, you need to write your own queries to filter.
Keep up the good work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.