I have run into an interesting problem. I have a RadGrid that uses a user control for the edit mode. In the RadGrid some of the information I want to display would be best displayed in a RadGrid. I want to give the user the ability to do CRUD on this grid while in the CRUD of the parent. When I get the display going though (Retrieve) and I try to bind the data from code behind I get the created columns PLUS every column from my data source. Is this a known issue? To put it simply:
Create a RadGrid (RadGrid1) in an .aspx page.
Set the RadGrid1.MasterTableView.EditFormSettings.UserControlName to a user control
In the user control create a RadGrid (RadGrid2)
Set the bindings for the data source for RadGrid2 and what I am seeing is the full data source plus
When you click on edit and RadGrid2 has data then it looks like to me that there is no way to filter the data other than to filter the data source.
Also when I click on Add New Item for the RadGrid2 it affects the buttons being displayed in the RadGrid1. So if I am in update mode in RadGrid1 and I click on Add New for RadGrid2 then the Insert button appears for RadGrid1.
It also looks like the dataItem get's reset in RadGrid2 as well which means I loose my data source object when I click on Add New for RadGrid2.
I know I'm not showing code and that's mainly because there are two radgrids with CRUD operations and the amount of code is some 500 lines per radgrid so I thought it would be a bit excessive. If you need code just let me know and I will mock something up for you.
Create a RadGrid (RadGrid1) in an .aspx page.
Set the RadGrid1.MasterTableView.EditFormSettings.UserControlName to a user control
In the user control create a RadGrid (RadGrid2)
Set the bindings for the data source for RadGrid2 and what I am seeing is the full data source plus
When you click on edit and RadGrid2 has data then it looks like to me that there is no way to filter the data other than to filter the data source.
Also when I click on Add New Item for the RadGrid2 it affects the buttons being displayed in the RadGrid1. So if I am in update mode in RadGrid1 and I click on Add New for RadGrid2 then the Insert button appears for RadGrid1.
It also looks like the dataItem get's reset in RadGrid2 as well which means I loose my data source object when I click on Add New for RadGrid2.
I know I'm not showing code and that's mainly because there are two radgrids with CRUD operations and the amount of code is some 500 lines per radgrid so I thought it would be a bit excessive. If you need code just let me know and I will mock something up for you.