Theoretically, this should be a simple task and clearly I am just missing something.
The Issue:
I have a web data menu, pretty basic, contains data menu items which some in turn contain items of their own. When created in markup all elements in said menu are set to enabled="false". When the usercontrol runs through it's page_prerender phase a sub routine (VB) is called which enables required elements based on a series of situations. When the controls loads all elements are still not enabled (however imageurl clearly changes which is done in code behind), yet if said usercontrol then performs a postback everything works as it should.
Clearly this is a case where the webdatamenu is not updating the css applied to said elements when the enabled property is being changed. I am wondering if there is some kind of event I could call which would update the css for said control.
Basic Info:
This is for an upgrade from the UltraWeb controls to the non-deprecated controls pages are currently using assembly Infragistics4.Web.v10.3 with this upgrade being with intent to bring ourselves up to date.
Hello Guy,
I have tested this scenario with the latest version using both a WebDataMenu in a usercontrol and a regular form and so far enabling the nodes on PreRender in both cases seems to refresh the styles as needed. Attached is my test sample for your reference. Please feel free to modify it in order to illustrate the behavior and allow me to look into this further.
So Could this be that we are seeing this issue because we are currently stuck on an older version (v10.3)? If so is there a way to at least solve this behavior for now until our upgrade is complete?
We are currently working on upgrading from the deprecated controls in order to upgrade our infragistics version.
I tested this again using the RTM build (1013) for version 10.3 but the issue is still not occurring. Please let me know if another build is used in your scenario to allow me to test the issue with the same conditions. Also it would help to know whether the issue is occurring in a particular browser.
Do not hesitate to contact me with any updates on that matter.
I was unable to run you latest example, something with the webdatamenu being inaccessible in the current context, I did however view the source.
In your example you were accessing items by their index values whereas I was accessing them by their key values, I tried using the index values and still seem unable to get the controls to enable during the page_prerender. I have included with this post my code to set the toolbar (which is a method called by a method called by page_prerender) and the markup I have used to create said toolbar, they are in .txt format purely because the control and associated source code is rather large and contains data which is confidential.
Hey Guy,
Thank you for your patience and the code snippet. I have managed to enable some items during the page_prerender (see the image).
In order to investigate this issue deeply, my suggestion is to make changes to the sample that Peter provider (and it is attached to this reply) and to send it to me with the private case that I've created for you( case number CAS-133408-B2J6C8). You can see your cases by following these steps:
1) Go to http://ko.infragistics.com/ and log in with your account.
2) Select "Support Activity"
3) See the tabs "Active cases" and "Closed/Resolved cases"
Looking forward to hearing from you.
This issue was simply resolved by setting EnableViewState="false"
I have an open ticket with Alan (CAS-133408-B2J6C8) in which I have supplied a working example which reproduces the error. I am currently awaiting his reply.
In general it is possible that an update panel or the elements in which a control is nested in, to cause an updating issue. I have however tested this scenario with Zdravko's sample and so far the issue does not seem to occur under IE11. Please keep in mind that IE11 is supported only for versions 13.1 and later. Attached is also Zdravko's modified sample for your reference. If the setup of the update panel in your scenario is different I would suggest modifying the sample to check if that makes the issue reproducible.
Do not hesitate to contact me with any updates or questions.
Guy,
Thank you for the update. I will watch this thread for when you an example that I can test with.
I am working on putting something together. Will report back when am able