Modal inside a Peater

Asked

Viewed 19 times

0

I have a link inside a Repeater that calls a modal to display more details of the list that is being displayed by this Repeater. The problem is that I am not being able to show the modal for each Peater line. I am placing the modal inside the Peater and calling through the Itemdatabound, but it does not show the correct results.

The object is to click on the link displayed by each row and show the modal corresponding to each row.

Link calling the modal:

<a title="Clique para mais detalhes do total de gravações" data-toggle="modal" data-target="#RedolDetailsStatusModal">&nbsp<i class="fas fa-ellipsis-v"></i></a>

Itemdatabound of the Repater:

protected void repeaterTranscriptionProcessType_ItemDataBound(object sender, RepeaterItemEventArgs e)
{    
    DataSet lobjDS = meuDataSet();
    //GridView que está dentro do modal
    Control l_GridViewControl = e.Item.FindControl("grdGrid");
    ((GridView)l_GridViewControl).DataSource = lobjDS;
    ((GridView)l_GridViewControl).DataBind();
}
  • you need to pass some line information to the modal, something like <a valor=<%#Eval("AlgumValor")%>...>

  • I managed to pass using a data-id to pass the information, thank you!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.