Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
I have tried to show a windows from a webusercontrol that was loaded dynamic but it dosen't work. i tried too, to use the ClientScriptManager but without results.
is it posible tod that?

TA
Svetlina Anati
Telerik team
 answered on 10 Oct 2008
3 answers
177 views

Hi,

I am using RAD editor for MOSS trial version, I want to add the external css into the ApplyClasses dropdown i used all the ways given in website.It wont take effect even it cant clear the classes in the dropdown by using the clear function.

Method 1 : Mossraditor1.CssFiles.add("/web/mystyle.css");

Method 2: <radE:MOSSradEditor id="Mossraditor1" configfile="config.xml">
                    <CssFiles>
                    <radE:EditorCssFile value="/web/mystyle.css">
                    </CssFiles>
                 </radE:MOSSradEditor >
Method 3: For clear
            
                 Mossraditor1.CssFiles.clear();


The above three method didnt work properly any body give the idea to work on this.
              
Lini
Telerik team
 answered on 10 Oct 2008
1 answer
97 views
 i am trying to create multiple RadDocks at a time But only one RadDock is displayed on the screen and the rest of them are created but does not show up. When postback occurs they show but at the header of the page but not in the RAdDockzones.
and the RadDock width appears 100% of the window.

protected void CreateDynamicDock()
{

RadDockZone1.Docks.Clear();
RadDockZone2.Docks.Clear();

 

STDocksMasterRoot sTDocksMasterRootObj = new STDocksMasterRoot(); STDocksMasterCollection sTDocksMasterCollectionObj=sTDocksMasterRootObj.GetAllDocksName();
string _zone;
foreach (STDocksMaster dockName in sTDocksMasterCollectionObj)
{
RadDock dock = CreateRadDock(); UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
if (ViewState["i"] == null)
{
ViewState["i"] = 1;
_zone = "RadDockZone1" 
}
else
{
ViewState.Remove("i");
_zone = "RadDockZone2";
}

 

 

 

ScriptManager.RegisterStartupScript(
UpdatePanel1,
typeof(RadDock),
"DockIntoZone" + dock.ClientID,
string.Format(@"function _addDock() {{
Sys.Application.remove_load(_addDock);
$find('{1}').dock($find('{0}'));
$find('{0}').doPostBack('DockPositionChanged');}};
Sys.Application.add_load(_addDock);"
, dock.ClientID, _zone),
true);

CreateSaveStateTrigger(dock);
LoadWidget(dock);
}
}

 

 

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 10 Oct 2008
1 answer
97 views

Hi,

I am trying to place Images on the RadTab,But I want to change the Images based on Events.

I.e. I want to change the Images when ever Focus Lost/On Mouse Move events.

Please Guide me with an example , how to implement this.

Paul
Telerik team
 answered on 10 Oct 2008
1 answer
120 views
I would like to set the height of a dock control depending of the RadEditor Content height inside the dock.

In the RadEditor i have set the AutoResizeHeight on true. So it grows depending of the content. I would like to set the height of the parent raddock, the same as the height as the Radeditor.

Is it possible to get the resized Height  after the content property of Radeditor is set in Serverside code? Other in is it possible in Client side?

Greetings


 
Svetlina Anati
Telerik team
 answered on 10 Oct 2008
4 answers
203 views

I'm using a modal RadWindow where I load an aspx page.
I saw same posts with similar problems but I didn't find a reasonable solution.

If I put "ReloadOnShow" to False, I only detect one postback on my aspx page (loaded on RadWindow). However, next time I try to open the window, no postback will be fired.
If I put "DestroyonClose" to True, first time works ok, but after I loose all my Radwindow configuration.
If I put "ReloadOnShow" to True, every time I open RadWindow I detect 3 Postbacks.

Is there any way to use RadWindow  with a single postback?

Regards

Svetlina Anati
Telerik team
 answered on 10 Oct 2008
11 answers
674 views
Hi,
I need some help. I am using radwindow in one of my projects. The problem is that I am using client side code to open the window. When I open the window, it works fine first time but when i close the window and open again, it doesn't open and gives a javascript error instead. The error is "Object doesn't support this property or method". Upon further verification and trying to make code work i found out that if I remove oWnd.add_close(OnClientClose); from window open function it works well. I don't want to do this as I am using ajax request to postback. Here is the code;

aspx page

<script type="text/javascript">

function openWin(args,width,height)

{

var oWnd = radopen(args, "RadWindow1");

oWnd.setSize(width,height);

oWnd.center();

oWnd.add_close(OnClientClose); //If I remove this then code works.

}

function OnClientClose(sender, eventArgs)

{

$find(

"<%= RadAjaxPanel1.ClientID %>").ajaxRequest("Rebind");

}

function realPostBack(eventTarget, eventArgument)

{

$find(

"<%= RadAjaxPanel1.ClientID %>").__doPostBack(eventTarget, eventArgument);

}

</script>

<

asp:Button ID="addBTN" runat="server" Text="Add Visa Details" />

in code behind

addBTN.Attributes.Add(

"onclick", "return openWin('" + Page.ResolveUrl("~/Controls/visaForm.aspx?n=n") + "', '800', '600'); return false;");


Can some one please help me as I am not very good with javascript.

Thanks
Atiq

Svetlina Anati
Telerik team
 answered on 10 Oct 2008
1 answer
80 views
Hi,

Could you help me to build one panelbar that expand the items outside in another panel like demo.telerik. When you click over the Item the panel is open not inside extended but outside extended over the initial in new div or other panel. I have tried from demo but not clear how to.

Thanks. 

Paul
Telerik team
 answered on 10 Oct 2008
6 answers
223 views
Hello!

I open radeditor with default settings from your online demo. 
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx
There are logo image on top ofthe page.

Original img html:
<img alt="product logo" src="../../Img/productLogoLight.gif" originalAttribute="src" originalPath="../../Img/productLogoLight.gif" />

Then i resize it and open html. Code is changed corectly:
<img width="295" height="98" alt="product logo" src="../../Img/productLogoLight.gif" originalAttribute="src" originalPath="../../Img/productLogoLight.gif" />

But if you try to resize it once more, you can see wrong html code:
<img width="295" height="98" style="width: 344px; height: 122px" alt="product logo" src="../../Img/productLogoLight.gif" originalAttribute="src" originalPath="../../Img/productLogoLight.gif" />

All next resizings will change style atribbute only!

It's very important for me to have correct values in attributes width and height.
Laurie
Top achievements
Rank 2
 answered on 10 Oct 2008
1 answer
82 views
Hi All,

I am using RadScheduler.

1>I want to show appointment as linkbutton and onClientclick of link button open the window to show the details of appointment.


2>Can i heighlight the appointment while drag drop the appointment.


Thanks.
Peter
Telerik team
 answered on 10 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?