or
Hello
I have a problem to use the RadComboBox component.
I happen to have three combos where one feeds off the other according to the selected value.
When I select the first, the second is loaded.
When I select the second third is loaded.
But when I select the third combo does not open when I click on it.
For it to work, it is necessary that I give a click outside of it (anywhere on the form) and then click it again to open the content.
This happens in all forms that have a sequence of 3 or more combos.
Would know tell me why? Is there a solution for this?
The aspx code of three combos:
<td style="text-align: left">
<telerik:RadComboBox ID="rddlTipoRegistro" runat="server" Width="120px" RegisterWithScriptManager="true"
AppendDataBoundItems="True" AutoPostBack="True" Culture="pt-BR" MarkFirstMatch="True"
OnSelectedIndexChanged="rddlTipoRegistro_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
<td style="text-align: left">
<telerik:RadComboBox ID="ddlArea" runat="server" Width="220px" AppendDataBoundItems="True"
AutoPostBack="True" OnSelectedIndexChanged="ddlArea_SelectedIndexChanged" Culture="pt-BR"
MarkFirstMatch="True">
</telerik:RadComboBox>
</td>
<td style="text-align: left">
<telerik:RadComboBox ID="ddlCelulaServico" runat="server" Width="200px" AppendDataBoundItems="True"
AutoPostBack="True" OnSelectedIndexChanged="ddlCelulaServico_SelectedIndexChanged"
Culture="pt-BR" MarkFirstMatch="True">
</telerik:RadComboBox>
</td>
And the way they are loaded.
The combo rddlTipoRegistro bears ddlArea combo which in turn loads the combo ddlCelulaServico
and this does not open if you click right then.
TipoRegistroBO tipoRegistroBo = new TipoRegistroBO();
rddlTipoRegistro.Items.Clear();
rddlTipoRegistro.Items.Add(new RadComboBoxItem("Selecione", "0"));
rddlTipoRegistro.DataValueField = "Id";
rddlTipoRegistro.DataTextField = "Descricao";
rddlTipoRegistro.DataSource = tipoRegistroBo.getMany(new TipoRegistroVO());
rddlTipoRegistro.DataBind();
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
ddlArea.DataValueField = "Id";
ddlArea.DataTextField = "Descricao";
ddlArea.DataSource = bo.getAreaPorTipoRegistro(filtro);
ddlArea.DataBind();
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
filtro.Area = new AreaVO(Convert.ToInt32(ddlArea.SelectedValue));
ddlCelulaServico.DataValueField = "Id";
ddlCelulaServico.DataTextField = "Descricao";
ddlCelulaServico.DataSource = bo.getCelulaPorTipoRegistroArea(filtro);
ddlCelulaServico.DataBind();
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]<AdvancedInsertTemplate> <uc1:ScheduleInsertEditor ID="ScheduleInsertEditor1" runat="server" Mode="Insert" Subject='<%# Eval("Subject") %>' Description='<%# Eval("Description") %>' Start='<%# Eval("Start") %>' End='<%# Eval("End") %>' RecurrenceRuleText='<%# Eval("RecurrenceRule") %>' Type='<%# Eval("Type")??0 %>' Users='<%#GetUsers( Eval("Id")==null?0:int.Parse(Eval("AppointmentId").ToString() )) %>' ></uc1:ScheduleInsertEditor> </AdvancedInsertTemplate>protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) { //add the new appointment to the db int? recurrentParentId = null; if (e.Appointment.RecurrenceParentID != null) recurrentParentId = (int)e.Appointment.RecurrenceParentID; AppointmentManager.AddUserAppointment( UserId, int.Parse(e.Appointment.Resources[0].Key.ToString()), e.Appointment.Start, e.Appointment.End, e.Appointment.RecurrenceRule, recurrentParentId, e.Appointment.Description, e.Appointment.Subject);*/ BindBindSchedule(); }<telerik:RadScheduler runat="server" ID="SchToday" DayStartTime="08:00:00" DayEndTime="22:00:00" StartInsertingInAdvancedForm="true" ShowNavigationPane="true" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" DataKeyField="AppointmentId" DataStartField="Start" DataSubjectField="Subject" DataEndField="EndX" FirstDayOfWeek="Monday" ShowHeader="true" ShowFooter="false"> <AdvancedForm Modal="true" /> <DayView UserSelectable="true" /> <WeekView UserSelectable="true" /> <MonthView UserSelectable="true" /> <DayView HeaderDateFormat="ddd dd MMMM yyyy" /> <WeekView HeaderDateFormat="ddd dd MMMM yyyy" /> <TimelineView HeaderDateFormat="ddd dd MMMM yyyy" /> <MonthView HeaderDateFormat="MMMM yyyy" /> <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> <AdvancedInsertTemplate> <uc1:ScheduleInsertEditor ID="ScheduleInsertEditor1" runat="server" Mode="Insert" Subject='<%# Eval("Subject") %>' Description='<%# Eval("Description") %>' Start='<%# Eval("Start") %>' End='<%# Eval("End") %>' RecurrenceRuleText='<%# Eval("RecurrenceRule") %>' Type='<%# Eval("Type")??0 %>' Users='<%#GetUsers( Eval("Id")==null?0:int.Parse(Eval("AppointmentId").ToString() )) %>' ></uc1:ScheduleInsertEditor> </AdvancedInsertTemplate> <AppointmentTemplate> <div> <h2> <%# Eval("Subject") %> </h2> </div> </AppointmentTemplate></telerik:RadScheduler><%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Admin/Main2c.master" AutoEventWireup="true" CodeFile="ListeDocuments.aspx.cs" Inherits="Administration_CMG_ListeDocuments" %><br><br><asp:Content ID="Content1" ContentPlaceHolderID="cphLeft" Runat="Server"><br></asp:Content><br><asp:Content ID="Content2" ContentPlaceHolderID="cphright" Runat="Server"><br><telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7"><br></telerik:RadSkinManager><br><asp:UpdatePanel runat="server"><br><ContentTemplate><br> <telerik:RadFilter ID="rfDocumentations" runat="server" FilterContainerID="rlvDocumentations"><br> <br> </telerik:RadFilter><br> <div class="RegistrationPage"><br> <div class="clear"><br> </div><br> <div class="body"><br> <div class="SectionBody"><br> <table class="TableContainer"><br> <tbody><br> <tr class="Row"><br> <td class="ItemName" ><br> <asp:Button ID="btnAjouter" runat="server" Text="Button" /><br> </td><br> <td class="ItemValue" ><br> </td><br> </tr><br> </tbody><br> </table><br> </div><br> </div><br> </div><br> <telerik:RadGrid ID="rlvDocumentations" runat="server" <br> AllowSorting="true" <br> AutoGenerateColumns="false"<br> AllowPaging="true"<br> AllowFilteringByColumn="true" <br> onneeddatasource="rlvDocumentations_NeedDataSource"><br> <MasterTableView DataKeyNames="PkId"><br> <Columns><br> <telerik:GridDateTimeColumn <br> DataField="PublicationDate" <br> DataType="System.DateTime" <br> HeaderText="Publication Date" <br> UniqueName="PublicationDate" <br> DataFormatString="{0:dd MMM yyyy}"<br> ItemStyle-Width="130px" <br> AllowFiltering="True" <br> AllowSorting="True"><br> </telerik:GridDateTimeColumn><br> <telerik:GridBoundColumn <br> DataField="RaisonSociale" <br> HeaderText="Raison Sociale" <br> SortExpression="RaisonSociale"<br> UniqueName="RaisonSociale" <br> AllowFiltering="True" <br> AllowSorting="True"><br> </telerik:GridBoundColumn><br> <telerik:GridTemplateColumn DataField="Title" <br> HeaderText="Title" <br> UniqueName="Title" <br> AllowFiltering="True"><br> <ItemTemplate><br> <a href="<%#GetRelativeLink(Eval("Slug").ToString()) %>" ><%#Eval("Title").ToString()%></a><br> </ItemTemplate><br> </telerik:GridTemplateColumn><br> </Columns><br><br> </MasterTableView><br> </telerik:RadGrid><br></ContentTemplate><br></asp:UpdatePanel><br></asp:Content>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Web;<br>using System.Web.UI;<br>using System.Web.UI.WebControls;<br>using System.Data;<br>#region Using<br>using Norvatech.BLL;<br>using Norvatech.BusinessEntities;<br>using Norvatech.ResourceSettings.BLL;<br>using Norvatech.ResourceSettings.BusinessEntities;<br>using Norvatech.ResourceSettings.DAL;<br>using Norvatech.Common.IP;<br>using Norvatech.Common;<br>using Norvatech.Common.Caching;<br>using Telerik.Web.UI;<br>#endregion Using<br><br>public partial class Administration_CMG_ListeDocuments : System.Web.UI.Page<br>{<br> protected void Page_Load(object sender, EventArgs e)<br> {<br> if (!Page.IsPostBack)<br> {<br> BindData();<br> string urlBase = Request.AppRelativeCurrentExecutionFilePath;<br> string urlrelative = urlBase.Replace(Request.Url.Segments[Request.Url.Segments.Length - 1], GetRelativeLink(GetLocaleResource("Company.NewCompanyUrl")));<br><br> this.btnAjouter.PostBackUrl = urlrelative;<br><br> }<br><br> }<br> protected void Page_PreInit(object sender, EventArgs e)<br> {<br> if (!Page.IsPostBack && !Page.IsCallback)<br> {<br> if ((Request.QueryString.Get("DocumentGroup") != null) && (Request.QueryString.Get("DocumentGroup").ToString().Trim().Length > 0))<br> {<br> DocumentGroup = Request.QueryString.Get("DocumentGroup").ToString().Trim();<br> }<br><br> }<br> }<br> public string DocumentGroup<br> {<br> get<br> {<br> if (ViewState["DocumentGroup"] != null)<br> {<br> return (string)ViewState["DocumentGroup"];<br> }<br> return null;<br> }<br> set<br> {<br> ViewState["DocumentGroup"] = value;<br> }<br> }<br> public string GetLocaleResource(string resourcename)<br> {<br> string reternedval = resourcename;<br> if (!string.IsNullOrEmpty(resourcename))<br> {<br> GetResources();<br><br> foreach (LocalizedResources lsr in LocalResources)<br> {<br> if (lsr.ResourceName == resourcename)<br> {<br> reternedval = lsr.LocalizationResourceValue;<br> break;<br> }<br> }<br> }<br> return reternedval;<br> }<br> private LocalizedResourceCollection LocalResources<br> {<br> get<br> {<br> if (ViewState["CompanyResources"] != null)<br> {<br> return (LocalizedResourceCollection)ViewState["CompanyResources"];<br> }<br> return null;<br> }<br> set<br> {<br> ViewState["CompanyResources"] = value;<br> }<br> }<br> private DataSet MembersList<br> {<br> get<br> {<br> if (ViewState["MembersList"] != null)<br> {<br> return (DataSet)ViewState["MembersList"];<br> }<br> return null;<br> }<br> set<br> {<br> ViewState["MembersList"] = value;<br> }<br><br> }<br> override protected void OnInit(EventArgs e)<br> {<br> InitializeComponent();<br> base.OnInit(e);<br> }<br> private void InitializeComponent()<br> {<br> GetResources();<br> LocalizeFilter();<br> }<br> private void GetResources()<br> {<br> if ((this.LocalResources == null) || (this.LocalResources.Count == 0))<br> {<br> LocalizedResourceCollection myresources = NSIResourceManager.GetResources(ResourceModules.Documentations, Norvatech.Common.Context.Current.CurrentLanguage.PkId);<br> this.LocalResources = myresources;<br> }<br><br> }<br> private void LocalizeFilter()<br> {<br> foreach (LocalizedResources lsr in LocalResources)<br> {<br> if (lsr.ResourceName == "GridFilter.AddExpressionToolTip") this.rfDocumentations.AddExpressionToolTip = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.AddGroupToolTip") this.rfDocumentations.AddGroupToolTip = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.ApplyButtonText") this.rfDocumentations.ApplyButtonText = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.Between") this.rfDocumentations.Localization.FilterFunctionBetween = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.BetweenDelimeterText") this.rfDocumentations.BetweenDelimeterText = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.Contains") this.rfDocumentations.Localization.FilterFunctionContains = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.DoesNotContain") this.rfDocumentations.Localization.FilterFunctionDoesNotContain = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.EndsWith") this.rfDocumentations.Localization.FilterFunctionEndsWith = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GreaterThan") this.rfDocumentations.Localization.FilterFunctionGreaterThan = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GreaterThanOrEqualTo") this.rfDocumentations.Localization.FilterFunctionGreaterThanOrEqualTo = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GroupOperationAnd") this.rfDocumentations.Localization.GroupOperationAnd = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GroupOperationNotAnd") this.rfDocumentations.Localization.GroupOperationNotAnd = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GroupOperationNotOr") this.rfDocumentations.Localization.GroupOperationNotOr = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.GroupOperationOr") this.rfDocumentations.Localization.GroupOperationOr = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.IsEmpty") this.rfDocumentations.Localization.FilterFunctionIsEmpty = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.IsNull") this.rfDocumentations.Localization.FilterFunctionIsNull = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.LessThan") this.rfDocumentations.Localization.FilterFunctionLessThan = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.LessThanOrEqualTo") this.rfDocumentations.Localization.FilterFunctionLessThanOrEqualTo = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.NotBetween") this.rfDocumentations.Localization.FilterFunctionNotBetween = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.NotEqualTo") this.rfDocumentations.Localization.FilterFunctionNotEqualTo = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.EqualTo") this.rfDocumentations.Localization.FilterFunctionEqualTo = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.NotIsEmpty") this.rfDocumentations.Localization.FilterFunctionNotIsEmpty = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.NotIsNull") this.rfDocumentations.Localization.FilterFunctionNotIsNull = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.RemoveToolTip") this.rfDocumentations.RemoveToolTip = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.StartsWith") this.rfDocumentations.Localization.FilterFunctionStartsWith = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "GridFilter.ToolTip") this.rfDocumentations.ToolTip = lsr.LocalizationResourceValue;<br> //if (lsr.ResourceName == "Filter.Usethistofilter") lbfilter.Text = lsr.LocalizationResourceValue;<br> if (lsr.ResourceName == "Button.btnAdd") this.btnAjouter.Text = lsr.LocalizationResourceValue;<br><br><br> }<br> }<br> public string GetRelativeLink(string slug)<br> {<br> return string.Concat("Ed/0101-", slug.Trim(), ".aspx");<br> }<br> public string FormatDate(DateTime date)<br> {<br> return string.Format("{0:dd MMM yyyy}", date);<br> }<br> private void BindData()<br> {<br> if (DocumentGroup != null)<br> MembersList = DocumentationsManager.GetDocumentationAllSet(Norvatech.Common.Context.Current.CurrentLanguage.PkId, DocumentGroup);<br><br> if (MembersList != null)<br> {<br> rlvDocumentations.DataSource = MembersList;<br> rlvDocumentations.DataBind();<br> }<br> else<br> this.Visible = false;<br> }<br> protected void rfDocumentations_FieldEditorCreated(object sender, RadFilterFieldEditorCreatedEventArgs e)<br> {<br> if (e.Editor.FieldName == "RaisonSociale") e.Editor.DisplayName = GetLocaleResource("Documentations.RaisonSociale");<br> if (e.Editor.FieldName == "Title") e.Editor.DisplayName = GetLocaleResource("Documentations.Title");<br> if (e.Editor.FieldName == "PublicationDate") e.Editor.DisplayName = GetLocaleResource("Documentations.PublicationDate");<br><br> }<br> protected void rlvDocumentations_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)<br> {<br> rlvDocumentations.DataSource = MembersList;<br><br> }<br>}<?xml version="1.0" encoding="utf-8" ?><br><ListInfo><br> <itemInfo><br> <RaisonSociale>SEMAFO GUINÉE SA.</RaisonSociale><br> <PkId>1348D2D2-9E27-4750-80B3-7A54799A0819</PkId><br> <CompanyID>46FF86E4-84FF-4504-A0B8-39D02523DFB2</CompanyID><br> <PublicationDate>2010-12-17 16:20:45</PublicationDate><br> <Auteur>Cherif Diallo</Auteur><br> <Title>Formulaire d'enregistrement d'entreprise</Title><br> <Slug>formulaire-d-enregistrement-d-entreprise</Slug><br> <Visible>1</Visible><br> <GroupTitle>Formulaires</GroupTitle><br> </itemInfo><br></ListInfo><br>