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
  1. Home
  2. Web Development
  3. ASP.NET
  4. viewstate

viewstate

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
5 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    diyaa_08
    wrote on last edited by
    #1

    sallam 2 all; i hav 2 grids when i select n move gv1's record to gv2 selected row is moved, bt the problem is that when i want to move another selectedrow from gv1 to gv2 the previous moved record is removed n new selected row is appeared. i'm working in javascript. My code is as follows var gridview=document.getElementById("<%= gvPracticeFacility.ClientID %>"); var gridview1=document.getElementById("<%= gvPracticesAssignedFacilities.ClientID %>"); var tr = document.createElement("tr"); var cell1 = document.createElement("td"); var celln = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); var cell6 = document.createElement("td"); var cell7 = document.createElement("td"); var i =parseInt(document.getElementById("<%= hdnfldSelectedRow.ClientID %>").value); cell1.innerHTML = gridview.rows[i].childNodes[0].innerHTML; cell2.innerHTML = gridview.rows[i].childNodes[1].innerHTML; cell3.innerHTML = gridview.rows[i].childNodes[2].innerHTML; cell4.innerHTML = gridview.rows[i].childNodes[3].innerHTML; cell5.innerHTML = gridview.rows[i].childNodes[4].innerHTML; cell6.innerHTML = gridview.rows[i].childNodes[5].innerHTML; cell7.innerHTML = gridview.rows[i].childNodes[6].innerHTML; tr.appendChild(cell1); tr.appendChild(cell2); tr.appendChild(cell3); tr.appendChild(cell4); tr.appendChild(cell5); tr.appendChild(cell6); tr.appendChild(cell7); gridview1.firstChild.appendChild(tr); how i persist it in client-side? if i use Viewstate then where n hiow i use viewstate? plz tell me where i'm wrong.......! Thanx in Advance......!

    K N 2 Replies Last reply
    0
    • D diyaa_08

      sallam 2 all; i hav 2 grids when i select n move gv1's record to gv2 selected row is moved, bt the problem is that when i want to move another selectedrow from gv1 to gv2 the previous moved record is removed n new selected row is appeared. i'm working in javascript. My code is as follows var gridview=document.getElementById("<%= gvPracticeFacility.ClientID %>"); var gridview1=document.getElementById("<%= gvPracticesAssignedFacilities.ClientID %>"); var tr = document.createElement("tr"); var cell1 = document.createElement("td"); var celln = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); var cell6 = document.createElement("td"); var cell7 = document.createElement("td"); var i =parseInt(document.getElementById("<%= hdnfldSelectedRow.ClientID %>").value); cell1.innerHTML = gridview.rows[i].childNodes[0].innerHTML; cell2.innerHTML = gridview.rows[i].childNodes[1].innerHTML; cell3.innerHTML = gridview.rows[i].childNodes[2].innerHTML; cell4.innerHTML = gridview.rows[i].childNodes[3].innerHTML; cell5.innerHTML = gridview.rows[i].childNodes[4].innerHTML; cell6.innerHTML = gridview.rows[i].childNodes[5].innerHTML; cell7.innerHTML = gridview.rows[i].childNodes[6].innerHTML; tr.appendChild(cell1); tr.appendChild(cell2); tr.appendChild(cell3); tr.appendChild(cell4); tr.appendChild(cell5); tr.appendChild(cell6); tr.appendChild(cell7); gridview1.firstChild.appendChild(tr); how i persist it in client-side? if i use Viewstate then where n hiow i use viewstate? plz tell me where i'm wrong.......! Thanx in Advance......!

      K Offline
      K Offline
      keyur satyadev
      wrote on last edited by
      #2

      if you wish to do with javascript follow it with below link. you can easily managed with on JS. click here its nice, if you wish to do with .NET, make datatable in .CS file and and assing that datatable to 2nd grid. i mean that when you copy one row from 1st greed add in datatable. hope this will help you.

      Regards Keyur Satyadev

      D 1 Reply Last reply
      0
      • D diyaa_08

        sallam 2 all; i hav 2 grids when i select n move gv1's record to gv2 selected row is moved, bt the problem is that when i want to move another selectedrow from gv1 to gv2 the previous moved record is removed n new selected row is appeared. i'm working in javascript. My code is as follows var gridview=document.getElementById("<%= gvPracticeFacility.ClientID %>"); var gridview1=document.getElementById("<%= gvPracticesAssignedFacilities.ClientID %>"); var tr = document.createElement("tr"); var cell1 = document.createElement("td"); var celln = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); var cell6 = document.createElement("td"); var cell7 = document.createElement("td"); var i =parseInt(document.getElementById("<%= hdnfldSelectedRow.ClientID %>").value); cell1.innerHTML = gridview.rows[i].childNodes[0].innerHTML; cell2.innerHTML = gridview.rows[i].childNodes[1].innerHTML; cell3.innerHTML = gridview.rows[i].childNodes[2].innerHTML; cell4.innerHTML = gridview.rows[i].childNodes[3].innerHTML; cell5.innerHTML = gridview.rows[i].childNodes[4].innerHTML; cell6.innerHTML = gridview.rows[i].childNodes[5].innerHTML; cell7.innerHTML = gridview.rows[i].childNodes[6].innerHTML; tr.appendChild(cell1); tr.appendChild(cell2); tr.appendChild(cell3); tr.appendChild(cell4); tr.appendChild(cell5); tr.appendChild(cell6); tr.appendChild(cell7); gridview1.firstChild.appendChild(tr); how i persist it in client-side? if i use Viewstate then where n hiow i use viewstate? plz tell me where i'm wrong.......! Thanx in Advance......!

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Read this, How to get answers to your questions[^]. Pay attention to #3 and #7


        I know the language. I've read a book. - _Madmatt

        1 Reply Last reply
        0
        • K keyur satyadev

          if you wish to do with javascript follow it with below link. you can easily managed with on JS. click here its nice, if you wish to do with .NET, make datatable in .CS file and and assing that datatable to 2nd grid. i mean that when you copy one row from 1st greed add in datatable. hope this will help you.

          Regards Keyur Satyadev

          D Offline
          D Offline
          diyaa_08
          wrote on last edited by
          #4

          sallam mr.keyur can u tell me the code of ur grids? and ur dnd_grid_to_grid.js has an error n not run this...... plz check n tell me r give me source code in note pad plz Thanks :)

          K 1 Reply Last reply
          0
          • D diyaa_08

            sallam mr.keyur can u tell me the code of ur grids? and ur dnd_grid_to_grid.js has an error n not run this...... plz check n tell me r give me source code in note pad plz Thanks :)

            K Offline
            K Offline
            keyur satyadev
            wrote on last edited by
            #5

            have you include the JS mention at below page. check it and reffer the same. http://www.extjs.com/learn/Tutorial:Introduction_to_Ext_2.0 download JS from their and referred the URL for how to implement it. sorry as i haven't read your previous reply.

            Regards Keyur Satyadev

            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