I have an Ultrawebgrid with a valuelist column (statically loaded with values at Page_Load). When the user selects a value (captured at AfterCellUpdated event), another ValueList is loaded (based on the first valuelist's selected value) and populated for the user to also select.
My problem is that when the grid is loaded, while the second column values are displayed, when clicking on the cells themselves, no valuelist dropdown is shown, because this is not created until the first column dropdownlist is updated.
What I would like to do is to have both value lists loaded and available at page_load, so as to enable editing of the second valuelist without having to change the first column's value first.
Any ideas on how this can be achieved? Which event should I hook this up to?
Hello Nikolay
Thanks for your continuing support. I will be waiting for your update.
Chris
Hello Chris,
I’m still looking into this, but it seems that the dropdown value list is populated before the request to the server is complete. And this is the reason that the first time you enter edit mode of the last column, the value list is empty. You can also see that when entering edit mode of another cell from that column, the values returned from the server are not correct – they are the values for the previous cell that was in edit mode. And this is for the same reason – the ValueList is populated with the values from the previous request, because the current is not complete.
I will update you when I have more information.
I have prepared a small sample for you to test; it is reproducing a couple of issues I am facing, and hopefully you can hep me resolve both. Please see attached a small solution and database.
When you start the application, you can click on the button to load data into the grid. After you do that, if you click on the Work Sub Category column, you can see that no drop down is shown.
Another question I have is, once you update the Work Type column and move the focus to the Work Sub category, the drop down is created and loaded with values, with the first value selected.
My question is that the text appears twice separated by a comma (e.g Preparation For Audit,Preparation For Audit when AUDIT is selected in the Work Type).
Let me know if you have any questions on this example.
Thanks
Hi cloucas,
Chrome and Safari are not supported by our classic controls. However, under Firefox they should be working correctly. Could you please attach your sample, in order to be able to investigate this further?
Nikolay
if it adds any value to the discussion, I have tested the application with the following browsers:
IE 9 (the one I have been testing so far), gives you the result already explained.
Firefox (No menu appears for the subcategory, for all scenaria; it does not work)
Safari (the menu appear momentarily but disappears very fast, so I cannot use it. No dropdown is shown).
Chrome (No dropdown menu appears)
I don't know whether there are any compatibility issues, but FF,Safari and Chrome don't show the dropdown menu at all (even after changing the category field).