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

[Solved] GridDropDownColumn empty value on first record only

4 Answers 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julia Shah
Top achievements
Rank 1
Julia Shah asked on 03 Aug 2009, 07:58 PM
Hi,

I have a grid with GridDropDownColumn, similar to this: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx. Although all the records have values in the GridDropDownColumn, the first record always appears empty, even in the demo above (see Category column). If I sort the grid or use paging, then the value appears correctly. Is this some kind of bug? Is there anything I can do to fix it?

Thanks,
Julia

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Aug 2009, 04:58 PM
Hello Julia,

I suggest you review the following forum thread, which discusses on the same scenario:
RadGrid Missing Column Values

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Julia Shah
Top achievements
Rank 1
answered on 05 Aug 2009, 05:56 PM
Thank you, Pavlina!

So you don't agree with me that there is a bug in GridDropDownColumn? Does anybody else see the blank in the first record in Category column in this demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx, or is it just me?

My datagrid is very simple, and I don't do anything in the code behind:

<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
    AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True">  
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="PersonID"   
        DataSourceID="SqlDataSource1" AutoGenerateColumns="False" runat="server" >  
        <Columns>  
            <telerik:GridEditCommandColumn ButtonType="ImageButton"   
                UniqueName="EditCommandColumn">  
            </telerik:GridEditCommandColumn>  
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name"   
                UniqueName="FirstName" ColumnEditorID="TextEditor1">  
            </telerik:GridBoundColumn>  
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name"   
                UniqueName="LastName" ColumnEditorID="TextEditor1">  
            </telerik:GridBoundColumn>  
            <telerik:GridDropDownColumn DataField="CategoryID"   
                DataSourceID="SqlDataSourceCategories" HeaderText="Category"   
                ListTextField="CategoryName" ListValueField="CategoryID"   
                UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1" >  
            </telerik:GridDropDownColumn>  
        </Columns>  
    </MasterTableView>  
</telerik:RadGrid>  
 
<asp:SqlDataSource ID="SqlDataSourceCategories" runat="server"   
    ConnectionString="<%$ ConnectionStrings:gContactConnectionString %>" 
    SelectCommand="select * from Mailing_ContactCategories " SelectCommandType="Text">  
</asp:SqlDataSource>  
 

So why is it hapenning?

Thanks,
Julia

0
Pavlina
Telerik team
answered on 11 Aug 2009, 10:29 AM
Hello Julia,

Indeed you are right and this is a bug. The problem has already been addressed by our developers and it will be working properly for the upcoming service pack .
Please excuse us for the inconvenience caused.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Julia Shah
Top achievements
Rank 1
answered on 11 Aug 2009, 03:13 PM
Thank you!
Tags
Grid
Asked by
Julia Shah
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Julia Shah
Top achievements
Rank 1
Share this question
or