Open GoogleCodeExporter opened 8 years ago
What are the modifications? Are that bugfixes or did you add some features?
Original comment by djbroe...@gmail.com
on 4 Feb 2011 at 9:26
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 raul.pop...@gmail.com
on 5 Feb 2011 at 7:18
How can i merge this path with my code ? I have own modyfications.
Original comment by babe...@gmail.com
on 11 Mar 2011 at 11:01
I created the patch using WinMerge. So that should work to also apply the patch.
Original comment by raul.pop...@gmail.com
on 12 Mar 2011 at 7:06
[deleted comment]
As an alternative, can you post your full flexigrid.js file that includes the
patches?
Original comment by smil...@goodmansinc.com
on 18 Mar 2011 at 10:40
here is the full flexigrid source. enjoy
Original comment by raul.pop...@gmail.com
on 18 Mar 2011 at 1:48
Attachments:
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 info.e...@gmail.com
on 29 Jul 2011 at 6:35
I remember it was working ok. Can you put up a sample page so I can look at it?
Original comment by raul.pop...@gmail.com
on 29 Jul 2011 at 6:37
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 info.e...@gmail.com
on 29 Jul 2011 at 7:15
[deleted comment]
File Attached
Original comment by info.e...@gmail.com
on 29 Jul 2011 at 7:23
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 raul.pop...@gmail.com
on 29 Jul 2011 at 7:52
Thanks for your reply Raul. I will try that
Original comment by info.e...@gmail.com
on 29 Jul 2011 at 7:57
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 i...@glolar.com
on 16 Aug 2011 at 6:57
Thanks for ur patch. it works for me:)
Original comment by sihitema...@gmail.com
on 3 Nov 2014 at 6:49
Original issue reported on code.google.com by
raul.pop...@gmail.com
on 3 Feb 2011 at 7:59Attachments: