Finish master-detail

  1. #1

    Finish master-detail

    Good evening,

    I am finishing up master-detail grids and need help , one more time

    1 - The code below is taken from where we were used LinqDataSource. I need to convert for use with SqlDataSource because I'm not getting to filter child records correctly.

    <script runat="server">
        protected void Store2_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            string id = e.Parameters["SupplierID"];
            this.LinqDataSource2.WhereParameters["SupplierID"].DefaultValue = id ?? "-1";
            
            this.Store2.DataBind();
        }
    </script>

    2 - How do I get when inserting a new record, the detail grid receives the primary key of the master grid?

    Thanks
  2. #2
    Sorry, not even using the examples I did.
    Just need to know how to pass the id of master gridpanel to the select statement.

    Where can I find material about ext.net than the example of the site?

    Thanks
  3. #3
    Hello, my master-detail is working and missing some details.
    How to automatically populate the IDMaster field in the Details table?

    When I insert a new record in the detail table will show a popup window that should display the IDMaster from GridMaster.

    Muito Obrigado!

Similar Threads

  1. Replies: 2
    Last Post: Apr 25, 2012, 1:11 PM
  2. Edit master detail with LinqDataSource
    By andrefreitasjr in forum 1.x Help
    Replies: 1
    Last Post: Dec 01, 2011, 8:16 PM
  3. Master/Detail and reusable content
    By clovisrossi in forum Open Discussions
    Replies: 0
    Last Post: May 24, 2010, 2:35 PM
  4. Looking For Master Detail Form example
    By kumarxlnt in forum Examples and Extras
    Replies: 1
    Last Post: Nov 01, 2009, 5:17 PM
  5. Saving data in master detail form
    By anand in forum 1.x Help
    Replies: 1
    Last Post: Sep 18, 2009, 7:47 AM

Posting Permissions