function AreaSiteOnClientSelectedIndexChanged(sender, args) {
var carparkId, comboUsageId;
var carpark, comboUsage;
var item = args.get_item();
switch (sender.get_id())
{
<asp:Literal ID="litFindControl" runat="server" />
default :
break;
}
carpark = $find(carparkId);
comboUsage = $find(comboUsage);
if (item.get_text() == "Above Ground")
{
carpark.set_value("");
carpark.disable();
comboUsage.enable();
}
else if (item.get_text() == "Caraprk")
{
carpark.enable();
comboUsage.set_value();
comboUsage.disable();
}
}
server side:
protected void RadGridAboveGround_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
GridEditManager editMan = editedItem.EditManager;
RadNumericTextBox txtNoOfCarpark = editedItem.FindControl("txtNoOfCarpark") as RadNumericTextBox;
RadComboBox comboUsage = editedItem.FindControl("RadComboBoxPropertySector") as RadComboBox;
RadComboBox comboAreaSite = editedItem.FindControl("RadComboBoxAreaSite") as RadComboBox;
litFindControl.Text += " case \"" + comboAreaSite.ClientID + "\":" + Environment.NewLine;
litFindControl.Text += " carparkId = \"" + txtNoOfCarpark.ClientID + "\";" + Environment.NewLine;
litFindControl.Text += " comboUsageId = \"" + comboUsage.ClientID + "\";" + Environment.NewLine;
litFindControl.Text += " break;" + Environment.NewLine;
}
}
| function onClientButtonClick1(sender, args) |
| { |
| var btn = args.get_item(); |
| if (btn.get_commandName() == "VR") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| doViewResume(control.value); |
| return false; |
| } |
| if (btn.get_commandName() == "V") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=view", ""); |
| oWnd.center(); |
| return false; |
| } |
| if (btn.get_commandName() == "DM") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=deny", ""); |
| oWnd.center(); |
| return false; |
| } |
| } |
| RadEditor newEditor = new RadEditor(); |
| newEditor.Skin = "Gray"; |
| newEditor.EnableEmbeddedSkins = false; |
| newEditor.EnableEmbeddedBaseStylesheet = false; |
| newEditor.Tools.AddRange(getTools()); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.7em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.5em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.3em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.1em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.0em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.9em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.8em")); |
| ... |
| private IEnumerable<EditorToolGroup> getTools() |
| { |
| IList<EditorToolGroup> toolGroups = new List<EditorToolGroup>(); |
| EditorToolGroup toolGroup = new EditorToolGroup(); |
| EditorTool groupItem; |
| groupItem = new EditorTool(); |
| groupItem.Name = "RealFontSize"; |
| groupItem.Text="Storlek"; |
| //groupItem.Width = "60px"; |
| toolGroup.Tools.Add(groupItem); |
| ... |
| toolGroups.Add(toolGroup); |
| return toolGroups.AsEnumerable(); |
| } |

function
openRadWindowCustomSearch()
{
var oWnd = radopen("Custom_Search_Page.aspx", "RadWindow2" );
oWnd.setSize(700,550)
oWnd.center();
}
Inside Custom_Search_Page.aspx ,I placed a usercontrol ie,<
form id="form1" runat="server">
<div>
<uc1:CustomSearch id="uclCustomSearch" runat="server" />
</div>
</form>