Hi all
i have defined a repeater inside a webpanel and a warp (Repeater -> Web Panel -> Warp) . Everything work fine until I change the values of the web controls inside the repeaters. For example, I have defined a Textbox inside the repeater (named as tbxValue) and a dropdownlist (named as ddlOperator) and if I change the value of the textbox or change the item of the dorpdownlis then, the new value is not reflected. you can see below how I find the control inside the repeater:
ddlRptValue = mandatoryRepeaterItem.FindControl("ddlValue") as DropDownList; tbRptReportParamId = mandatoryRepeaterItem.FindControl("tbReportParamId") as TextBox; tbRptParamName = mandatoryRepeaterItem.FindControl("tbName") as TextBox; ddlRptOperator = mandatoryRepeaterItem.FindControl("ddlOperator") as DropDownList; tbRptValue = mandatoryRepeaterItem.FindControl("tbxValue") as TextBox;
this work perfect, but the original values remains in tbRptValue.Text and in ddlRptOperator.Text or ddlRptOperator.SelectedItem.Text.
the warp is triggered by another webcontrol outside the warp. The webcontrol inside the warp are doing postback as well, but I am not regenerating them in order to maintaing the new value that I specify.
Is this a bug???? Please let me know, I am really stock with this and I need that ASAP. The version of infragistic that I am using is 7.3.20073.1043
Hi Craig
I do apologize all. I did not realize that I was replacing the repeaters with the session variables in another class for testing purposes and this is why I was always getting the same values. The application is working nicely as I expected. Please omit this case.
And thanks again Craig for replying me.
Thanks for replying me. Yes, basecally I added a validation to avoid the regeneraton or databinding of the repeaters in the contentRefresh event of the warp. Below you can see the code where I execute the databind of the repeaters only if the control "__REPORT_ACTION.Text" is equal to 2. The repeaters are populated in the functions "populateMandatoryParameters()" and "populateOptionalParameters"
setCookieContainer(); if (this.__REPORT_ACTION.Text.Trim().Equals("2")) { DataSet selectedReportDs = ansReportWs.getReportsDsByReportId(Convert.ToInt32(this.tbSelectedReport.Text.Trim()), ref aMessage); Session["AnsReportWsSession"] = ansReportWs.CookieContainer; if (selectedReportDs == null) { this.tbAlertMessage.Text = aMessage; /*cleanReportDetails(); disableReportDetails()*/ return; } this.tbReportDesc.Text = selectedReportDs.Tables[0].Rows[0]["REPORT_DESC"].ToString(); populateReportDestination(Convert.ToInt32(this.tbSelectedReport.Text.Trim())); populateMandatoryParameters(Convert.ToInt32(this.tbSelectedReport.Text.Trim())); populateOptionalParameters(Convert.ToInt32(this.tbSelectedReport.Text.Trim())); Session["MandatoryRepeater"] = this.rptMandatory; Session["OptionalRepeater"] = this.rptOptional; this.__REPORT_ACTION.Text = "0"; }
When are you doing your databinding? Are you sure the values aren't being rebound to the control when you call back to the server?
Craig