manipulating datagrid client-side...

M

Maarten

Hi all,

I have a datagrid with questions where the user has to make a choice (yes or
no questions)
But for some questions there are rules, like if you choose (yes or no) for
some questions I need to skip 1 or more questions.
e.g.

Q1. Do you..... Y | N
Q2. Do you..... Y | N
Q3. Do you..... Y | N
Q4. Do you..... Y | N
Q5. Do you..... Y | N

If the user chooses Yes for Q2 then Q3 and Q4 need to be diabled so Q5 is
the next questions they have to answer.
If the user chooses No for Q2 then Q5 needs to be disabled.

I have the logic of this all in a database.
There are possible a lot of questions (about 1200)
I am looking for the fastest way to process this.
Can someone help me with a sample or hint?
I think the best way to do this, is on the client with javascript.
But I dont have much experience with javascript.

I am using Visual Studio 2005.

thanks in advance,

Maarten
 
E

Eliyahu Goldin

Maarten,

Yes, it is possible to manipulate a datagrid client-side. You can attach
client-side events to the controls that make your items (rows) in
ItemDataBound event.

BUT for this you need to be fluent in DHTML, understand well how your grid
items render and navigate through the DHTML object hierarchy in javascript.
It could be difficult to implement and to maintain. I am a big fan of
client-side solutions, but in this case I would try something like AJAX or
client callbacks to charge the server-side with the task.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top