Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid link click issue

    I created one ListGrid and in which there is a column(field) as link type. Related field code as below:
    Code:
    attachlinkField.setType(ListGridFieldType.LINK);		    		
    attachlinkField.setAlign(Alignment.CENTER); 
    attachlinkField.setLinkText(Canvas.imgHTML("[SKINIMG]actions/download.png", 18, 18, "attachmentlink", "align=center", null));
    The problem is when i click the link for some documents my browser open it with download dialogue as enclosed picture(this is what i wanted, then you could select open or save.) while for some documents browser default open it within the browser itself(i don't want to this kind of way,how can i avoid not open by browser).

    It would be much appreciated if some one could help me.

    By the way,my browser is IE 8.0.
    Attached Files

    #2
    This is dependent on how someone sets up their system/browser. In general you want the http header to have "Content-Disposition: attachment; filename=<file name.ext>" to force it. Under Explorer->Folder Options->File Types->Advanced->Open Action there is a tick mark for Opening in the same window which is a registry entry for windows, some will be set and some not.

    Comment

    Working...
    X