Welcome Guest Search | Active Topics | Sign In | Register

Flyout in Grid Options
EPC DB
Posted: Wednesday, July 14, 2010 9:18:12 AM
Rank: Member
Groups: Member

Joined: 3/4/2008
Posts: 24
I would like used flyout to display large text (or more informations) in grid
displaying differents informations for each item

I have tried this code
<eo:CustomColumn Width="30" DataField="Comments" Name="column_zoom" >
<EditorTemplate>
<asp:ImageButton runat="server" ID="B_View" ImageUrl="../Images/Zoom-in.png"
Style="border: 0px; width: 25px; height: 25px">
</asp:ImageButton>
<eo:Flyout runat="server" ID="Flyout1" For="B_View" ExpandDirection="BottomLeft">
<ContentTemplate>
<div style="border: solid 1px #404040; padding: 5px; width: 400px; color: Black;">
<p style="font-family: Arial; font-size: 22px; line-height: 28px;">
<%#Eval("column_zoom")%>
</p>
</div>
</ContentTemplate>
</eo:Flyout>
</EditorTemplate>
</eo:CustomColumn>

The flyout is display 1 second (empty) then disappair
The same thing with Eval("Comments")

Is it possible and how?

Thanks
eo_support
Posted: Wednesday, July 14, 2010 9:30:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That will not work. EditorTemplate is only rendered once for all grid items. So even if you have multiple grid rows, you will only have one single EditorTemplate thus one single Flyout control.

In order to have a Flyout control for each item, you must use a traditional server side template based control, such as asp:Repeater or asp:DataGrid.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.