Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holding shift or control key while clicking a row throws an error, solution inside #51

Closed
uberthold opened this issue Oct 30, 2012 · 7 comments

Comments

@uberthold
Copy link

This is because the mouseup event handler in function addRowProp is missing its argument.

Currently it is
}).mouseup(function () {

and should be
}).mouseup(function (e) {

@daxxog
Copy link
Contributor

daxxog commented Dec 14, 2012

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

@NaomiN
Copy link

NaomiN commented Dec 14, 2012

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 notifications@github.comwrote:

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.

@NaomiN
Copy link

NaomiN commented Dec 14, 2012

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 nnosonovsky@gmail.comwrote:

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 notifications@github.comwrote:

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.

@daxxog
Copy link
Contributor

daxxog commented Dec 14, 2012

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);
    });
});

@NaomiN
Copy link

NaomiN commented Dec 14, 2012

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 notifications@github.comwrote:

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.

@daxxog
Copy link
Contributor

daxxog commented Dec 14, 2012

@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

@NaomiN
Copy link

NaomiN commented Dec 14, 2012

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

On Fri, Dec 14, 2012 at 1:15 PM, David Volm notifications@github.comwrote:

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants