| foreach (RadTreeNode node in radtree.GetAllNodes()) |
| { |
| int intTest = node.Level; |
| node.Expanded = true; |
| if(intTest <= 3) |
| { |
| node.Enabled = false; |
| node.ForeColor = System.Drawing.Color.Black; |
| } |
| } |

| <colgroup> |
| <col width="25em"/> |
| <col width="5em"/> |
| <col width="5em"/> |
| </colgroup> |
| <colgroup> |
| <col style="width:25em"/> |
| <col style="width:5em"/> |
| <col style="width:5em"/> |
| </colgroup> |
| <colgroup> |
| <col width="25"/> |
| <col width="5"/> |
| <col width="5"/> |
| </colgroup> |

In most of the cases I get a proposed with and height of 35 Pixel although "Constrain proportions" is ticked and the image has a 4 : 3 image proportion.
I then close the Image Manager and reopen it, select the uploaded image and click the "Create thumbnail" icon... and magic: the original width and height of the uploaded image is shown (and the state of "Constrain proportions" was kept).
I then change the width to something smaller than the uploaded image and the height is adjusted correctly. Clicking the "Create" button generates my thumbnail. But if I select now the newly generated thumbnail, the image dimensions displayed are 35 x 35 pixel :( Clicking the "Insert" button adds the new generated image to my html content and ...the dimension are suddenly correct.
I then reopened the Image Manager to generate a thumbnail which was a little bit wider than the one generated in the first round. So I selected the uploaded image (original dimensions correctly displayed, but if I clicked the original image a second time the dimensions always change to 35 x 35 px), ticked "Overwrite if file with such name exists?", changed the width to something larger than for the first generated thumbnail, clicked "Create", selected the new thumbnail and inserted it to my html content... and what I got inserted was the small thumbnail of the first round :(
Only after checking in the publishing page and edit it afterwards again (close the editor) I was able to select the larger thumbnail.
I presume the Image Manager to have two problems:
Are these issues already known?
| function ProcessDateSelection(sender, e) |
| { |
| var DateControl= $find('<%= rdstartDate.ClientID %>'); |
| var EndDateControl= $find('<%= rdEndDate.ClientID %>'); |
| var EventType=getEventType(); |
| if(EventType==-1)//Daily |
| { |
| SetDefaultDate(EndDateControl); |
| var date = DateControl.get_selectedDate(); |
| date.setDate(date.getDate() ); |
| EndDateControl.set_minDate(date); |
| EndDateControl.set_maxDate(date); |
| EndDateControl.set_selectedDate(date); |
| } |
| if(EventType==0)//Daily |
| { |
| var date = DateControl.get_selectedDate(); |
| date.setDate(date.getDate() +1 ); |
| EndDateControl.set_minDate(date); |
| EndDateControl.set_selectedDate(date); |
| } |
| if(EventType==1)//Weekly |
| { |
| var date = DateControl.get_selectedDate(); |
| date.setDate(date.getDate() +7 ); |
| EndDateControl.set_minDate(date); |
| EndDateControl.set_selectedDate(date); |
| } |
| if(EventType==2)//Monthly |
| { |
| var date = DateControl.get_selectedDate(); |
| date.setMonth(date.getMonth() + 1 ); // Java script Month starts from JAnuary=0 |
| EndDateControl.set_minDate(date); |
| EndDateControl.set_selectedDate(date); |
| } |
| } |
Hi
I'm sorry. My English is bad.
Problem:
I have got WebUserControl with Button (OnClick= javascript with alert("aaa"))
I have got Page with:
1. telerik:RadAjaxManager
2. Button (OnClick = "WebUserControl.Visible = !WebUserControl.Visible")
3. WebUserControl
A. If initial WebUserControl.Visible=false, then after Page.Button.Click
WebUserControl.Button appear and if WebUserControl.Button.Click appear error.
B. If initial WebUserControl.Visible=true, then OK.
C. If RadAjaxManager.EnableAJAX=false, then OK.
What would you propose then? (A.)
Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Tst_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="Controls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="WUC" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<Controls:WebUserControl ID="WUC" runat="server" Visible="false" />
</form>
</body>
</html>
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Tst_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
WUC.Visible = !WUC.Visible;
}
}
Control:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="Tst_WebUserControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script type="text/javascript" language="javascript" >
function bt_Click(){alert("aaa");}
</script>
<input id="Button1" type="button" value="button" OnClick="bt_Click()"/>