This is a migrated thread and some comments may be shown as answers.
How to pass parameters from a radwindow to an aspx page
1 Answer 35 Views
This is a migrated thread and some comments may be shown as answers.
Manesh
Top achievements
Rank 2
Manesh asked on 10 Feb 2012, 10:20 AM
Hello there,

I'm unable to sort out how to pass the parameters from a selecte item in radwindow to a textbox.

means we have a textbox and a small button, so if we click it it opens a small radwindow and if we select any item or anything so how to pass it from the window to the textbox. means how to do it using the "Request.QueryString"............


please help my friends

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 10 Feb 2012, 11:29 AM
Hello,

Try the following javascript to pass selectedvalue to TextBox in aspx.
JS:
<script type="text/javascript">
 function OnClientClick()
  {
   window.radopen(null, "RadWindow1");
  }
 function OnClientSelectedIndexChanged(sender, args)
  {
   var textbox = document.getElementById("TextBox1");     
   var itm=args.get_item().get_text();
   textbox .value=itm;
  }
</script>
Note: I am using RadCombobBox inside RadWindow.
Also take a look into the following demo.
Window / Returning Values from a Dialog

Thanks,
Princy.
Asked by
Manesh
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Share this question
or