Hi,
I have grid with GridEditCommandColumn and OnItemDataBound i am adding Javascript on this GridEditCommandColumn but nothing happening. Can anyone tell what i am doing wrong ? Following is my code
One more thing my Grid has following thing as well
Thanks,
--Jai
I have grid with GridEditCommandColumn and OnItemDataBound i am adding Javascript on this GridEditCommandColumn but nothing happening. Can anyone tell what i am doing wrong ? Following is my code
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditImageUrl="~/Images/Edit.gif" ButtonType="ImageButton"> </telerik:GridEditCommandColumn>if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; ImageButton edit = (ImageButton)item["EditCommandColumn"].Controls[0]; //edit.Attributes.Add("OnClick", " onContactRowSelected('" + sender + "','" + e + "');"); edit.Attributes["onClick"] = "alert('test');return false;"; }One more thing my Grid has following thing as well
<ClientEvents OnCommand="radContactGrid_Command" OnRowCreated="onContactGridRowCreated" OnRowCreating="onContactGridRowCreating" OnRowSelected="onContactRowSelected" />Thanks,
--Jai