Set data to input depending radcombobox value inside radgrid telerik

243 views Asked by At

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.

1

There are 1 answers

0
Ceco Milchev On

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
            }