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

radwindow + radcombobox issue

2 Answers 73 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sadiqabbas
Top achievements
Rank 1
sadiqabbas asked on 11 Feb 2010, 09:30 AM
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

<radcombobox1>
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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Feb 2010, 10:30 AM
Hi,

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.

javscript:
 
    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; 
        radopen(url,''); 
    } 

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

Thanks,
Princy.
0
sadiqabbas
Top achievements
Rank 1
answered on 11 Feb 2010, 11:44 AM
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
thanks

Tags
ComboBox
Asked by
sadiqabbas
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
sadiqabbas
Top achievements
Rank 1
Share this question
or