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. How to loop through a ASP.Net Repeater using JQuery

How to loop through a ASP.Net Repeater using JQuery

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nethelptutorial
14 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.
  • N Not Active

    You didn't provide any details at all so it would be difficult to give you any useful example relevant to your solution. For instance, what is in the repeater? Table rows? Button? Image?

    <table>
    <tr onclick=ShowRow(rowx)>
    <td>
    <div id=rowx>Some values</div>
    </td>
    </tr>
    </table>

    function ShowRow(row)
    {
    $(row).show()
    }


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

    I Offline
    I Offline
    immu5
    wrote on last edited by
    #5

    My repeater is as below <tr> <td class="dataRowTxt" width="110px"> <%# (DataBinder.Eval(Container.DataItem, "Name"))%> </td> <td class="dataRowTxt" width="70px"> <%# (DataBinder.Eval(Container.DataItem, "InterestRate","{0:0.000}%"))%> </td> <td class="dataRowTxt" width="92px"> <asp:LinkButton runat="server" class="dataRowLnk" > <%# (DataBinder.Eval(Container.DataItem, "MonthlyPayment","{0:C}"))%></asp:LinkButton> &lt;/tr&gt; When i click on the link button, i have to show the a div or a modal popup with values (resides at my backend) related to particular row. Hope you are clear now.

    N 1 Reply Last reply
    0
    • I immu5

      My repeater is as below <tr> <td class="dataRowTxt" width="110px"> <%# (DataBinder.Eval(Container.DataItem, "Name"))%> </td> <td class="dataRowTxt" width="70px"> <%# (DataBinder.Eval(Container.DataItem, "InterestRate","{0:0.000}%"))%> </td> <td class="dataRowTxt" width="92px"> <asp:LinkButton runat="server" class="dataRowLnk" > <%# (DataBinder.Eval(Container.DataItem, "MonthlyPayment","{0:C}"))%></asp:LinkButton> &lt;/tr&gt; When i click on the link button, i have to show the a div or a modal popup with values (resides at my backend) related to particular row. Hope you are clear now.

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

      Imran. Mohammed wrote:

      (resides at my backend)

      What do you mean? Are you pulling data from your ass? Have a look here http://jqueryui.com/demos/dialog/#option-modal[^]


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

      I 1 Reply Last reply
      0
      • N Not Active

        Imran. Mohammed wrote:

        (resides at my backend)

        What do you mean? Are you pulling data from your ass? Have a look here http://jqueryui.com/demos/dialog/#option-modal[^]


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

        I Offline
        I Offline
        immu5
        wrote on last edited by
        #7

        Not from my ass... :laugh: I mean to say the data is at server or bind to repeater items. I have gone through the Jquery dialog, but it doesn't populate the data. Can you please help me out if you know better way of doing this?

        N 1 Reply Last reply
        0
        • I immu5

          Not from my ass... :laugh: I mean to say the data is at server or bind to repeater items. I have gone through the Jquery dialog, but it doesn't populate the data. Can you please help me out if you know better way of doing this?

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

          Of course it doesn't populate anything, it isn't magic. If you need to retrieve the data from the server, then make an Ajax call. The call could return formatted html to be placed inside the div or return data to be placed in a template.


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

          I 1 Reply Last reply
          0
          • N Not Active

            Of course it doesn't populate anything, it isn't magic. If you need to retrieve the data from the server, then make an Ajax call. The call could return formatted html to be placed inside the div or return data to be placed in a template.


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

            I Offline
            I Offline
            immu5
            wrote on last edited by
            #9

            Can you provide me an example of above functionality? Thanks in advance !!

            N 1 Reply Last reply
            0
            • I immu5

              Can you provide me an example of above functionality? Thanks in advance !!

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

              Here[^]


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

              I 1 Reply Last reply
              0
              • N Not Active

                Here[^]


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

                I Offline
                I Offline
                immu5
                wrote on last edited by
                #11

                I don't understand what your saying... sorry i am a beginner to development. my problem here is i have a div tag with asp label controls on it. By default i am not going to show it. On Page Load i will fill the repeater with all the values ( you can say with 3 rows) Each row contains Details link, if i click on the details link i have to show the div tag. When i am showing the div i have to assign the values related to particular row to labels in my div. Hope you understand.

                P 1 Reply Last reply
                0
                • I immu5

                  I don't understand what your saying... sorry i am a beginner to development. my problem here is i have a div tag with asp label controls on it. By default i am not going to show it. On Page Load i will fill the repeater with all the values ( you can say with 3 rows) Each row contains Details link, if i click on the details link i have to show the div tag. When i am showing the div i have to assign the values related to particular row to labels in my div. Hope you understand.

                  P Offline
                  P Offline
                  PunkIsNotDead
                  wrote on last edited by
                  #12

                  Hi! I think that Mark Nischalke is only playing with you and he isn't seriously at all! Here[^] is a tutorial that I've made about jQuery, Web Methods and SQL Server Data Populating in Grid View... I hope you know a little of spanish :laugh: if not, just try to understand and apply to your web site. Looks like the same procedure but with some changes... hope it helps :laugh: ;)

                  N 1 Reply Last reply
                  0
                  • P PunkIsNotDead

                    Hi! I think that Mark Nischalke is only playing with you and he isn't seriously at all! Here[^] is a tutorial that I've made about jQuery, Web Methods and SQL Server Data Populating in Grid View... I hope you know a little of spanish :laugh: if not, just try to understand and apply to your web site. Looks like the same procedure but with some changes... hope it helps :laugh: ;)

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

                    English is the default language here. Creo que es usted quien está jugando. All of the information has been presented to the OP, learning does more than giving code.


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

                    P 1 Reply Last reply
                    0
                    • N Not Active

                      English is the default language here. Creo que es usted quien está jugando. All of the information has been presented to the OP, learning does more than giving code.


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

                      P Offline
                      P Offline
                      PunkIsNotDead
                      wrote on last edited by
                      #14

                      I didn't ask which language is here! but thanks :-D este ud ayudando o no, tampoco me interesa. Solo trato de responder la respuesta a la pregunta anterior, no busco nada mas! gracias

                      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