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

[Solved] Grid does not show Combobox items properly.

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shailesh
Top achievements
Rank 1
Shailesh asked on 31 Jan 2013, 06:35 AM
Hi All,

I am facing very strange issue in form editing of Grid. I have one column in my grid which is combobox. I have tried different approach but not able to resolve this.

Case 1 : Grid DropDown Column

<telerik:GridDropDownColumn DataSourceID="StateDataSource" Visible="false"
                                    HeaderText="State" ListTextField="StateName" ListValueField="StateID"
                                    UniqueName="StateTestDropDown" ColumnEditorID="StateTestDropDownEditor" >
                                </telerik:GridDropDownColumn>
but in the UI, It is just showing me first row data, also i am not able to select other items. It seems disabled dropdown.

Case 2 : Grid Template Column

<telerik:GridTemplateColumn HeaderText="State" Visible="false">
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container.DataItem, "StateID")%>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox Width="100px" ID="StateClientContactDropDown" runat="server" SelectedValue='<%#Bind("StateID") %>'
                                    DataTextField="StateName" DataValueField="StateID" DataSourceID="StateDataSource">
                                     </telerik:RadComboBox>
                                </EditItemTemplate>                         
                                </telerik:GridTemplateColumn>

Same issue with this too, It only shows first item of datasource in the disabled mode.

Please let me know what should i change for making available other values of dropdown?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 05 Feb 2013, 09:46 AM
Hi Shailesh,

I have created a sample RadGrid web site to test the described behavior. On my side the comboboxes are functioning correctly. Please check out the attached application and let me know about the result.

Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Shailesh
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or