Coder Social home page Coder Social logo

Comments (7)

daxxog avatar daxxog commented on August 15, 2024

What browser are you on? I do not get an error on the latest Google Chrome.

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

I think this (or similar problem) was already discussed. I fixed that
problem locally (because I made few other changes, but I am not using Git).

On Fri, Dec 14, 2012 at 9:06 AM, David Volm [email protected]:

What browser are you on? I do not get an error on the latest Google Chrome.


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-11379184.

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

BTW, can someone please lend me a hand - I am having troubles implementing
Edit functionality in modal form. I posted my problems in jquery forum (no
replies there) and in ASP.NET forum
http://forums.asp.net/p/1864975/5239799.aspx/1?p=True&t=634910728793808200

On Fri, Dec 14, 2012 at 9:12 AM, Naomi Nosonovsky [email protected]:

I think this (or similar problem) was already discussed. I fixed that
problem locally (because I made few other changes, but I am not using Git).

On Fri, Dec 14, 2012 at 9:06 AM, David Volm [email protected]:

What browser are you on? I do not get an error on the latest Google
Chrome.


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-11379184.

from flexigrid.

daxxog avatar daxxog commented on August 15, 2024

WARNING!
Unrelated topic below.

@NaomiN

I don't use modal forms for editing, instead I just hack flexigrid itself and replace text with inputs. Then you just need a way of reading the inputs and sending the result back to the server. You probably need to give each row an id somehow too.

place this in your edit button click event or whatever

$(grid).find('.trSelected').each(function(i, el) {
    $(el).children().each(function(i, el) {
        var child = $(el).children().children();
        var _chtml = child.html();
        child.html('');

        $('<input></input>').attr({
            'value': _chtml,
            'class': $(el).attr("abbr") + ' editarea',
            'data': JSON.stringify({
                        "col": $(el).attr("abbr")
                    })
        }).css(
            'width', '100%'
        ).appendTo(child);
    });
});

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

This is a bit tricky, but I also think it would not work for me. In the
grid I only show 4 columns, but I have a nice form with much more
information.

Also, I am using ASP.NET MVC.

On Fri, Dec 14, 2012 at 9:51 AM, David Volm [email protected]:

WARNING!
Unrelated topic below.

@NaomiN https://github.com/NaomiN

I don't use modal forms for editing, instead I just hack flexigrid itself
and replace text with inputs. Then you just need a way of reading the
inputs and sending the result back to the server. You probably need to give
each row an id somehow too.

place this in your edit button click event or whatever

$(grid).find('.trSelected').each(function(i, el) {
$(el).children().each(function(i, el) {
var child = $(el).children().children();
var _chtml = child.html();
child.html('');

    $('<input></input>').attr({
        'value': _chtml,
        'class': $(el).attr("abbr") + ' editarea',
        'data': JSON.stringify({
                    "col": $(el).attr("abbr")
                })
    }).css(
        'width', '100%'
    ).appendTo(child);
});});


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-11380785.

from flexigrid.

daxxog avatar daxxog commented on August 15, 2024

@NaomiN
Iv'e never touched ASP.NET so I'm not sure I can help you.
Here is an example of modal forms with jQuery UI:
http://jqueryui.com/dialog/#modal-form

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

Thanks, this is helpful. I am going to study it more.

On Fri, Dec 14, 2012 at 1:15 PM, David Volm [email protected]:

@NaomiN https://github.com/NaomiN
Iv'e never touched ASP.NET so I'm not sure I can help you.
Here is an example of modal forms with jQuery UI http://jqueryui.com:
http://jqueryui.com/dialog/#modal-form


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-11388424.

from flexigrid.

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.