Hi
I have what i think is a very simple task but i just cant seem to get it workin.
I have a product list and each product is part of a category. When I display the products in the WebGrid I have successfully managed to implement a converter on the data template so that the category name show up not the categoryID. I looked at your samples online for help here.
The problem arises when I edit the cell using a ComboBox as the data templete. In the combo box I have all the categories listed so when a user double click the cell the combo pops up with the list of categories. I cant seem to work out how to set up the binding on the combox so that the changes are pushed back to the product object in the grid row. In your online samples you bind the combo to the Categories??? I thought it should be bound to the underlying product??
Please advice
Regards
Andrew
This is really baffling me, here is what I have discovered.
1. When the user double clicks the grid it goes into edit mode
2. I am loading the categories into the combo box using the CellEnteredEditMode event handler. This all works fine.
3. As mentioned above I cannot get the seleted item to show in the combo box, it simply opens up blank.
4. I have attached a converter to the combo box which successfully takes the categoryID and returns a category object. The problem I see is that the Converter.Convert method fires before the CellEnteredEditMode event handler, which means that the items do not exist in the combo when the converter fires, thus there is no item in the combo box to assign the Converts functions return object.
5. I dont know how to implement a static resource which sound like it would load the category items up front.
Any ideas??
One of our staff is producing a blog / tech article about how this procedure could be done
http://blogs.infragistics.com/blogs/devin_rader/
This should be out in the next few days.