Posted on Nov 1, 2011 (permalink)
Reply
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();
}
Posted on Nov 2, 2011 (permalink)
Posted on Nov 3, 2011 (permalink)
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
Back to Top
[ ASP.NET Filter Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below