I have a master webDataGrid which on row change needs to update a child webDataGrids entityDataSource. I am attempting to do this with a where parameter, but receive the following error - how can I achieve this?
EntityDataSource Where
<WhereParameters> <asp:ControlParameter ControlID="uxParentGrid" Type="Int32" Name="ParentId" PropertyName="SelectedValue" /> </WhereParameters>
ERROR
DataBinding: 'Infragistics.Web.UI.GridControls.WebDataGrid' does not contain a property with the name 'SelectedValue'.
Also, how can I run custom server side logic on add and delete of a child grid record? I'm expecting there to be some events that fire on server side for this, how do I get this part going?
i.e. I need to perform additional data base work with each insert/delete.
Thanks I've got that part working.
How can I set the child foreign key to the selected parent on adding a new record?
Hello,
I would suggest you to enable Activation behavior in order to save the changes when the focus on the cell is lost. If you want to update the data source immediately after editing, you could try to call the commit() method of the editingCore on ExitedEditMode client-side event:
grid.get_behaviors().get_editingCore().commit();
And to achieve async binding of the details-grid, you could place the two grids in separate UpdatePanels and for the second grid register an AsyncPostBackTrigger with ControlID value the master grid's id and EventName="RowSelectionChanged".
Please let me know if you have any further questions.
Hi Nikolay,
A couple more questions on this one:
Thanks.
I'm glad I could help.
Let me know if you have any further questions.