Display search result on item click.

2 posts, 1 answers
  1. JC
    JC avatar
    30 posts
    Member since:
    Feb 2013

    Posted 15 Mar 2013 Link to this post

    Hi All,

    I hav a radtagcloud that contain certain items. On clicking the item I want to open a radwindow that contain the google search result page with the clicked item as the search keyword. Please help.

    Thanks,
    JC.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Mar 2013 Link to this post

    Hi JC,

    You can use the OnClientItemClicked client side event to achieve your scenario. I tried to display the search results using google there are some issues when I tried to open google within the RadWindow.(Also in case of iframe). Please have a look into the following code I tried in which I am displaying the search results using Bing.

    ASPX:
    <telerik:RadWindowManager runat="server" ID="RadWindowManager1" ShowContentDuringLoad="false">
            <Windows>
                <telerik:RadWindow runat="server" ID="RadWindowSearch" Left="350px" OffsetElementID="tagCloudWrapper"
                    Width="500px" VisibleStatusbar="false">
                </telerik:RadWindow>
            </Windows>
    </telerik:RadWindowManager>


    JavaScript:
    function OnClientItemClicked(sender, args) {
      var searchString = args.get_item().get_text();
      radopen("http://www.bing.com/search?q=" + searchString, "RadWindowSearch");
    }

    Thanks,
    Shinu.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top