We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    Still no live examples and tuts for this one?
    or did I miss a post?
    I love to know how thw datagrid works.

    Greets Dimmy
      follow me on twitter: @dimmy01
      • 28373
      • 204 Posts
      Quote from: Dimmy at Feb 21, 2006, 01:04 AM

      Still no live examples and tuts for this one?
      or did I miss a post?
      I love to know how thw datagrid works.

      Greets Dimmy

      Does the datagrid work at all ?

      It ’sounds’ like it’s being replaced, is that a sure thing ?

      Thanks
        • 25663 MODX Staff
        • 12,272 Posts
        Datatgrid does work, just not completely intuitive.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 32963
          • 1,732 Posts
          Hi,

          Ryan’s right the DataGrid needs some more work but I’ll try to see if I can create a little tutorial on it.
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.
            • 28373
            • 204 Posts
            Quote from: xwisdom at Apr 24, 2006, 11:37 AM

            Hi,

            Ryan’s right the DataGrid needs some more work but I’ll try to see if I can create a little tutorial on it.

            That would be great - we’ve bent it backwards and it refuses to nudge. Is there a need to declare the individual cell sizes in bytes ’somewhere’ - the problem we’re having is that any content added via the editor gets stuck in the first colum only one character wide. So if you add the word ’Hello’ it looks like this

            H
            e
            l
            l
            o

            Thanks
              • 17833
              • 28 Posts
              Quote from: Starbuck at Apr 24, 2006, 03:21 PM

              Quote from: xwisdom at Apr 24, 2006, 11:37 AM

              Hi,

              Ryan’s right the DataGrid needs some more work but I’ll try to see if I can create a little tutorial on it.

              That would be great - we’ve bent it backwards and it refuses to nudge. Is there a need to declare the individual cell sizes in bytes ’somewhere’ - the problem we’re having is that any content added via the editor gets stuck in the first colum only one character wide. So if you add the word ’Hello’ it looks like this

              H
              e
              l
              l
              o

              Thanks
              I’ve seen that happen when i’ve forgotten the ’@’ before my sql statement.
                • 24911
                • 4 Posts
                I just downloaded MODx. Haven’t even installed it yet.
                I opened datagrid.class.php and read the copyright :
                Based on CLASP 2.0 (www.claspdev.com)".

                So I went to http://www.claspdev.com/ and I was surprised by the description : " Classic ASP Framework."
                I was even more surprised about all the functionality I could try out interactively from "Samples >> Controls >> DataGrid" in the tree menu.

                So, is everything in "Samples >> Controls >> DataGrid" in the tree menu included in de MODx version ?
                Because this would mean I could create comparison functionality like this : http://www.watchguard.com/products/compare.asp?nav=.
                Without the graphics ofcourse. But that would be handled by formatting in template variables, if I understand the concept correctly.

                EDIT :
                ***Cough!*** Widgets are used to format/display the contents of template variables. ***Cough!***
                Learning all the time.
                « Last Edit: Jul 09, 2006, 11:16 AM by Rex »

                EDIT 2:
                Got something similar like this working.
                But I guess MakeForm and MakeTable would have done the same, and probably much faster.
                I just wish somebody would have given a hint to the existence of these two classes.
                Wasted too much time with something trivial like this (2 evenings) : A form with 6 dropdown selects, and a result page displaying a grid filled with columns retrieved with SQL from 2 tables.
                A framework should also include some form of wizardry in my opinion to almost eliminate the task of creating simple things like forms and dropdowns, selection lists, and WHY.
                I removed MODx from my hosting a/c, for now.
                Read this earlier today : http://ajaxian.com/archives/modx-cms-an-ajaxphp-content-system#comments so I haven’t given up. I’m still using MODx as a reference when testing others.
                I’ll checkout some other frameworks to see what’s going on there.
                  • 33203
                  • 13 Posts
                  Hi guys, i’ve read this thread and tryed almost everything, and after 4 days i am still stuck on how to use datagrid widget, for anyone who is interested i also posted a new thread with all my issues in using the widget.

                  http://modxcms.com/forums/index.php/topic,9853.msg67737.html#msg67737

                  If anybody can help, I’d appreciate it!Thanks in advance
                    • 22303 MODX Staff
                    • 10,725 Posts
                    All of the widgets are IMO not worth messing with if you don’t have patience and solid PHP skills. I tried working with DataGrid when I started with MODx, but never could get it to do what I wanted. The developer that contributed this does not hang out as often as he used to in this community, so I’m not sure you wouldn’t be better off either making the decision that you are going to make the DataGrid widget do what you want by working with the source code, or find an alternative way to manage tables of data.