I'm currently looking into using a grid with Batch Editing and custom EditItemTemplates. I'm running into a wall because I need the custom template for editing to render differently depending on the values in the DataItem object for the row that is being edited.
I've created an example that is attached, and will describe it to hopefully outline what I'm trying to do.
In a database that contains people, some people are under organizations, and within those organizations are different bosses. I've created a dictionary that contains the list of bosses for 2 organizations with Id's 0 and 1. The grid shows a list of people, and if you go to edit the boss selection for any given person I'm trying to have the drop down list display different items in the list depending on the organization id for that person.
Because the DataBinding event does not fire for custom templates that are used on the EditItemTemplate property of a TemplateColumn I'm at a loss on how to do this. I've thought of creating a new class that inherits the Control class, then overriding the Render() function in hopes that I may be able to access the DataItem through the parent hierarchy but my knowledge of the RadGrid structure isn't enough to figure this out.
Here is a simple example of my code. I've made comments in the InstantiateIn function with what I'm trying to do.
Any help would be greatly appreciated and thanks in advance.