RadDockableObjectCommand Close in firefox

4 posts, 0 answers
  1. John Horlock
    John Horlock avatar
    22 posts
    Member since:
    Jun 2007

    Posted 22 Apr 2008 Link to this post

    Hi
    I have dynamic docking zones and objects which work fine in IE, but in firefox i'm encountering an error.

    On my dynamic raddockableObject i'm adding a command and setting it to autopostback = true.
    Its reaching my Javascript on the page which does 

    __doPostBack(

    'onClientClose', '');

    However, the DockableObject_Command does not get triggered in firefox, but it does in IE.

    Please can you point out where there might be a difference.

    I can see other people have had this problem but have been answered in a support ticket - So here i'm repeating what i could have found out already!

    Thanks
    John

  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 23 Apr 2008 Link to this post

    Hello John,

    You can add a command to a dock which makes postback when clicked and set an event handler to the Command event which is fired by clicking any dock's command. In this event handler you can check which command has fired the Command event using its name. Please, find attached a sample page which demonstrates how to achieve this scenario.

    If the attached page cannot help you solve the problem you experience, please, open a support ticket and send us a simple page which demonstrates your scenario and more details about the result you want to achieve and the one you observe. We will be glad to help you.

    All the best,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. John Horlock
    John Horlock avatar
    22 posts
    Member since:
    Jun 2007

    Posted 23 Apr 2008 Link to this post

    Hi

    I have got it narrowed down to  to the DockableObject_Command  which i have now got working in firefox.

    When the code is run in IE - the dockableobject is hidden from view by the following line:
    dock.Closed = True

    However in firefox - the dockableobject does not disappear.
    I have tried dock.visible = false - but i need to capture the fact that the dockableobject has been sent as closed so i may update a Database entry to prevent it from didplaying again.

     

    Protected Sub DockableObject_Command(ByVal sender As Object, ByVal e As EventArgs)

     

    Dim dock As RadDockableObject = DirectCast(sender, RadDockableObject)

    Dim state As DockState = FindState(dock.ID)

    Dim args As RadDockableObjectCommandEventArgs = DirectCast(e, RadDockableObjectCommandEventArgs)

    Select Case args.Command.Name

    Case "Close"

     

    dock.Closed =

    True

     

    Exit Select

     End Select

     

    UpdateState()

     

    End Sub

    I have tried your pagelake demo and this does not work in firefox as well.

    Please let me know how i can resolve these firefox issues

    Thanks
    John  

  4. John Horlock
    John Horlock avatar
    22 posts
    Member since:
    Jun 2007

    Posted 23 Apr 2008 Link to this post

    Hi

    I have found something which i belive fixed my problem

    .RadDockableObjectFixed

    ,

    .RadDockableObjectResizeable

    {

    text-align: left;

    border: 1px solid #080808;

    background-color: #fff;

     display: table !important; /* Mozilla Fix Jan, 4th 2008

    }

    The line: display: table !important; /* Mozilla Fix Jan, 4th 2008  which i have now removed, seemed to be causing the problem of the dockableobjects not disappearing hne closed in firefox.

    Thanks
    John  

Back to Top