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

How to use radcombobox into radgrid using datakeynames

3 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 06 May 2011, 10:57 AM
Hi,

I am using radgrid and displaying record with datasource. i am using radcombobox into radgrid. i want display record using datasource wtih radgrid datakeynames. that is i want put a query into datasource using )where plan_id="Datakerynames").

How to get record. let me know if you have any tips.


Thanks,
Dhamu.

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 11 May 2011, 11:54 AM
Hello Dhamu,

In order to implement the desired functionality, I recommend that you use a GridDropDownColumn.
Here you can read how to customize and configure it.

I hope this helps.

Best wishes,
Mira
the Telerik team

Browse the vast support resources we have to jump start 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.

0
Aqeel
Top achievements
Rank 1
answered on 13 Dec 2011, 10:45 AM
Hello Mira

This code works fine if i use radcombobox in gridview
'RadComboBox status1 = (RadComboBox)GridView1.Rows[i].Cells[2].FindControl("RadComboBox1");'

But i need to run this code in rad grid
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2011, 01:38 PM
Hello Aqeel,

You can access the DropDownColumn as shown below.
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
   if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
       GridEditableItem item = (GridEditableItem)e.Item;
       RadComboBox combo = (RadComboBox)item["DropDownUniqueName"].Controls[0];
    }
}

-Shinu.
Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Mira
Telerik team
Aqeel
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or