Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

WebThumbnailViewer SelectedIndex

Last post 11 Mar 2008, 1:48 PM by Sergey. 2 replies.
Sort Posts: Previous Next
  •  05 Mar 2008, 9:06 AM 13413

    WebThumbnailViewer SelectedIndex

    Hello,

    Couple of questions on WebThumbnailViewer v.6.0.2971

    1. How do SelectedIndex and SelectedIndexes work? It's always '-1' on server, no matter what was selected. 

    2. How can I distinguish between  Click  and Ctrl-Click on thumb on client?

    Thank you, Sergey 

  •  11 Mar 2008, 10:21 AM 13456 in reply to 13413

    Re: WebThumbnailViewer SelectedIndex

    The only time the server side SelectedIndex or SelectedIndexes properties will be changed is on a PostBack.  If you are attempting to access these properties from a RemoteInvoke, please keep in mind that a RemoteInvoke only maintains state on the control from which it was called from.  Every other control on the page (in a RemoteInvoke) will be in the state that it was on Page.Init.

    It is recommended that you pass the SelectedIndexes to the RemoteInvokable function.

    At this time, there is no way to distinguish between a regular click and a ctrl+click on the WebThumbnailViewer control.  What are you trying to do with this, specifically?  There may be another way to accomplish your end task.


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
    Filed under:
  •  11 Mar 2008, 1:48 PM 13463 in reply to 13456

    Re: WebThumbnailViewer SelectedIndex

    Got it with SelectedIndexes, thanks.

    Initially, WebThumbnailViewer it set to dynamically calculate number of columns.
    When thumbnail is selected and Columns==0, I’m initiating a post back, re-building thumbnails in one column and show WebAnnotationViewer. However, I do it in the SelectedIndexChanged event and if user just trying to multiselect thumbs using Ctrl-Click, I don’t know about it and do a postback anyway. It would be very helpful to have ThumbClicked event, so I won’t have to monitor user’s keyboard.

    Thank you, Sergey
View as RSS news feed in XML