or


Hi there, I need samples for two scenarios:
1) I have RadListBox, based on the values selected, others controls (RadTextBox, RadComboBox,RadListBox, RadRadioListBox etc) will be visible to the user. If user made some changes on these controls and again changed the values of Main RadListBox, It should prompt the user that ‘ You have made some changes but not saved, do you still want to move away(select a new item)?’.
2) Whenever user navigate away from one page to another page, it should prompt like: ‘Do you want to move away?’
Thanks Regards, Mayil
<script type="text/javascript"> function changedclient() { var textBox = $find("RadTextBox1"); var button = $find("RadButton1"); if (button.get_checked()) { textBox.set_value(""); textBox.disable(); } else { textBox.enable(); } } </script>------------------------------------------- <asp:ScriptManager ID="RadScriptManager1" runat="server"></asp:ScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" /> <telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="False" ToggleType="CheckBox" ButtonType="ToggleButton" OnClientCheckedChanged="changedclient()"> </telerik:RadButton> <br/> <telerik:RadTextBox ID="RadTextBox1" runat="server" Font-Names="tahoma"> <FocusedStyle BackColor="#FFFFCC" BorderColor="Red" /> </telerik:RadTextBox> ....List<int> selectedValues= new List<int>();...IEnumerable<RadComboBoxItem> checkedItems = from checkedItem in cblMagistrateCourts.Items.ToList() where checkedItem.Checked == true select checkedItem; foreach (RadComboBoxItem item in checkedItems) { if (item.Checked) selectedValues.Add(Convert.ToInt32(item.Value)); }