Jan K. van Dalen
|
Posted: 01/08/2006, 7:25 PM |
|
Hi Everyone,
I'm trying to change the look of my app to act a bit like does it
.... when it come to performing record operations:
They basically add a radio button on every row (record) in which you click
on it and then pressing a button it does the operation for that record. I
tried to acomplish this on CCS 3.0 / ASP.NET and no luck (if someone has a
sample in ASP it could help).
Any advice?
You can look at this link: http://www..com/products/DesignThemes.aspx ... sorry but I tried
to upload a picture and was not allowed.
BTW, I prefer CCS to IS for many reasons but I love the way they handel
record navigation.
|
|
|
dragoon
Posts: 173
|
Posted: 01/08/2006, 9:06 PM |
|
ok, so instead having the action button on every row, you want to select a row and then trigger the action with the id of the selected row?
assuming that in your grid, you have a column for IDs, add a new column (in the grid) insert a radio button, assign it to the column from the table that has IDs (unique).
now for capturing the value of the radio button, you'll need to know the name of the radio; since you're working with a grid...you can't know the name...so we'll transfer its value to a hidden input. I think this is the best option. if someone else has another solve ...
now, back to the grid, insert a hidden input textbox (not in the grid, but in the form that holds the grid) and give it a name; jump to HTML, find where you have placed the radio input and add something like:
onclick="document.form_name.hidden_input.value=this.value"
replace form_name with the name of your form, same for hidden_input
for the action button, you'll need to grab the value of the hidden input and add it to the action itself.
|
|
|
Jan K. van Dalen
|
Posted: 01/09/2006, 7:40 AM |
|
Dragoon, many thanks. I'll be trying it this afternoon.
Again Thanks !!!
"dragoon" <dragoon@forum.codecharge> wrote in message
news:843c1ef53a875a@news.codecharge.com...
> ok, so instead having the action button on every row, you want to select a
> row
> and then trigger the action with the id of the selected row?
>
> assuming that in your grid, you have a column for IDs, add a new column
> (in the
> grid) insert a radio button, assign it to the column from the table that
> has IDs
> (unique).
>
> now for capturing the value of the radio button, you'll need to know the
> name
> of the radio; since you're working with a grid...you can't know the
> name...so
> we'll transfer its value to a hidden input. I think this is the best
> option. if
> someone else has another solve ...
>
> now, back to the grid, insert a hidden input textbox (not in the grid, but
> in
> the form that holds the grid) and give it a name; jump to HTML, find where
> you
> have placed the radio input and add something like:
>
> onclick="document.form_name.hidden_input.value=this.value"
>
> replace form_name with the name of your form, same for hidden_input
>
> for the action button, you'll need to grab the value of the hidden input
> and
> add it to the action itself.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|