Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
313 views
Hi,
I am using Visual Studio 2010 with Framework 4.0 and the Telerik.Web.UI and Telerik.Web.Design dlls are versioned at 2010.3.1317.40
I have been having problems adding a user web control to an aspx page via mark up and have been getting the error shown above.
The user control is one of a series of user controls some of which incorporate Telerik RadComboBox controls.  Any user control which does not have a Telerik RadComboBox control within it can be found and added to the page markup without the error occurring.

Markup page Inherits from:
ScottishParliament.QAndMSearchControls.QAndMSearch (with QAndMSearch being the name (and class) of the aspx page).
The Telerik.Web.UI Assembly is registered on the markup page using:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik>Web.UI" TagPrefix="telerik" %>

The aspx page references the Telerik assemblies Telerik.Web.Design and Telerik.Web.UI found by browsing.

Each control is Registered on the mark up page.  All (working and non-working) reside in the same child folder.  They are all assigned a tagPrefix of uc and a TagName matching their ControlName with Src pointing to the relative path of the ascx file involved.
Eg
<%@ Register TagPrefix="uc" TagName="MSPUC" Src="~/ChildUserControls/MSPUC.ascx" %>

I am trying to add the control to a asp:panel control using
<uc:MSPUC ID="MSPUC1" runat="server" />

There is a Script Manager in place at the head of the list of user controls as I am aware that the Telerik drop list requires one.  This is entered as:
<telerik:RadScriptManager ID="ScriptManager2" runat="server" EnableTheming="True" />

The aspx page written in c# is part of namespace ScottishParliament.QAndMSearchControls.
It has a 'using ScottishParliament.QAndMSearchControls.ChildUserControls;' statement at the top.

All user controls (those that use Telerik components and those that don't) all belong to namespace 'ScottishParliament.QAndMSearchControls.ChildUserControls.
The example control MSPUC does not work and has an ASP Label and ASP DropList as well as a Telerik RadComboBox.  These all appear on the Designer.cs page and can be referenced in the user control's own code page without problems.
The control's own Markup page registers the Telerik Web UI assembly in the same way as the aspx page.

I can't work out why there is a difference in behaviour from these controls and after some investigation found that removing the telerik component from the user control and re-building allowed me to add the control to the aspx mark up.
I had read from somewhere that it might be a trust issue resulting in the Telerik assemblies not being found?

Thanks for any help that can be provided in advance.
Simon
Telerik team
 answered on 02 Mar 2011
1 answer
110 views

I wanna write in one of my tab text the following " Imagazine *new* ".
But i want the *new* text to be in certain color other than the one am using for Imagazine. I tried the following :

Text="iMagazine <font color='FF FA 03'>*new*</font>"
But when i try to open the its RadpageView i doesnt show its content.

Is there another way to do that without affecting the pageview?
Kate
Telerik team
 answered on 02 Mar 2011
2 answers
69 views
Well...another issue which I am unable to resolve...lemme explain

I have an ascx page...which I want to load into a tab...now the issue is that I am able to load the tab in the first tab...but when I load the user control in the second tab...it goes blank and doesn't show anything...this is happening just for my user controls...

Now when I have a simple gridview with a sql datasource in another usercontrol...this time I am able to load this properly in the "child" tabs...no issues whatsoever.

The issue pertains to only loading of user controls in child tabs where I have multiple asp tools embedded in that particular user control...something like the one which is shown below.

<asp:GridView ID="grdContent" runat="server" AutoGenerateColumns="false" Height="124px" 
    Width="577px" OnRowCommand="grdContent_RowCommand"
    <Columns> 
        <asp:TemplateField HeaderText="Language"
            <ItemTemplate> 
                <asp:Label ID="lblLanguage" runat="server" Text='<%#Bind("ActualLanguage") %>'></asp:Label> 
            </ItemTemplate> 
        </asp:TemplateField> 
        <asp:CheckBoxField HeaderText="Read" DataField="IsRead" /> 
        <asp:CheckBoxField HeaderText="Write" DataField="IsWrite" /> 
        <asp:CheckBoxField HeaderText="Speak" DataField="IsSpeak" /> 
        <asp:TemplateField> 
            <ItemTemplate> 
                <asp:LinkButton ID="lnkModify" runat="server" CommandName="Modify" CommandArgument='<%#Bind("ID") %>' 
                    Text="Modify"></asp:LinkButton> 
                <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Del" CommandArgument='<%#Bind("ID") %>' 
                    Text="Delete"></asp:LinkButton> 
                <asp:HiddenField ID="hdnID" runat="server" Value='<%#Bind("ID") %>' /> 
            </ItemTemplate> 
        </asp:TemplateField> 
    </Columns> 
</asp:GridView> 
&nbsp; 
<JobsControl:LinkButton ID="lbtnNew" runat="server" OnClick="lbtnNew_Click">New</JobsControl:LinkButton> 
<asp:Panel ID="LanguagePanel" runat="server" Visible="False"
    <table width="100%" border="0" cellpadding="0" cellspacing="0"
        <tr> 
            <td width="5%"
            </td> 
            <td style="width: 30%"
                Language 
            </td> 
            <td width="60%"
                <JobsControl:CompositCombo ID="ddlLanguage" runat="server" CommonCode="160" IsLoadValuesInPostBack="true" /> 
                <asp:HiddenField ID="hdnID" runat="server" /> 
                <asp:HiddenField ID="hdnLanguageID" runat="server" /> 
            </td> 
            <td width="5%"
            </td> 
        </tr> 
        <tr> 
            <td width="5%"
                &nbsp; 
            </td> 
            <td style="width: 30%"
                Read 
            </td> 
            <td width="60%"
                <JobsControl:CheckBox ID="chkRead" runat="server" /> 
            </td> 
            <td width="5%"
                &nbsp; 
            </td> 
        </tr> 
        <tr> 
            <td width="5%"
                &nbsp; 
            </td> 
            <td style="width: 30%"
                Write 
            </td> 
            <td width="60%"
                <JobsControl:CheckBox ID="chkWrite" runat="server" /> 
            </td> 
            <td width="5%"
                &nbsp; 
            </td> 
        </tr> 
        <tr> 
            <td width="5%"
                &nbsp; 
            </td> 
            <td style="width: 30%"
                Speak 
            </td> 
            <td width="60%"
                <JobsControl:CheckBox ID="chkSpeak" runat="server" /> 
            </td> 
            <td width="5%"
                &nbsp; 
            </td> 
        </tr> 
        <tr> 
            <td width="5%"
                &nbsp; 
            </td> 
            <td style="width: 30%"
                &nbsp; 
            </td> 
            <td width="60%"
                <JobsControl:Button ID="btnSave" runat="server" CausesValidation="False" OnClick="btnSave_Click" 
                    Text="Save" Width="54px" /> 
            </td> 
            <td width="5%"
                &nbsp; 
            </td> 
        </tr> 
    </table> 
</asp:Panel> 

David
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
214 views
Hi,
Is it possible to have the RadScheduler display a Vertical Timeline view with the days down the y axis and the people along the top on the x axis?
I attached a screenshot of what Im describing.

Thank you
Veronica
Telerik team
 answered on 02 Mar 2011
3 answers
106 views
Is it possible install on my pc more version of Asp.Net Ajax controls and to use one in a project and one in an another (old) project?
Are there any problems?

Template project?

does "dll telerik" register in GAC?
Veronica
Telerik team
 answered on 02 Mar 2011
3 answers
88 views
Hi,

I have the following line of code
RadTimePicker startTime = this.NamingContainer.FindControl(StartTimeControlID) as RadTimePicker;

It worked fine when our application was using Classic controls.  Now that we upgraded to ASP.NET AJAX, startTime is always null.  It is as if it can no longer find the control.  StartTimeControlID is not null and I know that the control is there in "this".  What am I missing?

Thanks,
Olga
Daniel
Telerik team
 answered on 02 Mar 2011
1 answer
150 views
Hi all,
it's possible to call/show an ShowAdvancedEditForm or ShowAdvancedInsertForm with no RadScheduler? Or it's possible to use it with RadScheduler property's Visible = False?
Thank's
Danilo
Veronica
Telerik team
 answered on 02 Mar 2011
2 answers
272 views
Hi all, 

The footer is not added by using ExcelML. Therefore, I have to do some coding in ExcelMLExportRowCreated.
Dim row As New RowElement()  is use for adding footer.
Everything is good.
But I would like to change its style, something like border, color, background color.
Need a hellp from all of you.

Andy.

Protected Sub carGrid_ExcelMLExportRowCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs) Handles carGrid.ExcelMLExportRowCreated
       If e.Worksheet.Table.Rows.Count = carGrid.Items.Count + 1 Then
           Dim row As New RowElement()
           Dim footer As GridFooterItem = TryCast(TryCast(sender, RadGrid).MasterTableView.GetItems(GridItemType.Footer)(0), GridFooterItem)
           For Each column As GridColumn In TryCast(sender, RadGrid).MasterTableView.Columns
               Dim cell As New CellElement()
               Dim cellText As String = footer(column.UniqueName).Text
               Dim result As Integer
               If cellText.Contains(" ") Then
                   Try
                       result = Integer.Parse(cellText.Substring(6, cellText.Length - 6))
                       cell.Data.DataItem = result
                   Catch ex As Exception
                       Exit Sub
                   End Try
               ElseIf cellText = "0" Then
                   cell.Data.DataItem = 0
               Else
                   cell.Data.DataItem = cellText
               End If
               row.Cells.Add(cell)
           Next       
           e.Worksheet.Table.Rows.Add(row)
       End If
        
   End Sub

Daniel
Telerik team
 answered on 02 Mar 2011
1 answer
71 views
Hi,

I have a requirement wherein I have two subtabs 'A' and 'B'. Both the subtabs have html with primarily two sections.
<RadPageView ID='pg1' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table2'>
  <tr>
    <td>
       The differening section of first subtab.
   </td>
 </tr>
</table>
</RadPageView>
<RadPageView ID='pg2' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table3'>
  <tr>
    <td>
       The differening section of second subtab.
   </td>
 </tr>
</table>
</RadPageView>
 As shown in the above code, I need table1 to be automatically present across both subtabs. Clicking on the subtabs should only change the lower half section(in this case from showing table2 to table3 and vice-versa).


Thanks In advance.
Kate
Telerik team
 answered on 02 Mar 2011
9 answers
542 views
hi dear telerik team :
my aspx code is like this :
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
     
     
    <link href="App_Themes/Input/Office2007ByMe/Input.Office2007ByMe.css" rel="stylesheet" 
        type="text/css" /> 
     
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="Button1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="Button2"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button2" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="Button3"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button3" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadTextBox ID="RadTextBox1" runat="server" EnableEmbeddedSkins="False"  
            Width="125px" Skin="Office2007ByMe"
        </telerik:RadTextBox> 
        <br /> 
        <br /> 
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 
        <asp:Button ID="Button2" runat="server"  Text="Button"  
            onclick="Button2_Click" /> 
        <asp:Button ID="Button3" runat="server"  Text="Button"  
            onclick="Button3_Click" /> 
    </div> 
    </form> 
</body> 
</html> 

and codebehind :
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
namespace ChatRoomByMajid 
    public partial class WebForm2 : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
             
        } 
 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Red; 
             
        } 
 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Yellow; 
        } 
 
        protected void Button3_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Blue; 
        } 
    } 
 


when i click those buttons so the forecolor changes , but when the radtextbox gets focus for entering data so the previous color is shown!

how can i fix this problem ?
(i made the simple upper code for understanding)

best regards








Lenny_shp
Top achievements
Rank 2
 answered on 02 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?