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

doesn't display Item data in grid edit mode

3 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
KwangTae
Top achievements
Rank 1
KwangTae asked on 15 Dec 2011, 09:35 AM
hello..
I need your help...
don't be displayed  AAA Column  data in grid item....  i don'y know reason....
help me please.

below source and attached snapshot.
aspx:

<MasterTableView DataKeyNames="CODE_SECTION,CODE_GROUP" EditMode="EditForms">
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="50px">
                                <ItemStyle Width="50px" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridBoundColumn DataField="CODE_SECTION" HeaderText="시스템1" ReadOnly="true"
                                UniqueName="System">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CODE_GROUP" HeaderText="그룹코드" ReadOnly="true"
                                UniqueName="GroupCode">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CODE_GROUP_NAME" HeaderText="그룹코드명" UniqueName="CodeCommonName">
                            </telerik:GridBoundColumn>
                            <telerik:GridDropDownColumn ColumnEditorID="GridDropDownListEditor1" DataField="USE_YN"
                                DropDownControlType="RadComboBox" HeaderText="AAA"   UniqueName="UseYN"  ListTextField="TEXT" ListValueField="VALUE">
                            </telerik:GridDropDownColumn>
                            <telerik:GridBoundColumn DataField="INSERT_ID" HeaderText="등록자" ReadOnly="true" UniqueName="InsertID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="INSERT_DATE" HeaderText="등록일" ReadOnly="true"
                                UniqueName="InsertDate">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="UPDATE_ID" HeaderText="수정자" ReadOnly="true" UniqueName="UpdateID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="UPDATE_DATE" HeaderText="수정일" ReadOnly="true"
                                UniqueName="UpdateDate">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle AlwaysVisible="True" />
                    </MasterTableView>


C# Code :

protected void gv_ItemDataBound(object sender, GridItemEventArgs e)
        {
           var q = from result in db.sp_TempSearchCode_s("USEYN")
                    select new
                    {
                        TEXT =  result.TEXT,
                        USE_YN = result.VALUE
                    };
           
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;

                RadComboBox combo = (RadComboBox)item["UseYN"].Controls[0];

                foreach (var items in q)
                {
                    combo.Items.Add(new RadComboBoxItem(items.TEXT, items.USE_YN));
                }
            }

        }


:

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2011, 09:41 AM
Hello Kwang,

In browser mode, GridDropDownColumn looks and behaves like a standard GridBoundColumn. In edit mode, it displays a drop-down control for each edited cell in the column which is the default behavior. Also check the following help documentation.
Column Types.

-Shinu.
0
KwangTae
Top achievements
Rank 1
answered on 15 Dec 2011, 10:25 AM
sorry but help me one more time...

i read help documents   but i can not resolve problem.
As i  attaced snapshot , i set all properies .
then i can't see AAA column data in nomal search mode.
but can see in Grid edit mode.
also when i add bound column , then i can see data.

source is above...
please check my source..

thanks.
0
Princy
Top achievements
Rank 2
answered on 15 Dec 2011, 10:56 AM
Hello Kwang,

This is fixed in the latest version 2011.2.712.35 which worked as expected. Try upgrading to the latest version. Attached is the screenshot.
Updating RadControls for ASP.NET AJAX to another version or license

Thanks,
Princy.
Tags
Grid
Asked by
KwangTae
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
KwangTae
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or