I have a simple Rad Grid with a GridButtonColumn in the item template. I have no problems attaching a onclick attribute through code to fire some Javascript on the page using the ItemCreated event.
The problem is that I cannot figure out how to prevent the user click (on a button or link style column) from causing a postback. I can clear the standard postback function with:
Any ideas?
FYI, the javascript set the URL and opens a RadWindow to a page with more details on the item in the grid, but the postback causes an unecessary page refresh and messes up the rad window as well.
The problem is that I cannot figure out how to prevent the user click (on a button or link style column) from causing a postback. I can clear the standard postback function with:
button.Attributes.Add("href", "#")
on the ItemDataBound event, but it still does a post back.Any ideas?
FYI, the javascript set the URL and opens a RadWindow to a page with more details on the item in the grid, but the postback causes an unecessary page refresh and messes up the rad window as well.