Adding rows dynamically - Javascript

This is a discussion on Adding rows dynamically - Javascript ; Hi, Im new to javascript. I need a help from you. Basically i have one table with like this, column1 column2 [innerText] [checkboxes] Two wheeler Yamaha , Honda , Suzuki , TVS - ROW1 Four Wheeler BMW , Bens , ...

+ Reply to Thread
Results 1 to 2 of 2

Adding rows dynamically

  1. Default Adding rows dynamically

    Hi,

    Im new to javascript. I need a help from you.

    Basically i have one table with like this,

    column1 column2
    [innerText] [checkboxes]
    Two wheeler Yamaha , Honda , Suzuki , TVS - ROW1
    Four Wheeler BMW , Bens , Toyota - ROW2

    column1 was filled as a innerText and column2 was filled with a
    checkbox.
    I did this at the time of Page_Load event.

    Question :
    1. when i click the Two wheeler, i want to add the new row to the same
    table with the same contents which is in corresponding row clicked.
    (i.e) the table look like this

    column1 column2
    [innerText] [checkboxes]
    Two wheeler Yamaha , Honda , Suzuki , TVS - ROW1
    Four Wheeler BMW , Bens , Toyota - ROW2
    Two wheeler Yamaha , Honda , Suzuki , TVS - ROW3

    2.How can i get the checkbox, so that i manipulate whether it's
    checked or not.
    3.How can i save the view state of the dynamically added row.
    4.Is it Possible to count the controls in a cell
    Like this : no. of controls in column2,ROW1 is 4
    no. of controls in column2,ROW2 is 3

    Can any one help me,
    Thanks a lot.


  2. Default Re: Adding rows dynamically

    On Jun 7, 12:04 am, sivagurur...@ wrote:
    > Hi,
    >
    > Im new to javascript. I need a help from you.
    >
    > Basically i have one table with like this,
    >
    > column1 column2
    > [innerText] [checkboxes]
    > Two wheeler Yamaha , Honda , Suzuki , TVS - ROW1
    > Four Wheeler BMW , Bens , Toyota - ROW2
    >
    > column1 was filled as a innerText and column2 was filled with a
    > checkbox.
    > I did this at the time of Page_Load event.
    >
    > Question :
    > 1. when i click the Two wheeler, i want to add the new row to the same
    > table with the same contents which is in corresponding row clicked.
    > (i.e) the table look like this
    >
    > column1 column2
    > [innerText] [checkboxes]
    > Two wheeler Yamaha , Honda , Suzuki , TVS - ROW1
    > Four Wheeler BMW , Bens , Toyota - ROW2
    > Two wheeler Yamaha , Honda , Suzuki , TVS - ROW3
    >
    > 2.How can i get the checkbox, so that i manipulate whether it's
    > checked or not.
    > 3.How can i save the view state of the dynamically added row.
    > 4.Is it Possible to count the controls in a cell
    > Like this : no. of controls in column2,ROW1 is 4
    > no. of controls in column2,ROW2 is 3
    >
    > Can any one help me,
    > Thanks a lot.


    post the HTML code or the URL of page ..


+ Reply to Thread

Similar Threads

  1. How to dynamically insert rows into a Table control?
    By Application Development in forum DOTNET
    Replies: 6
    Last Post: 10-31-2007, 09:02 AM
  2. Adding rows to html table dynamically
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 09-21-2007, 08:18 AM
  3. Dynamically adding rows to table web server control
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 07-26-2007, 08:04 AM
  4. Dynamically adding rows to TableMatrix
    By Application Development in forum Perl
    Replies: 3
    Last Post: 12-10-2005, 04:35 PM
  5. Adding rows to msflexgrid dynamically.
    By Application Development in forum basic.visual
    Replies: 2
    Last Post: 12-05-2003, 10:52 AM