This is a migrated thread and some comments may be shown as answers.

RadDockableObjectCommand Close in firefox

3 Answers 77 Views
Dock
This is a migrated thread and some comments may be shown as answers.
John Horlock
Top achievements
Rank 1
John Horlock asked on 22 Apr 2008, 03:49 PM
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

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 23 Apr 2008, 08:46 AM
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
0
John Horlock
Top achievements
Rank 1
answered on 23 Apr 2008, 11:10 AM
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  

0
John Horlock
Top achievements
Rank 1
answered on 23 Apr 2008, 11:33 AM
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  

Tags
Dock
Asked by
John Horlock
Top achievements
Rank 1
Answers by
Sophy
Telerik team
John Horlock
Top achievements
Rank 1
Share this question
or