I am attempting to swap the use of a WebPanel for the recommended ExplorerBar (and swapped the WebNumericEdit for the WebNumericEditor). However, the controls that I have inside the explorerbar are not showing. I am using a couple of WebGroupBoxes within the explorerbar, and have 6 labels and textboxes in one, and 5 lables, and dropdowns in the other. Unfortunately, the contents of the webgroupboxes seem to have disappeared, event though they are specified in the html.
In the attached document i have included 1. my original markup (using the WebPanel), 2. my original attempt to swap the WebPanel with the WebExplorerBar (with controls missing within the WebGroupBoxes);
I need to access and update these control (the WebNumericEditor and DropDownLists) both in javascript and on the server side.
How do I get this working. Ultimately, I need to use the ExplorerBar as it allows me to collapse the group, and I would like to use the WebGroupBoxes within the ExplorerBar, as it is visually nicer than having to redo this another way.
Hello lorettac242,
I am currently looking into this issue of using the template of the WebExplorerBar and having the controls disappear. Will continue to look into this matter and I will provide you with a progress update by Thursday.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for your patience. Using the markup you provided I have been unable to reproduce this issue. I have attached my sample to demonstrate this behavior. Please note I removed the ig_res folder due to size restrictions of uploading files to the forums. Can you please tell me more about your setup? What version of NetAdvantage are you using? What browser are you viewing this in?
Hello Lorettac242,
Thank you for your patience. To access the controls in the WebGroupBox you should first get the group box then search the controls on the group box. For example to get a dropdown on the second group box your code would look something like the following:
Dim groupBox1 As WebGroupBox = CType(webAdvancedOptions.Groups(0).Items(0).FindControl("wgbTargets"),WebGroupBox) Dim dropdown1 As DropDownList = CType(groupBox1.FindControl("uxYear1"),DropDownList)
I have also attached a sample that demonstrates this on button click.
Please let me know if you have any questions concerning this matter.
Thank you for the update. I will look further into this matter and will provide you with a progress update by Tuesday.
Hi Mike,
Thank you for having a look at this for me. I had realised that I was trying to view the controls the wrong way. Once I stopped using the WebExplorerDesigner, and just used the Edit Template and Edit Template Collection, I was able to see the items.
Unfortunately, I am still not able to work out how to update them in code-behind (Visual Basic). I am using version Version=11.2.20112.2086.
I need to dynamically load the uxYear1 - uxYear6 dropdowns, and none of the following seems to work. I have tried to access the controls using the following code:
Dim
dropdown1 As DropDownList = webAdvancedOptions.Groups(0).FindControl("uxYear1")
and
Dim template As ItemTemplate = webAdvancedOptions.FindTemplateById("ebtAdvancedOptions")
Dim dropdown1 As DropDownList = template.FindControl("uxYear1")
and:
dropdown1 As Control = template.FindControl("uxYear1")
While some of the above will compile, I then get errors when I attempt to add items:
For i As Integer = Today.Year To 1957 Step -1
dropdown1.Items.Add(i)
Next
and when I attempt to set a default value
dropdown1.Text = Today.Year - 1
I am having similiar issues when trying to access the webnumericeditor controls.
Also, in addition to dynamically loading values for these controls, I also need to be able to set the selected value of the dropdowns at the client end (using javascript).