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

RadGrid GridDropdownColumn item not refreshing on InitInsert

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaimeet
Top achievements
Rank 1
Jaimeet asked on 29 Sep 2010, 11:40 PM
I'm using a RadGrid GridDropDownColumn which is connected to a SqlDataSource:

 

 

 

<telerik:GridDropDownColumn DataField="Status_ID" DataSourceID="SqlDataSource_WTGTasksStatus"
  
HeaderText="Status" ListTextField="Status_Text" ListValueField="Status_ID" UniqueName="Status_ID"
  
ColumnEditorID="StatusDropdownEditor">

 

 

Here is my Column Editor:

<telerik:GridDropDownListColumnEditor ID="StatusDropdownEditor" DropDownStyle-Width="75px" runat="server" />

This is my datasource:
<asp:SqlDataSource ID="SqlDataSource_WTGTasksStatus" runat="server" ConnectionString="<%$ ConnectionStrings:ParkAnalyticsConnectionString %>"
SelectCommand="SELECT [Status_ID], [Status_Text] FROM [WTGTasksStatus]">
</asp:SqlDataSource>

When I click on 'Add a Record' button, the dropdown does not populate with the records from the datasource, but if I click on the Refresh button while it is in Insert mode (showing textboxes and the empty dropdown), then the dropdown populates.

I've wasted a lot of time trying to make this work, so that the dropdown populates when the user clicks on the 'Add a Record' button, but I've not succeeded.

Can you please help me out with this?

I would really appreciate it.

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 05 Oct 2010, 09:12 AM
Hello Jaimeet,

I have tried to reproduce the described issue with the latest controls version (2010.2.929) but without success. Would you mind verifying the exact version of RadControls that you are using in your project?

For your reference I have also attached a small sample that works as expected on my side.

I hope this helps.

Kind regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jaimeet
Top achievements
Rank 1
answered on 11 Oct 2010, 08:17 PM
The version that I'm using is 2009.2.616.20.
Is that the problem?
0
Martin
Telerik team
answered on 14 Oct 2010, 04:52 PM
Hello Jaimeet,

Although I doubt that the version you have specified has ever been released, I would suggest that you give a try the project from my previous post. On my side the project works as expected. Let me know about the results you get.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jaimeet
Top achievements
Rank 1
Answers by
Martin
Telerik team
Jaimeet
Top achievements
Rank 1
Share this question
or