or
| <telerik:GridButtonColumn CommandName="Select" DataTextField="name" HeaderText="File name" Text="Select" UniqueName="column"> |
| <HeaderStyle Width="200px" /> |
| </telerik:GridButtonColumn> |
Now I wish to somehow make sure that when the User clicks on the link displayed within this column, the CodeBehind can obtain the ID associated with the displayed NAME.
How do I do that?
What event is thrown when a user clicks into the GridButtonColumn?
How can I link the ID to the column items? Making sure that it shows the name NAME was trivial via DataTextField. But what do I do with the ID?
Thanks
s.
function pageLoad()
{
setTimeout('ScrollToSelectedNode()', 200);
}
function ScrollToSelectedNode()
{
var tree = <%= treeViewMain.ClientID %>;
var selectedNode = tree.SelectedNode;
if (selectedNode != null)
selectedNode.ScrollIntoView();
}
Thanks!
| <script type="text/javascript"> |
| function openEditorWindow(forumID, typeofPost) |
| { |
| var oReadingWnd = radopen("PostEditor.aspx?ForumID=" + forumID + "&PostType=" + typeofPost); |
| oReadingWnd.Center(); |
| } |
| </script> |
| lnkNewThread1.Attributes.Add("onclick", "javascript:openEditorWindow('" + this.Request.QueryString["ForumID"] + ", " + PostType.NewThread.ToString() + "')"); |
| <asp:HyperLink runat="server" ID="lnkNewThread1" NavigateUrl="#" ImageUrl="~/Images/forum_new_thread.png" |
| Text="Start New Topic"/> |