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

[Solved] Ajax DropDownList in Grid Ajax bound

0 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 23 Dec 2010, 09:13 PM
Hi,

   I have a master/detail grid ajax bound who works fine except for selections in telerik DropDownList Ajax bound.

1- The first grid use popup editing and I'm unable to select value in dropdownlist, even with code partially working on point 2.
2- the detail grid use inline editing and I'm able to select value in dropdownlist, but when I click on dropdownlist, selectedvalue is lost.
function OnEditCompetences(e) {
        if (e.mode == 'edit') {
 
        var objName = e.dataItem.TypeCours;
        var cComboBox = $('#TypeCours').data('tDropDownList');
        var id = e.dataItem.TypeCours.pk_TypeCoursId;
        var name = e.dataItem.TypeCours.Nom;
        /*var datasource = [{ Text: name, Value: id, Selected: true}];
        cComboBox.dataBind(datasource);*/
        cComboBox.value(id);
        cComboBox.text(name);
        }
    }

I have other grid like this in my application and It works with standard .Net DropDownList.

Your help is very appreciated.
Thank you
Steve
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Share this question
or