I setup a basic masterpage and added a RadFormDecorator with decoratedcontrols="all". I then create a new webform from the masterpage and run the web project but labels are not styled. Other web controls are styled.
What am I missing? here is the simple master page:
You can notice the label within (<div id="header"> ) is not styled.
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> html, body { height: 100%; } #container { min-height: 100%; margin-bottom: -20px; position: relative; } #footer { height: 20px; position: relative; } .clearfooter { height: 20px; clear: both; } </style> </head> <body leftmargin="0" topmargin="0"> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" Skin="Office2010Black" /> <div id="container"> <form runat="server" id="frmMasterPage"> <telerik:RadScriptManager ID="rsmMasterPage" runat="server"> </telerik:RadScriptManager> <div id="header"><asp:Label runat="server" ID="lblHeader" Text="This is the header"></asp:Label></div> <div id="nav"> <telerik:RadMenu ID="RadMenu1" runat="server"> <Items> <telerik:RadMenuItem runat="server" Text="Reporting"> </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="Maintenance"> </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="Administration"> </telerik:RadMenuItem> </Items> </telerik:RadMenu> </div> <div id="content"><asp:ContentPlaceHolder ID="cphContent" runat="server"></asp:ContentPlaceHolder></div> <div class="clearfooter"> </div> </form> </div> </body> </html><telerik:RadWindowManager ID="RadWindowManager1" runat="server" Overlay="true"> <Windows> <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" Behavior="None" VisibleOnPageLoad="false" Behaviors="Close" Modal="true" Width="490" Height="565" DestroyOnClose="true" VisibleStatusbar="false" KeepInScreenBounds="true" > <ContentTemplate> ... <script type="text/javascript"> try { Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; } } catch (e) { } </script> <telerik:RadAsyncUpload ID="fuDocument" runat="server" MaxFileInputsCount="1" ReadOnlyFileInputs="true" OnClientFileUploaded="triggerRefresh" OnClientFileUploadRemoving="triggerCancel" MaxFileSize="4194304" OnClientFileSelected="triggerSelected" OnClientValidationFailed="fileValidationFailed" Localization-Select=""> </telerik:RadAsyncUpload>... </ContentTemplate> </telerik:RadWindow>Hi All
Strange one this, if you goto www.weddingdazedirectory.co.uk I'll do my best to explain.
The left hand menu is a user control in a Masterpage
If you make a selection form the left hand menu, the page posts back, but nothing happens.
Now select Advice - Advertorials (I know some in=mages are missing) and make a selection from the left hand menu, you get some results.
Now go back to the home page and make a selection, it now works!
Does anyone have any idea as to what is going on?
Protected Sub CategoryTree() 'CategoryList Dim cl As New CoreData Dim cl_ds As Data.DataTable = cl.CategoryByCounty(0) With mnuCategory .Items.Clear() .DataSource = cl_ds .DataFieldID = "Category_ID" .DataFieldParentID = "ParentCategory_ID" .DataTextField = "Category" .DataValueField = "Category_ID" '.DataNavigateUrlField = "Link" .DataBind() End WithEnd SubProtected Sub mnuCategory_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles mnuCategory.ItemClick Dim Category_ID As Int32 = e.Item.Value Page.Response.Redirect("~/Display/County.aspx?Cat=" & Category_ID)End SubHi,
In my ASP .NET application I use a tabpanel to let the user open
multiple subject from a quickbar, like browser tabs but then inside my
application. The content of the subjects is dynamically created
server-side. To remain the viewstate of inactive tabpages
I need to rebuild the content of the inactive tabpages every request
again. When the user opens more subject very request to the server will
take longer and longer because of this.
I'm looking for an advanced solution to save the viewstate of inactive tabpages over multiple requests on the active tabpage. When an inactive tabpage becomes active again I want to put the saved viewstate of this tabpage back in the viewstate of the whole page. This can give my application a performance boost when I do not need to rebuild every inactive tabpage on every request to the server.
I have red a lot about the ASP viewstate but I did not found a
solution for this yet. Any suggestions how I can accomplish this?

Protected Sub btnUpload_Click(sender As Object, e As System.EventArgs) Handles btnUpload.Click BindValidResults() End Sub Protected Sub BindValidResults() If RadUpload1.UploadedFiles.Count > 0 Then For Each file As UploadedFile In RadUpload1.UploadedFiles Dim bytes(file.ContentLength - 1) As Byte file.InputStream.Read(bytes, 0, file.ContentLength) Dim a As New Model a.ModelImageAdd(Model_ID, file.GetName(), bytes, Owner_GUID) Next End If End SubPublic Function ModelImageAdd(ByVal _Model_ID As String, _ImageName As String, ByVal _ImageData As Byte, ByVal _Owner As Guid) As Boolean Try Using sqlConn As New SqlConnection(ConfigurationManager.ConnectionStrings("cnModelDB").ToString) Using sqlCmd As New SqlCommand() With sqlCmd .CommandType = CommandType.StoredProcedure .CommandText = "ModelImageAdd" .Connection = sqlConn .Parameters.Add("@Model_ID", SqlDbType.Int).Value = _Model_ID .Parameters.Add("@ImageName", SqlDbType.VarChar, 75).Value = _ImageName .Parameters.Add("@ImageData", SqlDbType.Binary).Value = _ImageData .Parameters.Add("@Owner", SqlDbType.UniqueIdentifier).Value = _Owner .Parameters.Add("@ReturnValue", SqlDbType.Int).Direction = ParameterDirection.ReturnValue .Connection.Open() .ExecuteScalar() End With If sqlCmd.Parameters("@ReturnValue").Value = 0 Then ModelImageAdd = 1 Else ModelImageAdd = sqlCmd.Parameters("@ReturnValue").Value End If End Using End Using Catch ex As Exception ErrorLog.Log(String.Format("Model:ModelAdd(): {0}", ex.Message)) Return False End TryEnd Function<asp:ListView ID="TeachersList" runat="server" OnItemCommand="ShowNumber_ItemCommand">
<ItemTemplate >
.
.
.
<asp:LinkButton ID="ShowNumberLinkButton" runat="server" CommandName="ShowNumber" CommandArgument='<%# Eval("UserID") %>' Text=" "></asp:LinkButton>
.
.
.
Protected Sub ShowNumber_ItemCommand(ByVal sender As Object, ByVal e As ListViewCommandEventArgs)
For Each row In TeachersList.Items
For Each control In row.Controls
if control.CommandArgument = UserID Then
control.Text = "bla bla"
.
.
.
Please help, thanks
var grid = $find("<%=Grid1.ClientID %>");
var masterTable = grid.get_masterTableView();var row = masterTable.get_dataItems();var button = row.findElement("controlname");
But I couldn't get the ID.
If the Grid is in ICGRadAjaxManager's updated control, will the above code work?
Thanks in advance
Vijay.