Hi Guys,
I am using a radgrid with two GridButton Columns and Filtering by column enabled. I tried to add an attribute "onclick" to one of the button columns in the following way in the RadGrid DataBound event
Button button = radGridItem["Create"].Controls[0] as Button;
button.Attributes["onclick"] = "form1.target = '_blank';";
I did this so that once the user clicks on the button (of the column with UniqueName= "Create"), he can be redirected to another page in another window.
Now the PROBLEM is , both the button column buttons AND the Filter buttons in the header when clicked open the page in a new window.
How do I add the above attribute to only one Button Column?(and not to other buttons and Filter buttons)
Please help!!!!
I am using a radgrid with two GridButton Columns and Filtering by column enabled. I tried to add an attribute "onclick" to one of the button columns in the following way in the RadGrid DataBound event
Button button = radGridItem["Create"].Controls[0] as Button;
button.Attributes["onclick"] = "form1.target = '_blank';";
I did this so that once the user clicks on the button (of the column with UniqueName= "Create"), he can be redirected to another page in another window.
Now the PROBLEM is , both the button column buttons AND the Filter buttons in the header when clicked open the page in a new window.
How do I add the above attribute to only one Button Column?(and not to other buttons and Filter buttons)
Please help!!!!