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

How can I make DropDownList update more than one column

3 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tony H
Top achievements
Rank 1
Tony H asked on 04 May 2012, 03:21 PM
I have a grid with data coming from a web service, one of the columns is a DropDownList to enable the user to change the customer on a sales order (it is just a proof of concept project at the moment).  The data source for the Grid has both customer account number and customer name, but the Grid only shows the customer name, which is the column that the drop down list is on currently.  What I want to do is, when you select a new customer using the drop down list, it updates the customer account column AND the customer name column so that the grid is up to date.  Is there any easy way of doing this?

Thanks in advance,

Tony

3 Answers, 1 is accepted

Sort by
0
Tony H
Top achievements
Rank 1
answered on 09 May 2012, 09:26 AM
Please need help with this, has anyone done anything like this?
0
Daniel
Top achievements
Rank 1
answered on 20 May 2012, 05:16 PM
I need the exact same thing.
could somebody please give us a hint?

thx in advance
0
Daniel
Top achievements
Rank 1
answered on 20 May 2012, 05:36 PM
Got it!

On your .kendoDropDownList
change: function (e) {
     options.model.fieldToChange = this.dataItem().valueFieldOfYourDropDownDataSource;
}
Tags
Grid
Asked by
Tony H
Top achievements
Rank 1
Answers by
Tony H
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Share this question
or