This is a migrated thread and some comments may be shown as answers.

[Solved] navigateurl radcombobox

2 Answers 167 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
cognos s
Top achievements
Rank 1
cognos s asked on 05 Oct 2009, 01:33 PM
I would like to append the id property to navigate url property. the id property should be dynamic. how can i do this.
navigateurl = "http://www.telerik.com?id=1? something like this.

I am trying to append the id property like this...but it doesnt work.

navigateurl = http://www.telerik.com? & "<% id %>". id property is declared on the server side.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2009, 10:39 AM
Hello,

I guess you are using HyperLink in ItemTemplate of RadComboBox and want to set the NavigateUrl for passing the url parameter accordingly. I tried following code in order to achieve this. Give a try with this.

ASPX:
 
<telerik:RadComboBox ID="RadComboBox1" runat="server" HighlightTemplatedItems="true" 
    DataSourceID="SqlDataSource1" DataTextField="CategoryID" DataValueField="CategoryName"
    <ItemTemplate> 
        <%# DataBinder.Eval(Container.DataItem, "CategoryName")%> 
        <asp:HyperLink runat="server" Text="Click me" NavigateUrl='<%#"Related.aspx?CategoryId=" + Convert.ToString(DataBinder.Eval(Container.DataItem, "CategoryID"))%>' 
            ID="HL"></asp:HyperLink> 
    </ItemTemplate> 
</telerik:RadComboBox> 
Could you explain about the scenario that you are trying if that is diffrenet from this?

-Shinu.
0
cognos s
Top achievements
Rank 1
answered on 06 Oct 2009, 12:18 PM
Thanks for your reply shinu. My mistake I posting the question. I am having problems with radwindow and not radcombobox.
Tags
ComboBox
Asked by
cognos s
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
cognos s
Top achievements
Rank 1
Share this question
or