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

unable to edit in place a grid with combobox

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 09 Oct 2008, 12:00 AM
Hi,

I had a working grid which i could insert/edit/update with the default options. I have added a combo box with the following code. Since then the form works to view and it adds new records brilliantly but it just does nothing when i click on the edit button of the row. If i take out the selectedvalue property it will allow you to edit but it will not update the database. I am using a LinqDataSource with my Grid and a second LinqDataSource for the values in the combo box, all automatic, no background coding.

<telerik:GridTemplateColumn HeaderText="Campus"
                            <ItemTemplate> 
                                <%#Eval("Campus") %> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <telerik:RadComboBox ID="CampusCombo" runat="server" DataSourceID="CampusData"  
                                    DataTextField="CampusName" DataValueField="CampusName" 
                                    Selectedvalue='<%#Bind("Campus")%>'
                                </telerik:RadComboBox> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 

Any help would be appreciated.

Thanks,

Daniel

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 13 Oct 2008, 01:08 PM
Hello Daniel,

I tried to reproduce the issue replacing the data source control from the sample project in this KB article with LinqDataSource control but unfortunately to no avail. Can you please modify the example to recreate the abnormality and send it attached to a regular support ticket? We will test/debug it locally and will get back to you with our findings.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or