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

How

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guruvu
Top achievements
Rank 1
Guruvu asked on 25 Nov 2010, 01:24 PM

Hi,

I need to retrive ComboBox id which was in RadGrid EditItemTemplate.

Here is my code:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditFormItem && e.Item.IsInEditMode)// if EditMode is EditForm or PopUp
       {
           GridEditFormItem editItem = (GridEditFormItem)e.Item;
           RadComboBox ddlCity = editItem.FindControl("gvddlPOWCity") as RadComboBox;
           string city = ddlCity.SelectedValue;
           . . . . . . . .
       }
   }


I am set the property in MasterTable view as below:

<MasterTableView DataKeyNames="POWId" EditMode="EditForms">

Eventhough I am getting e.Item.IsInEditMode is always false.

Is there any more modifications need to perform.Please tell me...

Thanks...

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 25 Nov 2010, 05:29 PM
Hello guruvu,

Please check these forum threads discussing the same issue.
http://www.telerik.com/community/forums/aspnet/grid/item-isineditmode-never-true-for-dropdownlists.aspx
http://www.telerik.com/community/forums/aspnet/grid/girditem-isineditmode-always-returns-false.aspx

Kind regards,
Vasil
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Guruvu
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or