A client of mine is looking for a grid that acts like excel, using the BatchEdit feature. The problem i'm running into is dynamically binding a RadComboBox based off data from within that row. i.e. Below, based off the DivisionID that is selected in the row i'm editing, i need to pull all teams that are in that division and databind the RadComboBox. any thoughts?:
<
telerik:RadGrid
ID
=
"gridData"
runat
=
"server"
Skin
=
"Telerik"
OnNeedDataSource
=
"NeedDataSource_Football"
AutoGenerateColumns
=
"false"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
ShowHeader
=
"true"
ShowFooter
=
"true"
Width
=
"100%"
OnFilterCheckListItemsRequested
=
"RadGrid1_FilterCheckListItemsRequested"
FilterType
=
"CheckList"
GridLines
=
"Both"
AllowPaging
=
"false"
>
<
GroupingSettings
CaseSensitive
=
"false"
/>
<
MasterTableView
DataKeyNames
=
"ID"
CommandItemDisplay
=
"Top"
EditMode
=
"Batch"
>
<
BatchEditingSettings
EditType
=
"Row"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"FullName"
SortExpression
=
"FullName"
HeaderText
=
"Name"
FilterCheckListEnableLoadOnDemand
=
"true"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DivisionID"
HeaderText
=
"Division"
FilterCheckListEnableLoadOnDemand
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
DataField
=
"TeamID"
HeaderText
=
"Team"
FilterCheckListEnableLoadOnDemand
=
"true"
AllowFiltering
=
"true"
SortExpression
=
"TeamID"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"TeamID"
>
<
ItemTemplate
>
<%# DataBinder.Eval(Container.DataItem, "TeamName") %>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadComboBox
ID
=
"ddlTeams"
runat
=
"server"
DataValueField
=
"TeamID"
DataTextField
=
"TeamName"
></
telerik:RadComboBox
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>