Coder Social home page Coder Social logo

Comments (8)

NaomiN avatar NaomiN commented on August 15, 2024

I fixed this minor issue and also made some visual changes in css file to make that input for the page control a bit more aligned. The only minor problem is with min/max values for the page input control - I want them to be within the range.

Anyway, here are my fixes - can them be incorporated (or incorporated with a better code)?

css file:

.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol {
position: relative;
top: 2px;
overflow: visible;
}

.flexigrid div.pDiv input {
vertical-align: text-top;
position: relative;
top: -8px;
height: 15px;
width: 60px;
}

In other words, I adjusted width a bit and top position. It looks better in Google Chrome.

For flexgrid.js file I added this code (based on the http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery)

$('.pcontrol input', g.pDiv).keydown(function (e) {
if (e.keyCode == 13) g.changePage('input');
// Allow: backspace, delete, tab, escape, and enter
if (e.keyCode == 46 || e.keyCode == 8 || e.keyCode == 9 || e.keyCode == 27 ||
// Allow: Ctrl+A
(e.keyCode == 65 && e.ctrlKey === true) ||
// Allow: home, end, left, right
(e.keyCode >= 35 && e.keyCode <= 39)) {
// let it happen, don't do anything
return;
}
if (String.fromCharCode(e.keyCode).match(/[^0-9]/g)) return false;
});

Can someone please help me with this question http://forums.asp.net/p/1849582/5172246.aspx/1?p=True&t=634852986840377556 as I am a newbie?

from flexigrid.

paulopmx avatar paulopmx commented on August 15, 2024

Hi Naomi,

If you feel confident about your changes.

Just fork the repository and make a pull request.

I can't commit visual changes into the master rep though until i've been able to test them myself.

from flexigrid.

paulopmx avatar paulopmx commented on August 15, 2024

I'm no .net guy (I work with PHP), so I'm not the best person to help you on implementing it in a .net environment.

I can only share you a sample code on how you can add form data to the ajax request made by Flexigrid:

http://flexigrid.info/sample.html

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

Hi Paulo,

I am not using Git yet. I am also not 100% confident, I would rather let
you look into it first.

On Tue, Oct 16, 2012 at 10:51 PM, Paulo Marinas [email protected]:

Hi Naomi,

If you feel confident about your changes.

Just fork the repository and make a pull request.

I can't commit visual changes into the master rep though until i've been
able to test them myself.


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

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

This looks interesting. I also sort of figured how to use AddFormData to
get information from the form (I figured it after I read the FAQ-took me a
while). However, can you show me, how we can in the Edit method grab the
whole row of data if we only grabbed few columns before?

On Tue, Oct 16, 2012 at 10:54 PM, Paulo Marinas [email protected]:

I'm no .net guy (I work with PHP), so I'm not the best person to help you
on implementing it in a .net environment.

I can only share you a sample code on how you can add form data to the
ajax request made by Flexigrid:

http://flexigrid.info/sample.html


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

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

In other words, colModel only has, say, 4 columns, but I want to show more fields in the Add/Edit form. Add is probably not a problem, but how can I do this with edit?

from flexigrid.

paulopmx avatar paulopmx commented on August 15, 2024

Interesting.

Flexigrid that I know of doesn't have a built-in Edit method. I leave it up to the users to create their own edit methods.

This is to help keep Flexigrid small, so its targeted the most common denominator of needs.

That edit method you are speaking of is probably made by the one who created the .net sample.

from flexigrid.

NaomiN avatar NaomiN commented on August 15, 2024

I am just wondering if this scenario is possible:

When I click on the Edit button, I go back to the server first to grab the
row data, then display the form as a modal window.

I am not sure if this is at all possible and here I need some help from
more experienced folks.

On Tue, Oct 16, 2012 at 11:42 PM, Paulo Marinas [email protected]:

Interesting.

Flexigrid that I know of doesn't have a built-in Edit method. I leave it
up to the users to create their own edit methods.

This is to help keep Flexigrid small, so its targeted the most common
denominator of needs.

That edit method you are speaking of is probably made by the one who
created the .net sample.


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

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.