Get data from embedded page

Greetings!

I have a page (CadastroPedido) with an embedded page (Cards) inside it:



The page Cards has a Grid with products and each row has a Numeric input and a button:


I want to insert a value in those inputs and, when pressing the button, pass the value to the page CadastroPedido.

When I open the Cards module inside the CadastroPedido, the functions only are executed inside the Cards page. 

How can I make it work in the CadastroPedido page and get the data from Cards?

Is there any sample with asimilar structure?


Attachment: CadastroPedido_Cards_f1bf0682.zip

3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team March 10, 2022 03:58 PM UTC

Hi Consensu, 
 
Greetings from Syncfusion support. 
 
We have assigned the rowdata value to a Parameter(RowDataValue) in Cards and used this Parameter to fetch the rowdata in CadastroPedido. We have prepared a sample based on this requirement, please download and refer the sample from the link below, 
 
Please refer and use the codes below, 
 
 
[Cards.razor] 
 
    [Parameter] 
    public Order RowDataValue {get;set;} 
 
    public void CommandClickHandler(CommandClickEventArgs<Order> args) 
    { 
        RowDataValue = args.RowData; 
        Console.WriteLine(args.RowData.OrderID); 
    } 
 
[CadastroPedido.razor] 
 
    private void GetDataFromCards() 
    { 
        //fetch rowdata from RowDataValue parameter 
       retorno = CardsData.RowDataValue.OrderID; 
        Console.WriteLine(retorno); 
    } 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
Renjith R 


Marked as answer

ED Eduardo March 11, 2022 07:49 PM UTC

Thank you very much!



RS Renjith Singh Rajendran Syncfusion Team March 14, 2022 05:00 AM UTC

Hi Consensu, 
 
Thanks for your update. Please get back to us if you need further assistance. 
 
Regards, 
Renjith R 


Loader.
Up arrow icon