Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. can we bind data for datagrid in javascript

can we bind data for datagrid in javascript

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
7 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M Ramesh
    wrote on last edited by
    #1

    I have some datas in a dataset. How can i bind the datas in datagrid using ajax.. anybody please help me.. m.ramesh

    V C 2 Replies Last reply
    0
    • M M Ramesh

      I have some datas in a dataset. How can i bind the datas in datagrid using ajax.. anybody please help me.. m.ramesh

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Nope... You can't.

      Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

      R 1 Reply Last reply
      0
      • M M Ramesh

        I have some datas in a dataset. How can i bind the datas in datagrid using ajax.. anybody please help me.. m.ramesh

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        You make your AJAX call, return the data using XML or JSON and then add to your table using the DOM in javascript. I would suspect that the Microsoft AJAX classes would do this for you, if you're using them. But, you plainly can't databind in javascript, the objects that support data binding are on the client side.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        1 Reply Last reply
        0
        • V Venkatesh Mookkan

          Nope... You can't.

          Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

          R Offline
          R Offline
          RichardGrimmer
          wrote on last edited by
          #4

          Venkatesh MookkanNope... You can't.

          Well - you SORT OF can - create a DataGrid object on the server side, bind there, and then call rendercontrol on it, and render to the response stream - then at the client side, check the responseText, and set the innerHtml of a div (or something similar) to that - et voila - a grid through ajax :)

          "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)

          V 1 Reply Last reply
          0
          • R RichardGrimmer

            Venkatesh MookkanNope... You can't.

            Well - you SORT OF can - create a DataGrid object on the server side, bind there, and then call rendercontrol on it, and render to the response stream - then at the client side, check the responseText, and set the innerHtml of a div (or something similar) to that - et voila - a grid through ajax :)

            "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)

            V Offline
            V Offline
            Venkatesh Mookkan
            wrote on last edited by
            #5

            I haven't tried that before... But sounds like a good idea... Let me try.. Thanks Richard.

            Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

            R 1 Reply Last reply
            0
            • V Venkatesh Mookkan

              I haven't tried that before... But sounds like a good idea... Let me try.. Thanks Richard.

              Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              No worries - snippet avail if needed :)

              "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)

              V 1 Reply Last reply
              0
              • R RichardGrimmer

                No worries - snippet avail if needed :)

                "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)

                V Offline
                V Offline
                Venkatesh Mookkan
                wrote on last edited by
                #7

                Thanks man...

                Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups