Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
combo_SelectedIndexChanged(
object
sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
RadComboBox combo = (RadComboBox)sender;
GridDataItem item = (GridDataItem)combo.NamingContainer;
string
id = Convert.ToInt32(item.GetDataKeyValue(
"ID"
)).ToString();
}
RadGrid1_ItemCreated(
sender, Telerik.Web.UI.GridItemEventArgs e)
if
(e.Item
is
GridDataItem)
GridDataItem dataItem = (GridDataItem)e.Item;
RadComboBox combo = (RadComboBox)dataItem.FindControl(
"Radcombo"
);
int
index = e.Item.ItemIndex;
combo.OnClientSelectedIndexChanged =
"function (sender,args){rowIndex('"
+ index +
"');}"
;
function
rowIndex(index)
var
row = $find(
'<%= RadGrid1.ClientID %>'
).get_masterTableView().get_dataItems()[index];
alert(row.getDataKeyValue(
));
//DataKeyName