
protected void LstAgency_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) { LstAgency.Items.Clear(); if (e.Context["CustomText"].ToString().Length >= 2) { data = APIHelper.GetCompanies(e.Context["CustomText"].ToString()); ShowSmartCombo(e, LstAgency, data, "Name"); } // We want to show the drop down to the width of the longest company name. // Use approx. 3 px per character. iLongestName * 3 LstAgency.DropDownWidth = new Unit(800, UnitType.Pixel); }But the DropDownWidth does not change. I have stepped through the code to make sure it's setting the DropDownWidth, but nothing happening.
Is it because we can't change the width of the drop down in the onItemRequested event?
Thanks,
Annie
<asp:SqlDataSource ID="sdsJobDetails_viewJobs" runat="server" ConnectionString="<%$ ConnectionStrings:Gateway10.My.MySettings.dbConnString %>" SelectCommand="SELECT * FROM [viewJob] WHERE ([jobID] = @jobID)" ProviderName="<%$ ConnectionStrings:Gateway10.My.MySettings.dbConnString.ProviderName %>"> <SelectParameters> <asp:QueryStringParameter DefaultValue="0" Name="jobID" QueryStringField="jobID" Type="Int64" /> </SelectParameters> </asp:SqlDataSource><telerik:RadEditor ID="RadEditor1" runat="server" Height="300px" Width="100%" DataSourceID="sdsJobDetails_viewJobs" EditModes="Design" EnableResize="False" Content='<%#Bind("jobTextNotes")%>'>
Hi,
I want to change the skin for all the telerik controls in my application in one shot. found the following way to achive it by adding the skin in the web.config.
<appSettings> <add value="Hay" key="Telerik.Skin"/> </appSettings>
I should also want this skin to be changed at runtime, my providing the skin list in a combo and allow the users to change. How to go about it.
Jidesh

If Not radCombo1.SelectedItem Is Nothing Then radCombo1.CssClass = "RadComboBox_Black:hover"Else radCombo1.CssClass = "RadComboBox_Black"End If
<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server"
Height="21px" Width="166px" ShowButton="True" ButtonCssClass="style1"
Mask="####" SelectionOnFocus="SelectAll"
ClientEvents-OnButtonClick="TestLoad" >
</telerik:RadMaskedTextBox>
I have written Javascript fucntion 'TestLoad' and it is working fine.
But when the button is clicked i want to execute Server Event(As like Normal Button Click Event)
COuld you please help me
Regards
Kumar
RadDock RadDock1 = new RadDock(); RadAjaxPanel AjPanel = new RadAjaxPanel(); RadDock RadDock2 = new RadDock(); RadAjaxPanel AjPanel2 = new RadAjaxPanel(); protected void Page_Init(object sender, EventArgs e) { Session["ExpandCtrlID"] = null; AjPanel.RenderMode = UpdatePanelRenderMode.Inline; RadDock1.ID = "RadDock1"; DockExpandCollapseCommand ex1 = new DockExpandCollapseCommand(); RadDock1.Commands.Add(ex1); RadDock1.Collapsed = true; RadDock1.Command += new DockCommandEventHandler(RadDock1_Command); RadDock1.ContentContainer.Controls.Add(AjPanel); RadDock1.CommandsAutoPostBack = true; RadDock1.OnClientCommand = "DockOnClientCommand"; RadDockZone1.Controls.Add(RadDock1); AjPanel2.RenderMode = UpdatePanelRenderMode.Inline; RadDock2.ID = "RadDock2"; RadDock2.Commands.Add(new DockExpandCollapseCommand()); RadDock2.Collapsed = true; RadDock2.Command += new DockCommandEventHandler(RadDock2_Command); RadDock2.ContentContainer.Controls.Add(AjPanel2); RadDock2.CommandsAutoPostBack = true; RadDock2.OnClientCommand = "DockOnClientCommand"; RadDockZone1.Controls.Add(RadDock2); } void RadDock2_Command(object sender, DockCommandEventArgs e) { string controlID = RadDock2.ClientID; LoadUserControlInDock(controlID); } void RadDock1_Command(object sender, DockCommandEventArgs e) { string controlID = RadDock1.ClientID; LoadUserControlInDock(controlID); } protected void Page_Load(object sender, EventArgs e) { Label1.Text = ""; if (Page.IsPostBack) { if (ScriptManager1.IsInAsyncPostBack) { //RadDock dock; //dock = sender as RadDock; //string id = dock.ClientID.ToString(); LoadUserControlInDock(id); Label1.Text = "Asynchronous"; } else { Label1.Text = "Not Asynchronous"; } } RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadDock1, AjPanel); } protected void LoadUserControlInDock(string contID) { Control c1 = new Control(); c1 = this.LoadControl("WebUserControl.ascx"); switch (contID) { case "RadDock1": AjPanel.Controls.Clear(); AjPanel.Controls.Add(c1); Test.Value = "Loaded"; break; case "RadDock2": AjPanel2.Controls.Clear(); AjPanel2.Controls.Add(c1); Test.Value = "Loaded"; break; } }