Hi,
when I load a grid layout with LoadFromXml(), and the layout contains a column with a ValueList, the dropdown list does not appear.
You see the down-arrow button of the combobox in the cell, but there are no items.
I have to manually set the ValueList property for the column again to see the values of the list.
This also happens when using a BindableValueList.
Is this a bug or did I do anything wrong?
Thanks for your help.
HI,
I have tested the described by you and as Michal Saltzman mentioned that may be you are loading an existing saved layout where the grid’s value list is not saved. Please check the sample I have attached:
1. Press “load data” – there must appear the lists for each cell
2. Press “save”
3. Rerun the application
4. Press “load” – the value list should be loaded
As your sample is not very clear for me, If you tell me what exactly you are trying to achieve I will be glad to help you.
Regards,
Stefaniya
sorry, I forgot one step:
Please click the "Save Layout" button after loading the standard layout (in step 3).
Then the test.xml file is loaded when re-running the project, and the ValueList is not assigned to the column.
I ran your sample and I do not get the results you describe. You are correct in that the ValueListItems should be appearing in the grid after Step 5, and when I run your sample, they do show up just fine for me.
I don't see how they could possibly not be showing up simply from stopping and re-running the project. Since the "test.xml" file does not exist, it never gets loaded and therefore nothing has changed. My guess is that you have a test.xml file on your machine that you saved at some point when the ValueList was not assigned to the column and so when you run the sample, it's loading that layout and removing the ValueList.
you are right, your sample works.
Please have a look at my modified sample and test these steps:
What I don't understand is: Why do I have to set the ValueList property of the column again in this case, even it I have set it via the Designer? Is the InitializeLayout() method wrong for this? Maybe the property hasn't been set at this point.
Let me know if you will need any further help.