Good Day All
i have a Radgrid defined like this
in this Grid there is "CategoryID" and on RowDatabound event i hide this Column and it working. now in this Grid i have this
as shown above,when my user clicks the Hyperlink in the Grid, this will take the user to the Appropriate Page,its Good , and i want to save the "CategoryID" of the selected Hyperlink. Am open to suggestion, i
can still use the Button link and onclick and get the Category_id of the selected button list. Please note that in this grid there wont be any multi select.
Thanks
i have a Radgrid defined like this
| <telerik:RadGrid ID="RagCategories" runat="server" Height="399px" Width="698px" AutoGenerateColumns="False" Skin="Sunset" OnDataBound="RagCategories_DataBound"> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <Columns> |
| <telerik:GridTemplateColumn DataField="CategoryID" HeaderText="ID" UniqueName="TemplateColumn"> |
| <ItemTemplate> |
| <asp:Label ID="lblID" Font-Bold="true" runat="server" Text='<%# Eval("CategoryID")%>' ></asp:Label> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Forum Categories" UniqueName="TemplateColumn1"> |
| <ItemTemplate> |
| <asp:HyperLink id="link1" Text='<%# Eval("CATEGORYNAME")%>' NavigateUrl='<%# Eval("[LINK]")%>' runat="server" > </asp:HyperLink> |
| <asp:Label ID="descr" runat="server" Text='<%# Eval("Description")%>'></asp:Label> |
| </ItemTemplate><HeaderStyle Font-Bold="True"> |
| </HeaderStyle> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True" Skin="Sunset"> |
| <CollapseAnimation Type="OutQuint" Duration="200"> |
| </CollapseAnimation> |
| </FilterMenu> |
| <ClientSettings> |
| <ClientEvents OnRowClick="OnClientClick="javascript: return SetHidSelectedRows()"" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| <asp:HyperLink id="link1" Text='<%# Eval("CATEGORYNAME")%>' NavigateUrl='<%# Eval("[LINK]")%>' runat="server" > |
can still use the Button link and onclick and get the Category_id of the selected button list. Please note that in this grid there wont be any multi select.
Thanks