Giter Club home page Giter Club logo

Comments (16)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from flexigrid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
here is the full flexigrid source. enjoy

Original comment by [email protected] on 18 Mar 2011 at 1:48

Attachments:

from flexigrid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from flexigrid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
File Attached

Original comment by [email protected] on 29 Jul 2011 at 7:23

Attachments:

from flexigrid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Thanks for your reply Raul. I will try that

Original comment by [email protected] on 29 Jul 2011 at 7:57

from flexigrid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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)

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.