Git Product home page Git Product logo

Comments (13)

tabalinas avatar tabalinas commented on July 21, 2024

Could you provide more details about the issue?
Maybe you could modify this fiddle to demonstrate the problem http://jsfiddle.net/tabalinas/zzzfmpgt/

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

you can check please?

2015-06-30 22:35 GMT-06:00 Artem Tabalin [email protected]:

Could you provide more details about the issue?
Maybe you could modify this fiddle to demonstrate the problem
http://jsfiddle.net/tabalinas/zzzfmpgt/


Reply to this email directly or view it on GitHub
#51 (comment).

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

from jsgrid.

tabalinas avatar tabalinas commented on July 21, 2024

Sure, give me the link to the updated fiddle, please.

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

ok

2015-06-30 22:58 GMT-06:00 Artem Tabalin [email protected]:

Sure, give me the link to updated fiddle, please.


Reply to this email directly or view it on GitHub
#51 (comment).

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

http://jsfiddle.net/zzzfmpgt/2/

2015-06-30 22:58 GMT-06:00 Michael Herrera [email protected]:

ok

2015-06-30 22:58 GMT-06:00 Artem Tabalin [email protected]:

Sure, give me the link to updated fiddle, please.


Reply to this email directly or view it on GitHub
#51 (comment).

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

My main problem is that I try to fill the grid from a php file and the
plugin does not show errors but also fills me with the grid... if you
could help me with an example using ajax or something similar will
greatly appreciate it

2015-06-30 23:11 GMT-06:00 Michael Herrera [email protected]:

http://jsfiddle.net/zzzfmpgt/2/

2015-06-30 22:58 GMT-06:00 Michael Herrera [email protected]:

ok

2015-06-30 22:58 GMT-06:00 Artem Tabalin [email protected]:

Sure, give me the link to updated fiddle, please.


Reply to this email directly or view it on GitHub
#51 (comment).

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

I confess that I love the plugin you have done so have tried all day
to make it work that gives me everything I need and even more than an
hour ago came to my head contact you to see if you could help me

2015-06-30 23:44 GMT-06:00 Michael Herrera [email protected]:

My main problem is that I try to fill the grid from a php file and the plugin does not show errors but also fills me with the grid... if you could help me with an example using ajax or something similar will greatly appreciate it

2015-06-30 23:11 GMT-06:00 Michael Herrera [email protected]:

http://jsfiddle.net/zzzfmpgt/2/

2015-06-30 22:58 GMT-06:00 Michael Herrera [email protected]:

ok

2015-06-30 22:58 GMT-06:00 Artem Tabalin [email protected]:

Sure, give me the link to updated fiddle, please.


Reply to this email directly or view it on GitHub
#51 (comment).

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

Michael Herrera
Designs | Programming | Creativity
Founder of Herreras Aplicaciones
Phone: (+505) 86026663
Email: [email protected]
Website: www.herreraaplicaciones.com http://herreraaplicaciones.com

http://fastsolutionsonline.net

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

Hello friend
El 30/6/2015 22:35, "Artem Tabalin" [email protected] escribió:

Could you provide more details about the issue?
Maybe you could modify this fiddle to demonstrate the problem
http://jsfiddle.net/tabalinas/zzzfmpgt/


Reply to this email directly or view it on GitHub
#51 (comment).

from jsgrid.

tabalinas avatar tabalinas commented on July 21, 2024

What you have to do is create php script that gives JSON in response. Look at this answer for more details http://stackoverflow.com/questions/21959312/creating-a-rest-api-using-php
And define jsGrid controller like following (of course you need to change urls):

controller: {
    loadData: function(filter) {
        return $.ajax({
            type: "GET",
            url: "/clients",
            data: filter
        });
    },
    insertItem: function(item) {
        return $.ajax({
            type: "POST",
            url: "/clients",
            data: item
        });
    },
    updateItem: function(item) {
        return $.ajax({
            type: "PUT",
            url: "/clients/" + item.id,
            data: item
        });
    },
    deleteItem: function(item) {
        return $.ajax({
            type: "DELETE",
            url: "/clients/" + item.id
        });
    }
},

I'm currently preparing sample projects how to use jsGrid with different back-ends. There are already available samples for ASP.NET WebAPI (https://github.com/tabalinas/jsgrid-webapi), Ruby on Rail (https://github.com/tabalinas/jsgrid-rails/), and Django (https://github.com/tabalinas/jsgrid-django). ExpressJS, PHP and Java are upcoming.

Hope it will help.

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

I try but the filtering not working
El 1/7/2015 12:13, "Artem Tabalin" [email protected] escribió:

What you have to do is create php script that gives JSON in response. Look
at this answer for more details
http://stackoverflow.com/questions/21959312/creating-a-rest-api-using-php
And define jsGrid controller like following (of course you need to change
urls):

controller: {
loadData: function(filter) {
return $.ajax({
type: "GET",
url: "/clients",
data: filter
});
},
insertItem: function(item) {
return $.ajax({
type: "POST",
url: "/clients",
data: item
});
},
updateItem: function(item) {
return $.ajax({
type: "PUT",
url: "/clients/" + item.id,
data: item
});
},
deleteItem: function(item) {
return $.ajax({
type: "DELETE",
url: "/clients/" + item.id
});
}
},

I'm currently preparing sample projects how to use jsGrid with different
back-ends. There are already available samples for ASP.NET WebAPI (
https://github.com/tabalinas/jsgrid-webapi), Ruby on Rail (
https://github.com/tabalinas/jsgrid-rails/), and Django (
https://github.com/tabalinas/jsgrid-django). ExpressJS, PHP and Java are
upcoming.


Reply to this email directly or view it on GitHub
#51 (comment).

from jsgrid.

tabalinas avatar tabalinas commented on July 21, 2024

The filtering should be done by developer himself. Either on the client or on the server. In case of server your php script should get filtering params from request and filter data sending in response filtered data. Of course you can do it on the client-side, just filter data like following.

controller: {
    loadData: function(filter) {
        var d = $.Deferred();
        $.ajax({
            type: "GET",
            url: "/clients"
        }).done(function(data) {
            var result = $.grep(data, function(item) {
                return filter.Field || client.Field === filter.Field;
            });
            d.resolve(result);
        });
        return d.promise();
    },

from jsgrid.

hmykol20 avatar hmykol20 commented on July 21, 2024

Ok friend thanks so much...
El 1/7/2015 12:32, "Artem Tabalin" [email protected] escribió:

The filtering should be done by developer himself. Whether on the client
or on the server. In case of server your php script should get filtering
params from request and filter data sending in response filtered data. Of
course you can do it on the client-side, just filter data like following.

controller: {
loadData: function(filter) {
var d = $.Deferred();
$.ajax({
type: "GET",
url: "/clients"
}).done(function(data) {
var result = $.grep(data, function(item) {
return filter.Field || client.Field === filter.Field;
});
d.resolve(result);
});
return d.promise();
},


Reply to this email directly or view it on GitHub
#51 (comment).

from jsgrid.

tabalinas avatar tabalinas commented on July 21, 2024

Welcome!

from jsgrid.

Related Issues (20)

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.