Comments (16)
What are the modifications? Are that bugfixes or did you add some features?
Original comment by [email protected]
on 4 Feb 2011 at 9:26
from flexigrid.
The changes I've made to the source code are:
- new event onRowClick: raised when the user clicks on a row.
arguments: the flexigrid object, true if row is selected, false
otherwise, the row object.
- new event beforeSend: similar to onSubmit event, only difference if
you can modify the parameters sent to server.
- sortname, sortorder: 2 properties in which you can pass the default
sorted column, and the default sorted direction.
- css properties, maily related to "cursor", were applied to the
<body>. I changed it so that they will be applied to the flexigrid
object
- column property: format. You can specify the format for the column.
For example, if, for a column you have a number and you'd like that
number to be formated as currency, you'd put the format="${0}".
- column event: renderer. This is an event that's raised when you want
to customize the content of the cell. If you'd like to put a blue
background for the amount column that's bigger than 100, this is the
solution.
- onSuccess event now has parameters: the current page, the search
column and value, the order column and direction.
- onError event as parameters: the object that's being send to server.
- flexigrid now supports relative width(eg: 40%)
- the custom button has a new property: icon.
- each button now has its own click event.
- columns now have a default width of 100. In the old code, I think
that you needed to specify it.
- column options are not hidden when the user hovers out of them, but
when the user clicks outside of the column option.
- added search button in the search area. Enter to search still works.
Original comment by [email protected]
on 5 Feb 2011 at 7:18
from flexigrid.
How can i merge this path with my code ? I have own modyfications.
Original comment by [email protected]
on 11 Mar 2011 at 11:01
from flexigrid.
I created the patch using WinMerge. So that should work to also apply the patch.
Original comment by [email protected]
on 12 Mar 2011 at 7:06
from flexigrid.
[deleted comment]
from flexigrid.
As an alternative, can you post your full flexigrid.js file that includes the
patches?
Original comment by [email protected]
on 18 Mar 2011 at 10:40
from flexigrid.
here is the full flexigrid source. enjoy
Original comment by [email protected]
on 18 Mar 2011 at 1:48
Attachments:
from flexigrid.
Hi Raul,
Thanks a ton for sharing the patch. I saved lot of time using the patch.
However, I have a question about the setting relative column width. This
functionality is still not working for me. Are you able to set relative width
to the columns?
Original comment by [email protected]
on 29 Jul 2011 at 6:35
from flexigrid.
I remember it was working ok. Can you put up a sample page so I can look at it?
Original comment by [email protected]
on 29 Jul 2011 at 6:37
from flexigrid.
Paul,
Thanks for quick response. Attached is my function and screenshot of the table.
Also, I have used the below code in flexigrid.js file.
g.hTable = document.createElement('table');
//set gDiv
g.gDiv.className = 'flexigrid';
//fxnet: support relative width.
if (p.width != 'auto') {
if (p.width.toString().indexOf('%') > 0)
g.gDiv.style.width = p.width;
else
g.gDiv.style.width = p.width + 'px';
}
I really appreciate if you can guide me in this regard. Thanks again.
Original comment by [email protected]
on 29 Jul 2011 at 7:15
Attachments:
from flexigrid.
[deleted comment]
from flexigrid.
File Attached
Original comment by [email protected]
on 29 Jul 2011 at 7:23
Attachments:
from flexigrid.
okay, I looked at bit through the flexigrid source..
I implemented relative width for the flexigrid object... you can't really use
relative width for the columns, because you need pixels. Why? You have the
option to resize each column, and that makes it impossible.
you can play around with that, however, to only work in your case.
I am thinking that you can call $(flexigrid).width() to find out the width of
the flexigrid object.
Then, you can use that width to calculate the actual pixel width for each
column. However, if you'd want to have horizontal resize for the flexigrid,
you'll need to recalculate the widths on flexigrid resize.
Hope I gave you an ideea on how to proceed.
Original comment by [email protected]
on 29 Jul 2011 at 7:52
from flexigrid.
Thanks for your reply Raul. I will try that
Original comment by [email protected]
on 29 Jul 2011 at 7:57
from flexigrid.
Raul,
I implemented your patch. Thanks a lot. However, if I specify a column width of
40 in my colModel for one of my columns, it looks like it is getting created
with the new default of 100. How can I fix this to force a narrow column width
of 40?
Also:
1) My toolbar buttons (Add, Delete, etc.) are not being rendered in IE 7 (works
ok in FireFox).
2) After clicking the Quick Search icon, the search objects only appear
briefly, then disappear.
Any help is greatly appreciated!
Original comment by [email protected]
on 16 Aug 2011 at 6:57
from flexigrid.
Thanks for ur patch. it works for me:)
Original comment by [email protected]
on 3 Nov 2014 at 6:49
from flexigrid.
Related Issues (20)
- $.browser is no longer supported in jquery 1.9
- Type-Enhancement Add client-side intelligent sorting for dates, times, numbers, URLS, etc.
- flexigrid
- IE8 Quick-Search does not work
- show summay row in flexigrid HOT 1
- Watch The Big Wedding Online Stream
- Watch The Big Wedding Online Stream
- Patch for /trunk/js/flexigrid.js
- Sort issues on Date Column
- Row Color with XML Data
- i am having one json file how to display in fluxgrid
- can i save all record text file format in flexigrids
- Need to pass column name dynamically
- How to show current date calendar in search option
- <div> element width of each cell does not resize with the cell width
- Column width get change after applying flexigrid to table
- scrollbar is too slowly on ie9
- how to add OR operator in fexigrid
- Searching textbox is coming on clicking on pagination click
- Flexi grid very slow scrolling with more than 100 columns and 100 Rows
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.