<
telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista">
that i dinamically populated non my code behind page in the following way
RadMenu1.DataTextField =
"Name";
RadMenu1.DataFieldID =
"Id";
RadMenu1.DataFieldParentID =
"ParentId";
RadMenu1.DataNavigateUrlField =
"NavigateURL";
RadMenu1.DataSource = GetMenu(Context.User.Identity.Name.ToString());
RadMenu1.DataBind();
Is there a way tu use the asp:SiteMapPath? Or is there a better way?
Thanx a lot for the Help
Raphael
PS: I still use the telerik 2008 Q1
| <body style="height:100%;margin:0px;width:100%;" > |
| <form id="Form1" runat="server" style="height:100%;margin:0px" > |
| <asp:ScriptManager ID="ScriptManager1" runat="server"/> |
| <div style="height:100%;margin:0px;width:100%;" > |
| <telerik:RadTabStrip ID="radTapStripMain" MultiPageID="radMultiPageMain" AutoPostBack="false" Width="100%" runat="server"> |
| <Tabs> |
| <telerik:RadTab Value="tabAdmin" Text="Admin" PageViewID="pvAdmin" Visible="true" runat="server" /> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage id="radMultiPageMain" runat="server" Height="100%" Width="100%"> |
| <telerik:RadPageView id="pvAdmin" runat="server" Visible="true" Height="100%" Width="100%"> |
| <telerik:radsplitter id="splitterLinksIndex" orientation="Vertical" Width="100%" Height="100%" HeightOffset="30" runat="server" > |
| <telerik:radpane id="LeftPane" Width="200" MinWidth="100" MaxWidth="500" runat="server"> |
| <a href="http://www.telerik.com" target="<%= RightPane.ClientID %>">link</a> |
| </telerik:radpane> |
| <telerik:radsplitbar id="RadSplitBar1" collapsemode="Forward" runat="server"/> |
| <telerik:radpane Scrolling="Y" id="RightPane" Width="100%" Height="100%" ContentUrl="http://www.microsoft.com" runat="server"></telerik:radpane> |
| </telerik:radsplitter> |
| </telerik:RadPageView > |
| </telerik:RadMultiPage> |
| </div> |
| </form> |
| </body> |
| Firefox |
| <iframe id="RAD_SPLITTER_PANE_EXT_CONTENT_RightPane" frameborder="0" scrolling="auto" name="RightPane" src="http://www.microsoft.com" style="border: 0px none ; height: 825px; width: 1055px;"> |
| IE6 |
| <IFRAME id=RAD_SPLITTER_PANE_EXT_CONTENT_RightPane style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" name=RightPane src="http://www.microsoft.com" frameBorder=0></IFRAME> |
| function(g,f) |
| { |
| if(f<=0||f==""){ |
| g.style.width="" |
| } |
| else |
| { |
| ** g.style.width=f+"px"; |
| var h=g.offsetWidth-f; |
| var e=f-h; |
| if(e>0) |
| { |
| g.style.width=e+"px" |
| } |
| else |
| { |
| g.style.width="" |
| } |
| } |
| } |
| var datpick1 = <%= datpick1.ClientID %>; |
| var datpick2 = <%= datpick2.ClientID %>; |
| var calendar2 = <%= datpick2.ClientID %>.GetCalendar(); |
| calendar2.SpecialDays.Clear(); |
| calendar2.SetMaxDate(datpick1.GetMaxDate());//datpick1.GetMaxDate() is 10 days greater than datpick2 max date |
| var da = new Date(datpick1.GetMaxDate()); |
| da.setDate(da.getDate()); |
| calendar2.SetDate(da); |
Hello,
I have a problem using custom skinning in RadEditor.
I have tried the solution mentioned in the installation manual delivered with our version (2008.3 1314)
Appearance > Create New Skin
Appearance > DialogsCssFile Property
The editor itself takes the custom skin but the context menu en the <Hyperlink manager> control(s) doesn't.
When I don't use custom skinning the controls are beeing loaded by the Telerik.Web.UI.DialogHandler.aspx but then i have the problem that the resources are not beeing loaded, so i do have the controls but no text.
All the proper .resx files are in the App_globalResources folder.
I have attached 2 screens. The first is an example of the directory structure and the second attachement shows how the linkManager is beeing loaded.
thx.
Gerco

hi!
I upload a file to database using below code...the below code is performed well in aspx page...but I want this in usercontrol that is ascx page...when use this code in ascx control , if i press upload button, can not get uploaded file in for loop(below bolded line)..so , for loop inner statement does not executed..So i cannot insert Image file into database..can anyone help me? thanks
Radupload control
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<telerik:RadUpload ID="FileUpload1" Runat="server"/><br/>
<br />
<asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" /><br />
<br />
<asp:Label ID="lblMessage" runat="server"></asp:Label><br />
btnupload click event
protected void btnUpload_Click(object sender, EventArgs e)
{
foreach (UploadedFile file in FileUpload1.UploadedFiles)
{
byte[] bytes = new byte[file.InputStream.Length];
file.InputStream.Read(bytes, 0, (
int)(file.InputStream.Length));
string strImageName = txtName.Text.ToString();
// Create SQL Connection
SqlConnection con = new SqlConnection();
con.ConnectionString =
ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
// Create SQL Command
SqlCommand cmd = new SqlCommand();
cmd.CommandText =
"Ins_Files";
cmd.CommandType =
CommandType.StoredProcedure;
cmd.Connection = con;
SqlParameter ImageName = new SqlParameter("@ImageName", SqlDbType.VarChar, 50);
ImageName.Value = strImageName.ToString();
cmd.Parameters.Add(ImageName);
SqlParameter UploadedImage = new SqlParameter("@Image", SqlDbType.Image, bytes.Length);
UploadedImage.Value = bytes;
cmd.Parameters.Add(UploadedImage);
con.Open();
int result = cmd.ExecuteNonQuery();
con.Close();
if (result > 0)
lblMessage.Text =
"File Uploaded";
}
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="Panel1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnPostBck" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Width="100%" Height="100%" |
| BorderWidth="1px"> |
| <table id="Table1" cellspacing="0" cellpadding="0" border="0" align="center" class="MainTable"> |
| <tr> |
| <td valign="top"> |
| <table id="Table3" cellspacing="0" cellpadding="2" border="0" width="100%" align="center" |
| class="InnerTable"> |
| <tr> |
| <td colspan="2"> |
| <telerik:RadXmlHttpPanel ID="XmlHttpPanelGrid" runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest"> |
| <table width="100%"> |
| <tr> |
| <td> |
| <asp:GridView ID="dtBook" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="False" |
| BorderStyle="solid" CellPadding="4" DataKeyNames="BookID,writerid,ExerciseVideos" |
| HeaderStyle-CssClass="pagelabel" HorizontalAlign="Left" PageSize="30" RowStyle-Wrap="true" |
| Width="100%"> |
| <HeaderStyle CssClass="pagelabel" /> |
| <RowStyle CssClass="pagelabel" /> |
| <AlternatingRowStyle CssClass="AltPageLabel" /> |
| <SelectedRowStyle BackColor="#FFFFC0" /> |
| <EmptyDataTemplate> |
| <asp:Label ID="lblNoData" runat="server" Style="text-align: center;" ForeColor="red" |
| Text="<%$ Resources:WebResource , Logbook_Norecord%>"></asp:Label></EmptyDataTemplate> |
| <PagerStyle Font-Names="Verdana" HorizontalAlign="Center"></PagerStyle> |
| <Columns> |
| <asp:TemplateField HeaderText="<%$ Resources:WebResource , BookRead_Date%>" SortExpression="Bookdate"> |
| <ItemStyle CssClass="pagelabel" Width="10%" /> |
| <HeaderStyle HorizontalAlign="Left" Width="10%" /> |
| <ItemTemplate> |
| <asp:Label ID="lblDate" runat="server"></asp:Label><br /> |
| <asp:Label ID="lblFor" runat="server" Text="<%$ Resources:WebResource , BookRead_For%>"></asp:Label> |
| <asp:Label ID="lblType" runat="server"></asp:Label> |
| </ItemTemplate> |
| </asp:TemplateField> |
| <asp:TemplateField> |
| <ItemStyle CssClass="pagelabel" Width="10%" /> |
| <HeaderStyle HorizontalAlign="Left" Width="10%" /> |
| <HeaderTemplate> |
| <asp:Label ID="Label2" runat="server" Text="<%$ Resources:WebResource , BookRead_Comments %>"></asp:Label> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <asp:HiddenField ID="hidId" runat="server" Value='<%# Eval("Bookid") %>' /> |
| <table border="0" align="center" width="100%"> |
| <tr> |
| <td> |
| |
| <asp:ImageButton ID="lnkAdd" runat="server" ImageUrl="~/Images/comment1.png" CommandArgument='<%Eval("Bookid") %>' |
| CommandName="UploadVideo" ToolTip="<%$ Resources:WebResource , BookRead_Comments_Add %>" /> |
| </td> |
| <td> |
| |
| <asp:ImageButton ID="lnkView" runat="server" ImageUrl="~/Images/comment3.png" ToolTip="<%$ Resources:WebResource , BookRead_Comments_Read %>"> |
| </asp:ImageButton> |
| </td> |
| </tr> |
| <tr style="display: none;"> |
| <td> |
| </td> |
| <td align="center"> |
| <asp:Label ID="lblCommentCount" runat="server" ForeColor="green"></asp:Label> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </asp:TemplateField> |
| </Columns> |
| <PagerStyle Font-Names="Verdana" HorizontalAlign="Center"></PagerStyle> |
| </asp:GridView> |
| </td> |
| </tr> |
| </table> |
| </telerik:RadXmlHttpPanel> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| <asp:Button ID="btnPostBck" runat="server" Text="Postback" CausesValidation="false" |
| Visible="false" /> |
| </asp:Panel> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="center" |
| EnableSkinTransparency="false" Height="75px" Width="75px" Transparency="25"> |
| <asp:Image ID="Image1" runat="server" ImageUrl="../Images/Loading/loading-spiral.gif"> |
| </asp:Image> |
| <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
| alt="Loading..." style="border: 0;" /> |
| </telerik:RadAjaxLoadingPanel> |
| Protected Sub btnPostBck_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPostBck.Click |
| Response.Redirect("bookread.aspx", False) |
| End Sub |
| Protected Sub btnPostBck_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPostBck.Click |
| Response.Redirect("bookread.aspx", False) |
| End Sub |