Jun 07, 2013, 1:40 PM
[CLOSED] ComponentColumn with more components displayed
Hello
Can you tell me if something like this could work?
What I want to achieve is to have label + image in the cell, and once the image is clicked, I want to get the record
so far, from UI point of view it looks how I need it, there are two problems
a) data are not displayed ( as probably grid tries to set it to the root component)
b) in click handler I do not have access to record object
Let me know if this way is completelly wrong ( other idea is to use the renderer - but even here I have problem how to pass the record to the click event)
Can you tell me if something like this could work?
What I want to achieve is to have label + image in the cell, and once the image is clicked, I want to get the record
so far, from UI point of view it looks how I need it, there are two problems
a) data are not displayed ( as probably grid tries to set it to the root component)
b) in click handler I do not have access to record object
Let me know if this way is completelly wrong ( other idea is to use the renderer - but even here I have problem how to pass the record to the click event)
<ext:ComponentColumn runat="server" DataIndex="DateCreated" Editor="true">
<Component>
<ext:Container runat="server" Layout="hbox">
<Items>
<ext:Label runat="server" Flex="1"></ext:Label>
<ext:Image runat="server" Width="20" ImageUrl="~/image.gif">
<Listeners>
<Click Handler="alert(record)"></Click>
</Listeners>
</ext:Image>
</Items>
</ext:Container>
</Component>
</ext:ComponentColumn>
Last edited by Baidaly; Jun 07, 2013 at 11:08 PM.
Reason: [CLOSED]