I have a radgrid which gets bound to a dataset returned by a stored procedure. I have 3 hyperlink 'options' that gets generated dynamically from the DB. Instead of creating 3 columns with links, I just wanted a dropdownlist that users can select from and a button that will trigger the redirect to a page referenced by the links.
Also, I added the button on the template column but can't get it to display , I'll just create an image button then on another template column. But on the on-click event, when I do a findcontrol, I can't seem to see the radcombobox so I can reference the selected value and redirect the user to the link. Please advise. Code samples would help. Thanks!
I have code similar to below:
Also, I added the button on the template column but can't get it to display , I'll just create an image button then on another template column. But on the on-click event, when I do a findcontrol, I can't seem to see the radcombobox so I can reference the selected value and redirect the user to the link. Please advise. Code samples would help. Thanks!
I have code similar to below:
<telerik:GridTemplateColumn HeaderText="Options" UniqueName="Options">
<ItemTemplate>
<telerik:RadComboBox ID="rcbOptions" runat="server" AllowCustomText="True"
HighlightTemplatedItems="True" EmptyMessage="(Select)">
<Items>
<telerik:RadComboBoxItem Text="Option1" Value='<%#Eval("URL1") %>' />
<telerik:RadComboBoxItem Text="Option2" Value='<%#Eval("URL2") %>' />
<telerik:RadComboBoxItem Text="Option3" Value='<%#Eval("URL3") %>' />
</Items>
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>