Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- Scrolling horizontally via mobile does not scroll column headers, only content
- Custom columns
- Searching HOT 1
- Flexigrid is displaying "null" when it gets the JSON object from Rest services.
- use Chrome & Firefox thead tbody can't align HOT 1
- Event for colresize line onColResize
- hi,i want move merge the header columns,then the content columns also moving,How can i do ?
- Search and Clear button issue in IE8
- Problem with type long HOT 1
- How to Stored Procedure with Multiple tables. HOT 1
- flexigrid.pack.css out of sync HOT 1
- Flexigrid slows down when a lot of columns are defined
- Does Flexigrid still update? HOT 1
- onChangeSort is not repopulating gris
- Resizable column bug with hidden columns
- Disable unselected rows property
- Chrome input filter lose focus
- Can`t hide Column headers
- How to fire an event on double click on row
- Flexigrid - not working column resizing on touch devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexigrid.