Ajax DataGrid Support Product Page

Answered

Multiple select

Asked 03 May 2012 07:01:49
1
has this question
03 May 2012 07:01:49 Andre Bender posted:
Is there a way to select multiple rows in order to edit multiple values on a multiple form page?

Replies

Replied 03 May 2012 07:04:55
03 May 2012 07:04:55 Teodor Kuduschiev replied:
Can you please describe what exactly do you need to achieve?
Replied 03 May 2012 07:12:05
03 May 2012 07:12:05 Andre Bender replied:
I'd like to have checkboxes for each row. Then I'd like to select for example row 1, 3 and 5 and click on an edit button. I have actually a form script that generates 3 forms when 3 URL parameter are submitted.

Instead of checkboxes a multiple row select via ctrl+click would also do it.

Is this possible?
Replied 03 May 2012 07:33:22
03 May 2012 07:33:22 Teodor Kuduschiev replied:
Unfortunately this is not possible in the current version of Ajax Datagrid
Replied 03 May 2012 07:34:35
03 May 2012 07:34:35 Andre Bender replied:
Ok, would be great to have in the near future.

Great grid, easy to use, fast and stable. Good job!

Replied 10 May 2012 20:05:18
10 May 2012 20:05:18 Alice Erickson replied:
Actually, this can easily be made to work. If you wrap your form around the datagrid and then put in your checkbox coding in the "before" and "after" like this:

before: "<input type=checkbox name={0} ",
after: "value=1>"

then your form will return data like this:

rp=15&54=on&52=on&56=on&49=on&submit=Get+Printout+of+Selected

Do the whatever it is that you're trying to do based on a "For Each ... " like this, taking ouy the items you don't want.

for Each pickID in Request.Form
If pickID <> "rp" AND pickID <> "submit" then
myrow = pickID

... do your stuff here.

End if
Next

This works fine.

Replied 10 May 2012 20:32:04
10 May 2012 20:32:04 Andre Bender replied:
Great, thx.

Reply to this topic