[CLOSED] having LinkButton in Grid Column!
Hi, </p>
We would like to have a command button in Grid Column but to look like LinkButton
i have checked all type of commands that we can use inside Columns, (not talking about template based comlumn).
all possiblites are a work around ImageCommand, GroupImageCommand, etc..</p>
Code:
<ext:Column ColumnID="Company" Header="Company" Width="160" DataIndex="company"></p>
<Commands></p>
<ext:ImageCommand CommandName="Edit" Icon="NoteEdit" Text="Edit"></p>
<ToolTip Text="Edit" /></p>
</ext:ImageCommand></p>
</Commands> </p>
</ext:Column>
while we would like to have a linkButton that looks like a hyperlink assigned with icon
like the examples of the linkButtons
please advice.
thanks
</p>
RE: [CLOSED] having LinkButton in Grid Column!
Hi,
You can create custom renderer and render hyperlink
Please see the following sample
http://forums.ext.net/showthread.php?postid=33029.aspx
Also can be useful
http://forums.ext.net/showthread.php...9367-16-1.aspx
RE: [CLOSED] having LinkButton in Grid Column!
But that doesn't mean i can assign direct event or listner to the command the same way we do with the imageCommand. I thought we can have some property that update the css or extends the base class of the imageCommand.
building special renderer and create hyperlink means i have to to call a js function to be able to call the DirectMethods and pass parameters to. actually this is the current implementation i had before. but i thought if it's possible to implement this type of buttons in future.
linkbuttons styles are more recommended to use inside girds more than real imposed buttons.
RE: [CLOSED] having LinkButton in Grid Column!
Hi,
Yes, you need to call direct method if you need initiate request to the server. Technically, direct request and direct methods are the same (just direct event automatically generates request on event)
We will add LinkButton implementation to our TODO list, it is not so hard to implement it
RE: [CLOSED] having LinkButton in Grid Column!
RE: [CLOSED] having LinkButton in Grid Column!