[CLOSED] having LinkButton in Grid Column!

  1. #1

    [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>

    <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>
  2. #2

    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
  3. #3

    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.
  4. #4

    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
  5. #5

    RE: [CLOSED] having LinkButton in Grid Column!

  6. #6

    RE: [CLOSED] having LinkButton in Grid Column!

    Thanks a lot.

Similar Threads

  1. Replies: 1
    Last Post: Nov 24, 2011, 6:48 AM
  2. Replies: 16
    Last Post: Feb 23, 2011, 10:03 AM
  3. Replies: 0
    Last Post: Feb 06, 2011, 4:17 PM
  4. command column messing up grid column
    By wp_joju in forum 1.x Help
    Replies: 2
    Last Post: Dec 08, 2010, 6:40 AM
  5. [CLOSED] LinkButton command column in GridPanel
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 21, 2010, 8:38 PM

Posting Permissions