This is a migrated thread and some comments may be shown as answers.

checkBoxList inside RadGrid

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Giovanni
Top achievements
Rank 1
Giovanni asked on 15 Aug 2012, 08:01 AM
Hi All,


I am using radGiid to display my data in a tabular form. This data is a registration list, where by each registration could be an individual registration or group registration. The form allows the user to update the payment details of each record, 

One of the Columns displays the amount of each registration. Another template column that has and updateButton; when click it displays the members of the group in a checkboxList control that allows the user to select/deselect each members, 

I bounded the data of the checkboxList inside my radGrid ItemCommand.

My problem is I want to change the amount column in accordance of how many members being selected in the group.

If anyone has an idea on how to implement this. Please share..

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Aug 2012, 07:15 AM
Hello Giovanni,

Do you need to perform this logic client or server-side? On the server, you can access the NamingContainer of the CheckBoxList which should be the GridEditableItem that holds the rest of the controls and using FindControl, you could access them.

On the client, you could handle an appropriate event in the checkbox list and once you have the ClientID of this control, you can replace the ID portion of the CheckBoxList with that of the other control you need to modify. Then, use $find (for RadControls) or $get (for asp controls) with this ID to get a reference to the needed component.

If you need a code sample, please paste your grid declaration, so I can write it based on your code.

Greetings,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Giovanni
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or