radwindow + radcombobox issue

3 posts, 0 answers
  1. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 11 Feb 2010 Link to this post

    i dont know i am confused

    that where to post it so i posted it here

    actually i am developing a site and in that i want to add 1 type of functionality

    below is example

    select user type -> Type A , Type B

    on user selection

    <radcombobox2> will updated using select statement

    now user will select person from radcombobox2

    after that

    linkbutton and radeditor will display

    i want such a thing that

    when user click on linkbutton

    a radwindow should open in which url should be
    e.g: ~/editpic.aspx?emid= radcombobox.selectedindex.value

    so that in editpic.aspx page i can provide user to edit picture

    thanks in advance

    please help needed very very urgently
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Feb 2010 Link to this post


    You can use related comboboxes as shown in the demo for populating comboboxes. Then in the OnClientSelectedIndexChanged event handler of second RadComboBox, set the Visibility of LinkButton and RadEditor. Now in the LinkButton's onclick event handler, open the window with the required values as url parameter.

        function OnClientSelectedIndexChanging(sender, args) { 
            var text = args.get_item().get_text(); 
            // Prepare the url and Open the window by setting the url 
            var text = args.get_item().get_text(); 
            var url = "Attributes.aspx?value=" + text; 

    The following documentation shows different ways to open RadWindow from client side.
    Opening Windows

  3. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 11 Feb 2010 Link to this post

    thanks for your suggestion

    i am grateful

    but i get it from somewhere which i wanted

    and that is

    when linkbutton clicked and then when
    linkbutton_click() gets called
    there i used below script

    string radscr1 = radscr1 = "<script language='javascript'>function f(){var oWnd = window.radopen('changepic.aspx?emid=" + RadComboBox2.SelectedItem.Value.ToString() + "','RadWindow1'); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>"
            Page.ClientScript.RegisterStartupScript(this.GetType(), "chngpic", radscr1);  

    still thanks

    i am posting this so that at least others could get help and also no burden on helpers to answer same answer

Back to Top