Re: Sort image gallery when an image is uploaded

  •  01-28-2010, 7:48 AM

    Re: Sort image gallery when an image is uploaded

    Hi Ken,
    This change does not allow the user to change the order (for example SizeDesc), I just want that after loading an image, are organized by date desc

    Tested with event "File_Upload", and not refresh:

    Sub Uploaded_FileUploaded(ByVal sender As Object, ByVal args As CuteEditor.UploaderEventArgs)
     
    Dim oInsertGallery As CuteEditor.Dialogs.InsertGalleryFrame = CType(Context.CurrentHandler, CuteEditor.Dialogs.InsertGalleryFrame)
     
    Dim oThumbList As CuteEditor.Dialogs.ThumbList = CType(CType(Context.CurrentHandler, Page).FindControl("ThumbList1"), CuteEditor.Dialogs.ThumbList)

    oThumbList.Sort =
    "DateDesc"
    oThumbList.Refresh = True //Not Refresh
     
    End Sub

    Any Idea?
    Thanks!

View Complete Thread