Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
228 views
Hi, is there any documentation about how to migrate existing solutions (using the "classic" RadControls for ASP.NET) to the prometheus controls?

E.g. is it possible to use both versions of the controls in the same solution, and then update one page after the other? Or will I have to update the solution at once?

Thanks for any info.

---
Martin
Martin
Top achievements
Rank 1
 answered on 23 Jan 2008
2 answers
145 views
If this has already been answered, please point me to the right thread.

I have a scheduler control which loses all the formating when it's put into nested Multiview controls. It works without issue when put into a standard aspx page.

The scheduler appears without any formatting, just words in a default font. This is also happening to the date picker control, just numbers without any calendar formatting. I have screen shots but this system won't let me upload.

I have tried to put in a Link on the master page to the location of the scheduler css but same issue.

I hope this makes sense.
Russ
Top achievements
Rank 1
 answered on 23 Jan 2008
2 answers
217 views
Hi all,

I have a page where I'm using a RadWindow with RadNumericTextBox and TextBox on it. When postback occurs ( by pressing button or smth else) RadNumericTextBox Value is changed to base value, textbox behaves correctly.
So:
- open radWindow,
- change value of RadNumericTextBox to smth else,
- cause postback.
- now RadNumericTextBox is missing.


possible
Top achievements
Rank 1
 answered on 23 Jan 2008
1 answer
265 views
Hi there,
Is my situation.
I have a page container which contain 2 userControl:

<asp:ScriptManager ID="ScriptManager1" runat="server" />   
            <input type="hidden" id="hidJs" runat="server" /> 
            <div class="centerMain" > 
                <div class="main">  
                    <div class="header">  
                        <div class="logo">  
                            <img  src="images/logo.png" onclick="window.location='login.aspx'" style="cursor:pointer" /> 
                        </div> 
                    </div> 
                    <img src="images/tabOnLeft.png" /> 
                    <div style="background-image:url(images/tabOnMid.png);height:26px;color:#FFF" > 
                        <div style="font-size:12px;line-height:26px" id="title" runat="server"><asp:Literal ID="Literal15" runat="server" Text="<%$ Resources: registration, signupProcess %>" /></div>  
                    </div> 
                    <img src="images/tabOnRight.png" /> 
                    <div class="bgContainer990" > 
                        <div class="bg990">  
                            <div id="div1" runat="server"><uc1:testUserctl id="uc1" runat="server"></uc1:testUserctl></div>  
                            <div id="div2" runat="server" style="display:none"><uc2:hq id="uc2" runat="server"></uc2:hq></div>      
                        </div> 
                    </div> 
                </div> 
            </div> 
             <telerik:RadAjaxManager id="RadAjaxManager1" runat="server"></telerik:RadAjaxManager> 

In the codebehind i have the following:
protected void Page_Load(object sender, EventArgs e)  
        {  
            //Get the WebUserControl  
                Control ctlReg = (Control)Page.FindControl("testUserctl");  
                //Get user control's button and label  
                HtmlButton MyButton1 = (HtmlButton)ctlReg.FindControl("btnAccept");  
                RadAjaxManager1.AjaxSettings.AddAjaxSetting(MyButton1, div1);  
                RadAjaxManager1.AjaxSettings.AddAjaxSetting(MyButton1, div2);  
        } 

So, in my in my userControl1 have a button call : btnAccept, which once press, will set the display to "none" to the userControl1 and set the display to "inline" to the userControl2.

Here's parte the html of my userControl1 
<div class="text12_383838" style="width:100%"><asp:Literal ID="Literal16" runat="server" Text="<%$ Resources: registration, personnal %>" /></div>  
        <div class="block">  
            <div class="text11_707070_Login"><asp:Literal ID="Literal17" runat="server" Text="<%$ Resources: registration, firstName %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px;" id="imgtxtNoBlankFirstNameLeft" /> 
            <input type="text" class="dpTextbox" style="width:230px;" id="txtNoBlankFirstName" onblur="removeLeadingTrailingSpaces(this);document.getElementById('txtNoBlankCCFirstName').value=this.value" runat="server" maxlength="50" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankFirstNameRight" /> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal18" runat="server" Text="<%$ Resources: registration, lastName %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px" id="imgtxtNoBlankLastNameLeft" /> 
            <input type="text" class="dpTextbox" style="width:230px" id="txtNoBlankLastName" onblur="removeLeadingTrailingSpaces(this);document.getElementById('txtNoBlankCCLastName').value=this.value" runat="server" maxlength="50" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankLastNameRight" /> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal19" runat="server" Text="<%$ Resources: mainApp, username %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px" id="imgtxtNoBlankUsernameLeft" /> 
            <input type="text" class="dpTextbox" style="width:230px" id="txtNoBlankUsername" runat="server" maxlength="12" onblur="removeLeadingTrailingSpaces(this);" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankUsernameRight" /> 
        </div> 
        <telerik:RadToolTip runat="server" EnableEmbeddedSkins="false"  IsClientID="true" Text="<%$ Resources: mainApp, toolTipPassword %>" Position="TopCenter" Skin="Vista" ID="RadToolTip1" TargetControlID="tooltip1" Width="200px" Height="50px" ></telerik:RadToolTip> 
        <div class="block" id="tooltip1">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal20" runat="server" Text="<%$ Resources: mainApp, password %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px" id="imgtxtNoBlankPasswordLeft" /> 
            <input type="password" class="dpTextbox" style="width:230px" id="txtNoBlankPassword" runat="server" maxlength="12" onblur="removeLeadingTrailingSpaces(this);" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankPasswordRight" /> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal21" runat="server" Text="<%$ Resources: registration, passConfirmation %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px" id="imgtxtNoBlankPasswordConfLeft" /> 
            <input type="password" class="dpTextbox" style="width:230px" id="txtNoBlankPasswordConf" runat="server" maxlength="12" onblur="removeLeadingTrailingSpaces(this);" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankPasswordConfRight" /> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login">Secret question</div> 
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankSecretQ_Input" /> 
            <telerik:RadComboBox Width="239px" DropDownWidth="450" EnableEmbeddedSkins="false" Skin="Vista" ID="selNoBlankSecretQ" runat="server"></telerik:RadComboBox> 
        </div> 
        <telerik:RadToolTip runat="server" EnableEmbeddedSkins="false"  IsClientID="true" Animation="Fade" Text="<%$ Resources: mainApp, toolTipSecretAnswer %>" Position="TopCenter" Skin="Vista" ID="RadToolTip2" TargetControlID="tooltip2" Width="200px" Height="50px" ></telerik:RadToolTip> 
        <div class="block" id="tooltip2">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal22" runat="server" Text="<%$ Resources: registration, secretAnswer %>" /></div>  
            <img src="images/textbox/txtLeft.png" alt="img" style="margin-left:10px" id="imgtxtNoBlankSecretAnswerLeft" /> 
            <input type="text" class="dpTextbox" style="width:230px" id="txtNoBlankSecretAnswer" runat="server" onblur="removeLeadingTrailingSpaces(this);" /> 
            <img src="images/textbox/txtRight.png" alt="img" id="imgtxtNoBlankSecretAnswerRight" /> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal23" runat="server" Text="<%$ Resources: registration, gender %>" /></div>  
            <div class="radio selected" style="margin-left:10px" onmousedown="effect(this)" onmouseup="handle(this)" onmouseout="startClearing()">  
                <input type="radio" runat="server" id="radFemale" value="1" class="dpRadio" checked="true" name="mf" /> 
            </div> 
            <div style="line-height:23px;font-size:11px"><asp:Literal ID="Literal24" runat="server" Text="<%$ Resources: registration, female %>" /></div>  
            <div class="radio" style="margin-left:10px" onmousedown="effect(this)" onmouseup="handle(this)" onmouseout="startClearing()">   
                <input type="radio" runat="server" id="radMale" value="2" class="dpRadio" name="mf"  /> 
            </div> 
            <div style="line-height:23px;font-size:11px"><asp:Literal ID="Literal25" runat="server" Text="<%$ Resources: registration, male %>" /></div>  
        </div> 
        <div class="block" id="birthDate" runat="server">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal26" runat="server" Text="<%$ Resources: registration, birthDate %>" /></div>  
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankBirthYear_Input" /> 
            <telerik:RadComboBox Height="200px" Width="64px" EnableEmbeddedSkins="false" Skin="Vista" ID="selNoBlankBirthYear" OnSelectedIndexChanged="getDaysInMonth" runat="server"></telerik:RadComboBox> 
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankBirthMonth_Input" /> 
            <telerik:RadComboBox Width="84px" EnableEmbeddedSkins="false" Skin="Vista" ID="selNoBlankBirthMonth" runat="server" OnSelectedIndexChanged="getDaysInMonth"></telerik:RadComboBox> 
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankBirthDay_Input" /> 
            <telerik:RadComboBox Width="64px" EnableEmbeddedSkins="false" Skin="Vista" ID="selNoBlankBirthDay" runat="server"></telerik:RadComboBox> 
        </div> 
        <div class="block">  
            <div class="text11_707070_Login" ><asp:Literal ID="Literal27" runat="server" Text="<%$ Resources: registration, country %>" /></div>  
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankCountry_Input" /> 
            <telerik:RadComboBox Width="239px"  EnableEmbeddedSkins="false" OnSelectedIndexChanged="switchStateProvince"  Skin="Vista" ID="selNoBlankCountry" runat="server"></telerik:RadComboBox> 
        </div> 
        <div class="block" id="stateProvince" runat="server">  
            <div class="text11_707070_Login" id="lblStateProvince" runat="server"><asp:Literal ID="Literal28" runat="server" Text="<%$ Resources: registration, state %>" /></div>  
            <img style="margin-left:10px;" src="Prometheus/Vista/ComboBox/dropBoxLeftOFF.gif" id="imgselNoBlankStateProvince_Input"  /> 
            <telerik:RadComboBox Width="239px"  EnableEmbeddedSkins="false"  Skin="Vista" ID="selNoBlankStateProvince" runat="server"></telerik:RadComboBox> 
        </div> 
<div style="width:inherit;">  
            <div class="checkbox" style="margin:5px 0 0 30px"  onmousedown="effect(this)" onmouseup="handle(this)" onmouseout="startClearing()">  
                <input type="checkbox" class="dpCheckbox" id="chkNoBlankAgree" runat="server" />   
            </div> 
            <div style="line-height:23px;font-size:11px;margin:5px 0 0 0"><asp:Literal ID="Literal46" runat="server" Text="<%$ Resources: registration, agreeTerms %>" /></div>  
            <div  class="bgDpButton" style="float:right;margin-right:30px" onmousedown="dpButtonMouseDown('btnAcceptLeft','btnAccept','btnAcceptRight')" onmouseup="dpButtonMouseUp('btnAcceptLeft','btnAccept','btnAcceptRight')" onmouseout="dpButtonMouseUp('btnAcceptLeft','btnAccept','btnAcceptRight')">   
                <img id="btnAcceptLeft" src="images/buttons/btnLeftUp.png" alt="img" /> 
                <button id="btnAccept"  runat="server" class="dpButton" onserverclick="doRegistration"><asp:Literal ID="Literal8" runat="server" Text="Accept" /></button>  
                <img id="btnAcceptRight" src="images/buttons/btnRightUp.png" alt="img" /> 
            </div> 
        </div> 
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="selNoBlankCountry">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="code" /> 
                <telerik:AjaxUpdatedControl ControlID="ccType"  /> 
                <telerik:AjaxUpdatedControl ControlID="ccNumber" /> 
                <telerik:AjaxUpdatedControl ControlID="ccDate" /> 
                <telerik:AjaxUpdatedControl ControlID="txtNoBlankPassword" /> 
                <telerik:AjaxUpdatedControl ControlID="stateProvince" LoadingPanelID="lp" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="selNoBlankBirthYear">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="birthDate" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="selNoBlankBirthMonth">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="birthDate" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="selNoBlankCCType">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="txtNumNoBlankCCNumber" /> 
                <telerik:AjaxUpdatedControl ControlID="txtNumNoBlankVerNumber" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

So the problem is this:
When i select the radCombobox selNoBlankCountry and select a different item, i loose the data enterd in the password ,confirmPassword, and the radio button selected.

But the other dropdown work fine!

If i put the code in the page load of my container page like this:
if (!IsPostBack)  
            {  
                //Get the WebUserControl  
                Control ctlReg = (Control)Page.FindControl("testUserctl");  
                //Get user control's button and label  
                HtmlButton MyButton1 = (HtmlButton)ctlReg.FindControl("btnAccept");  
                RadAjaxManager1.AjaxSettings.AddAjaxSetting(MyButton1, div1);  
                RadAjaxManager1.AjaxSettings.AddAjaxSetting(MyButton1, div2);  
            } 

I get to keep the data enterd but the button "btnAccept" is not "ajaxified" and thus cause a postback.

I cannot figure this one out!
Thanks!
Mat
plamen
Top achievements
Rank 1
 answered on 23 Jan 2008
6 answers
149 views
Hi!
I get an error message when I try to update an appointment in the RadScheduler which says: " Exception Details: System.Data.SqlClient.SqlException: Måste deklarera den skalära variabeln "@ID". " For some reason it is in Swedish, the translasion would be something like: "You have to declare the scalable varible "@ID". ".

When I try to delete an appointment I get a postback and no error but the meeting is still there. I dont have any problem with the select or insert-statements.
 
I followed the instructions on this page for the databainding: http://www.telerik.com/help/radcontrols/prometheus/schedule_declarative_databinding.html

Does anyone know what the problem might be?

Note: I dont yet have anything in my cs-file.
Björn
Top achievements
Rank 1
 answered on 23 Jan 2008
1 answer
181 views
Will the treeview control work without viewstate enabled? It seems the viewstate from the treeview control is huge. Thank you.
Atanas Korchev
Telerik team
 answered on 23 Jan 2008
1 answer
71 views
hello everybody!

I have a radtreeview with a contextmenu. whenever i choose "new Item" which loads a new aspx page into a radpane, the Images of the nodes disappear, except those from the first level.

This is the eventhandler:
        protected void ParameterTreeView_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e) 
        { 
            RadPane4.ContentUrl = "~/SecuredSites/EditType.aspx?id=new&kind=" + e.Node.Value; 
        } 

the radtreeview is not touched by the code in any way. The structure remains the same, but the node-images are gone, except the one from the toplevel!

thx in advance & kind regards

Atanas Korchev
Telerik team
 answered on 23 Jan 2008
15 answers
782 views
Hi!, I am using the prometheus radtreeview control, I have a wap project, and  the script manager is in the master page : it uses a scriptpath for loading js. In the MicrosoftAjaxLibrary folder should be every js to load in the page, but i don´t know what js I have to load for telerik. so I think the javascript error in the page is because of that. the error is "telerik is not defined", when i expand the treeview node nothing happens. do I have to put some line in the web.config or something?. please help.


This is the script manager in the master:

<

asp:ScriptManager ID="Scriptmanager1" AsyncPostBackTimeout="800" runat="server" EnableScriptGlobalization="True" EnableScriptLocalization="false" EnablePartialRendering="True" ScriptPath="~\MicrosoftAjaxLibrary" ScriptMode="Release">

</asp:ScriptManager>


this is the aspx code of the page

<%

@ Page Language="C#" AutoEventWireup="true" Codebehind="BuscarProcesosArbolV2.aspx.cs" Inherits="Proceso_BuscarProcesosArbolV2"

Title="BuscarProcesosArbolV2" MasterPageFile="~/Shared/Default.master" %>

<%

@ Register Assembly="Microsoft.Practices.Web.UI.WebControls" Namespace="Microsoft.Practices.Web.UI.WebControls"

TagPrefix="pp" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%

@ MasterType VirtualPath="~/Shared/Default.master" %>

<%

@ Register Src="../Shared/Titulo.ascx" TagName="Titulo" TagPrefix="uc1" %>

<%

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%

@ Register Src="../Shared/TituloPopup.ascx" TagName="TituloPopup" TagPrefix="uc4" %>

<%

@ Register Src="ReporteProcesos.ascx" TagName="ReporteProcesos" TagPrefix="uc3" %>

<

asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">

<uc1:Titulo ID="Titulo1" runat="server" Titulo="<%$ Resources:Titulo1Titulo %>" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<asp:Table ID="TablaValor" runat="server">

<asp:TableRow>

<asp:TableCell ColumnSpan="4" id="tcGeneracionValor" text="<%$ Resources:tcGeneracionValor %>" CssClass="TdCeldaSubTituloSeccion">

</asp:TableCell>

</asp:TableRow>

</asp:Table>

<telerik:RadTreeView ID="RadTreeView1" runat="server" >

</telerik:RadTreeView>

Atanas Korchev
Telerik team
 answered on 23 Jan 2008
3 answers
163 views

Hey,

I'm planning on purchasing a license for the RAD editor. I just need a few answers to some questions.

First, I want to edit the symbol table to add more characters. Can I do that without purchasing a developer license?

Umm ... what is the best plan for me?  I have one production server with a load-balancer. But I'm deploying this one several website applications.

Basically, what are my purchasing options?  Is the developer license the best choice for me?

Tervel
Telerik team
 answered on 23 Jan 2008
1 answer
146 views
I was trying to get EnableEmptyListItem to work with prometheus, but it will not.  It works just like the documentation sugges if I change to RADgrid.  I also tried it from the code behind on ItemDataBound using essentially the demo code

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

{

GridEditableItem editedItem = e.Item as GridDataItem;

GridEditManager editMan = editedItem.EditManager;

GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor("Elem_QEDStdTbl"));

DropDownList ddList = editor.DropDownListControl;

ddList.Items.Insert(0,

new ListItem("Select Contact Title", "NotSetItem"));

ddList.Items[0].Attributes[

"style"] = "color: red";

ListItem item = new ListItem();

item.Text =

"new item";

item.Value =

"0";

ddList.Items.Add(item);

}

}

Under prometheus - nothing is added.  Under RadGrid, both items (the insert and add) are shown.

Konstantin Petkov
Telerik team
 answered on 23 Jan 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?