Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
391 views
Hi,

All I want to be visible in the advanced forms are the From label and calendar, To label and calendar, my resources drop down, and the insert, and cancel buttons.  Is  there a way to simply make all the other controls not visible without having to create a new template?  Thanks
Peter
Telerik team
 answered on 29 Dec 2008
1 answer
211 views
hi

Here i have a code that need to display the value of the label before redirect. The redirect is workiing fine but it just could not display the label value even though i place a thread. The else statemenrt is working fine.

If

x.CheckUserAndPassword(txtUsername.Text, txtCurrentPassword.Text, txtNewPassword.Text) Then

 

lblerror.Enabled =

True

 

lblerror.Text =

"Change Success"

 

 

Threading.Thread.Sleep(5000)

 

Response.Redirect(

"~/Login.aspx", False)

 

 

Else

 

lblerror.Text =

"Try Again, Your username or password does not match"

 

 

End If

 


Thanks in advance.
Daniel
Telerik team
 answered on 29 Dec 2008
1 answer
177 views

I try create MossRadEditor Custom Field in SharePoint when build & debug I run pass but on webpage error "An unexpected error has occurred" :(.

file ascx:

<%@ Control Language="C#" Debug=true %>
<%@ Register Assembly="RadEditorSharePoint, Version=5.3.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" 
Namespace="Telerik.SharePoint" TagPrefix="cc1" %>
<%@ Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" %>   
<SharePoint:RenderingTemplate ID="CMSDropDownFieldControl" runat="server"> 
<Template>
<cc1:MOSSRadEditor ID="MOSSRadEditor1" runat="server" Width ="450px" Height ="400px">
</cc1:MOSSRadEditor> 
</Template>
</SharePoint:RenderingTemplate>

CMSDropDownFieldControl.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebControls;

using System.Security.Principal;
using System.Security.Permissions;

using Microsoft.SharePoint;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using Telerik.SharePoint;

namespace Prevail.CMS.CustomFields
{
    class CMSDropDownFieldControl : BaseFieldControl
    {
        protected MOSSRadEditor mossRadEditor;

        protected override string DefaultTemplateName
        {
            get
            {
                return "CMSDropDownFieldControl";
            }
        }

        public override object Value
        {
            get
            {
                EnsureChildControls();
                return mossRadEditor.Text;
            }

            set
            {
                EnsureChildControls();
                mossRadEditor.Text = (string)this.ItemFieldValue;
            }
        }

        public override void Focus()
        {
            EnsureChildControls();           
        }

        protected override void CreateChildControls()
        {
            if (Field == null) return;
            base.CreateChildControls();
            try
            {

                if (ControlMode == Microsoft.SharePoint.WebControls.SPControlMode.Display)
                    return;                           
                mossRadEditor = (MOSSRadEditor)TemplateContainer.FindControl("MOSSRadEditor1");               
            }
            catch (SPException ex)
            {
               
            }

        }
    }
}

CMSDropDownField.cs
using System; 
using System.Collections.Generic; 
using System.Text; 
using Microsoft.SharePoint; 

namespace Prevail.CMS.CustomFields  
 { 
    public class CMSDropDownField:SPFieldText   

{

#region
Constructors
public CMSDropDownField(SPFieldCollection fields, string fieldName) : base(fields, fieldName)
 
 {

}

public CMSDropDownField(Microsoft.SharePoint.SPFieldCollection fields, string typeName, string displayName) : base(fields, typeName, displayName)
{
}
#endregion

/// <summary> 
/// Here we can apply formating to our number that will show up on the edit page.
/// </summary>
/// <param name="value"></param>  
/// <returns></returns>
public override object GetFieldValue(string value)  
{
if (String.IsNullOrEmpty(value))  
return null; 
return value;
}
public override Microsoft.SharePoint.WebControls.BaseFieldControl FieldRenderingControl  
{
get
{

Microsoft.SharePoint.WebControls.BaseFieldControl _CMSDropDownFieldControl = new CMSDropDownFieldControl();
 _CMSDropDownFieldControl.FieldName = InternalName;
return _CMSDropDownFieldControl;  
}

}

}

}

Stanimir
Telerik team
 answered on 29 Dec 2008
1 answer
130 views
Hi

I am having the radcombo(EmpID) and datepicker(EndDate), button ,requirefieldvalidation control and radgrid inside the radajaxpanel.
EmpId,EndDate are requirefields.First time without giving the requirefield when i click the button validation message coming properly.once i load the grid after that i remove the Enddate and clik the button nothing will happen.what is the problem?

Thanks
Vairam
Maria Ilieva
Telerik team
 answered on 29 Dec 2008
3 answers
141 views
I have a RadGrid with a GridTemplateColumn that has a table in it.  It will display fine on the page but when I export to PDF, the table does not show.  Is there something special I have to do for the table to show up in the PDF export?  I tried just a basic HTML table and also an asp.net table.  I also tried using a RadGrid in the template also and still nothing exported.

I'm only using the RadGrid for this cause of the exporting option it has.
Daniel
Telerik team
 answered on 29 Dec 2008
1 answer
298 views
I have RadTabStrip on my page which has two tabs in it. Whwn i am clicking on second tab it comes below first tab content. I want to hide first tab content when i clicked on second and vice versa.
Princy
Top achievements
Rank 2
 answered on 29 Dec 2008
1 answer
125 views
Hey everyone, came across something interesting.  I created a simple web page, added the RadScriptManager and put a table on the page.  I added the RadDatePicker to the table and then resized the table.  When I resize the table, the RadDatePicker changes size, I have even tried to set the width of the RadDatePicker to 100px just as a test and it still resized. 

I understand that html tables are being deprecated but I was curious how if anyone else has come across this issue and how have you dealt with formatting issues.

Thanks.
Dimo
Telerik team
 answered on 29 Dec 2008
1 answer
106 views
Hi

1. Type some search term which leads to positive result(s)
2. Erase the search term by using the backspace key
3. Tab out of the text box to the adjacent button

It continues showing "Enter a search phrase" expectation is that it should close the dropdown message on Tab key press. Here is how it is defined

 

<telerik:RadComboBox   
                            Id="SearchCombo" 
                            Runat="server" 
                            EnableLoadOnDemand="True" 
                            OnItemsRequested="SearchCombo_ItemsRequested" 
                            LoadingMessage="Searching..." 
                            EmptyMessage="Search ..." 
                            Height="15px" 
                            Width="315px" 
                            DropDownWidth="400px" 
                            Skin="Sunset" 
                            OnSelectedIndexChanged="SearchCombo_SelectedIndexChanged" 
                            OnClientItemsRequesting="HandleRequestStart" 
                            OnClientKeyPressing="HandleKeyPress" 
                            BorderColor="Transparent" 
                            CollapseDelay="200" 
                            ExpandDelay="300" 
                            ItemRequestTimeout="200" 
                            ShowDropDownOnTextboxClick="False" 
                            ShowWhileLoading="False" 
                            AutoPostBack="true" 
                            ShowToggleImage="False" 
                            ShowMoreResultsBox="True" 
                            CausesValidation="False" 
                            OnClientItemsRequested="HandleRequestEnd" 
                            OnClientBlur="OnClientBlur" 
                            HighlightTemplatedItems="True">  
                            <ItemTemplate> 
                                <div  class="AssocSearchItemContainer" > 
                                    <div style=" float:left;">  
                                        <img alt='<%# Eval("Title")%>' height="40px" src='<%# Eval("ThumbnailURL")%>' /> 
                                    </div> 
                                    <div class="AssocSearchItemTextBlock">  
                                        <strong><%# Eval("Title")%></strong><br /> 
                                        <%# Eval("Description")%><br /> 
                                        <%# Eval("Details")%><br /> 
                                    </div> 
                                </div> 
                            </ItemTemplate> 
                            <CollapseAnimation Duration="100" Type="OutQuint" /> 
                            <ExpandAnimation Type="None" /> 
                        </telerik:RadComboBox> 

 

protected void SearchCombo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)  
{  
 
....  
....  
            if (searchPhrase.Length == 0)  
            {  
                comboBox.ClearSelection();  
                comboBox.Height = 0;  
                e.Message = "Enter a search phrase.";  
                return;  
            }  
 
....  
....  

 

Thanks
Imtiaz

 

 

 

 

 

 

Yana
Telerik team
 answered on 29 Dec 2008
1 answer
79 views
I want to display YAxist label as a treeview. But i don't know how to do it. Please show me a solution for this problem !
Giuseppe
Telerik team
 answered on 29 Dec 2008
3 answers
125 views
Hi

RadScheduler's delete confirmation mesage and text at the top left is appearing blurry and squeezed.please help.



delete confirmation

header
Alex Gyoshev
Telerik team
 answered on 29 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?