U. Angel
U. Angel

Reputation: 3

Set data to input depending radcombobox value inside radgrid telerik

I created a radgrid witch editmode = "bath".

Inside this grid I've declared a radcombobox using GridtTemplateColumn, I want to set value to a radtextbox depending of selected value of the combo (it is inside the grid too).

I couldn´t find how to do this, I was traying to do it on "SelectedIndexChanged" event of the combo but I could not find the row index.

Visual Example

Thanks in advance for your help.

Upvotes: 0

Views: 265

Answers (1)

Ceco Milchev
Ceco Milchev

Reputation: 407

The SelectedIndexChanged is a server event. Subscribe to the OnClientSelectedIndexChanged event of the RadComboBox instead.

You can access the current row as follows:

                function OnClientSelectedIndexChanged(sender, args) {
                        var currentRow = $(sender.get_element()).parents("tr.rgRow,tr.rgAltRow")[0];
                       // Find the textbox and set its text value
            }

Upvotes: 0

Related Questions