Hello there,
I have a webdatagrid, in which a webdropdown is activated.
I load the webdropdown like this: private void FillIndRoleAttribDropDown(DropDown control, TmpIndRoleAttribute tmpAttr) { List<INDROLE_ATTRIBUTE_TYPE> types = GetRoleAttributeTypes(); control.DataSource = types; control.ValueField = "IR_ATTR_TYPE_CDE"; control.TextField = "DESCR"; control.DataBind(); control.Enabled = (tmpAttr.IR_ATTR_ID < 0); if (!string.IsNullOrEmpty(tmpAttr.IR_ATTR_TYPE_CDE)) control.SelectedItemIndex = types.Select(r => r.IR_ATTR_TYPE_CDE).ToList().IndexOf(tmpAttr.IR_ATTR_TYPE_CDE); else control.Items.Insert(0, new DropDownItem(PrfUIConstants.AdditionalItmes.NotSelected, string.Empty)); }
I shoot this code at the initialize-row event of the grid.
The problem is, I get a strange flickering, when I open this list of this dropdown. I found in the internet the solution, to set the EnableDropDownAsChild Property to false and set the z-index as high as possible.
This might fix the flickering problem, but now I cant open the dropdown, when a value is selected. I tried to set the EnableAutoCompleteFirstMatch Property to false, but this didnt work.
Is there a solution for this?
Matthias
Hello Matthias,
Were you able to reproduce this issue with the sample that I provided? If not, please let me know the details of your project that I mentioned in the previous update. It would help to know what NetAdvantage version and browser you are experiencing this on.
If my sample is not an accurate test of your issue, please feel free to modify it or send me another sample that demonstrates the issue.
Hi Matthias,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have a WebDataGrid set up with a DropDownProvider and I bind data to the DropDownProvider during InitializeRow and set EnableDropDownAsChild to false. When I click to open the DropDown in the Name column, it opens successfully and I do not see any flickering either.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using IE10 with version 13.1.20131.2012 in NetAdvantage for ASP.NET 2013 Volume 1.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.