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

add tab from client side after ajaxrequest

1 Answer 35 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 27 Jan 2012, 05:54 PM
Hi there. First, sorry about my english.

We have a project on Visual Studio 2010 and we had implement the demo of the MDI application and works great but when we implement an ajax request to get the url of the window to be open, everything go fine until the tabstrip call the repaint method and because of this, the minimize window doesn't work. The question is How can a fix this situation??



Thanks in Advance

1 Answer, 1 is accepted

Sort by
0
Oscar
Top achievements
Rank 1
answered on 31 Jan 2012, 07:25 PM
Well, I found the problem. Thanks to Telerik Team. My TabStrip is Inside a Div that have the display:none property because this div just show up until the user login into the system and because of this when i call the tabstrip.repaint after the ajaxrequest the tabstrip fails but if i take off the tabstrip it works fine. This really doesn´t solve my problem, I mean, I need to hide the div until the user login into the system. Marin of the Telerik Team gave me a suggestion:

"
If you still want to keep using it that way I can suggest adding a small timeout when calling the repaint() method, so that the browser has had time to recalculate the display of the rest of the elements:
setTimeout(function ()
{
the rest of the functionality of the openNewWindow() function
}, 0);"

So I'm going to test it and tell you later.

Thanks.
Tags
TabStrip
Asked by
Oscar
Top achievements
Rank 1
Answers by
Oscar
Top achievements
Rank 1
Share this question
or