Following is my grid which has autogenerated column to true. I have created two new columns Add Comments and Add Documents.
I want to capture onClick event for these two hyperlink. How can I do that ?
I have tried with <ItemTemplate> and <asp:Hyperlink> but in that case I am loosing all my auto generated column, Please help
'<telerik:RadGrid ID="gvInvoice" Width="98%" AllowPaging="true" AllowSorting="true" PageSize="100"
runat="server" AutoGenerateColumns="true" CellSpacing="0" GridLines="None" Skin="Office2010Blue"
OnPageIndexChanged="gvInvoice_PageIndexChanged"
OnItemDataBound="gvInvoice_ItemDataBound"
OnSortCommand="gvInvoice_SortCommand"
ShowFooter="True" Height="100%">
<MasterTableView>
<Columns>
<telerik:GridHyperLinkColumn Text="Add Comments" UniqueName="Comments" HeaderStyle-Width="120px" HeaderText="Comments" NavigateUrl="#"></telerik:GridHyperLinkColumn>
<telerik:GridHyperLinkColumn Text="Add Documents" UniqueName="Documents" HeaderStyle-Width="120px" HeaderText="Document" NavigateUrl="#"></telerik:GridHyperLinkColumn>
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" />
<ClientSettings>
<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" /></ClientSettings>
</telerik:RadGrid>'
Any suggestion ?
I want to capture onClick event for these two hyperlink. How can I do that ?
I have tried with <ItemTemplate> and <asp:Hyperlink> but in that case I am loosing all my auto generated column, Please help
'<telerik:RadGrid ID="gvInvoice" Width="98%" AllowPaging="true" AllowSorting="true" PageSize="100"
runat="server" AutoGenerateColumns="true" CellSpacing="0" GridLines="None" Skin="Office2010Blue"
OnPageIndexChanged="gvInvoice_PageIndexChanged"
OnItemDataBound="gvInvoice_ItemDataBound"
OnSortCommand="gvInvoice_SortCommand"
ShowFooter="True" Height="100%">
<MasterTableView>
<Columns>
<telerik:GridHyperLinkColumn Text="Add Comments" UniqueName="Comments" HeaderStyle-Width="120px" HeaderText="Comments" NavigateUrl="#"></telerik:GridHyperLinkColumn>
<telerik:GridHyperLinkColumn Text="Add Documents" UniqueName="Documents" HeaderStyle-Width="120px" HeaderText="Document" NavigateUrl="#"></telerik:GridHyperLinkColumn>
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" />
<ClientSettings>
<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" /></ClientSettings>
</telerik:RadGrid>'
Any suggestion ?