I use Telerik Rad Grid. For the edit one record I add below
OnEditCommand="Stackoverflow_EditCommand" and in the grid I wrote
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" CommandArgument="Id">
</telerik:GridButtonColumn>
From the asp.net page, when I click edit button, there are some default textboxes in order to edit, but I dont want to show them to user, I open a new window and show the textboxes from there. So I dont want to show default edit row, how can I prevent it?
This is works fine for if you don't want inline editing in radgrid.
<telerik:GridTemplateColumn >
<ItemTemplate>
<img src="image/test.png" onclick="OpenPopup('<%#Eval("Id") %>');"/>
</ItemTemplate>
</telerik:GridTemplateColumn>
now make function like OpenPopup in javascript like this
function OpenPopup(id) {
window.radopen("Popups/Test.aspx?id=" + id, "PopupPage");//here "PopupPage" is id of your rad window
}
now you can get id by Request("id") in test page.