Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
252 views

Hi,

  Like radcombobox there is no event LoadOnDemand in raddropdowntree.

Can any one suggest me how to do load on demand in raddropdown on server side.

Ivan Danchev
Telerik team
 answered on 10 Feb 2016
2 answers
338 views

Good morning,

I have a scenario where I'm creating a RadWizard control dynamically. I'm looping through an object to set up the wizard steps, and then on WizardStepCreated, I'm adding all the controls to the step. The RadWizard's RenderedSteps="All"

When the page is first rendered, everything works fine. The step Title is populated, the validation groups work fine. The issue I'm having is when I add an ActiveStepChanged method in order to save the data on each step change, I lose my step properties (.Title, .ValidationGroup, etc).

(See photos attached)

My code is below. Thank you for your help!

Chris

ContentPage:

<%@ Page Title="Application Rendering Engine" Language="vb" AutoEventWireup="false" MasterPageFile="~/Application.Master" CodeBehind="ApplicationForm.aspx.vb" Inherits="Public_Portal.ApplicationForm" %>
 
<%@ MasterType VirtualPath="~/Application.Master" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
    <telerik:RadAjaxManagerProxy runat="server" ID="ajaxProxy">
        <AjaxSettings>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 
 
    <!-- Inside Page Body Content -->
    <div class="container">
        <div class="row">
            <div class="col-sm-12 col-md-12 col-lg-12 col-xs-12">
 
                <!-- Breadcrumbs -->
                <ul class="ApplicationFormBreadcrumb">
                    <li>
                        <asp:HyperLink ID="hlBreadcrumb_Home" runat="server" Text="Home" NavigateUrl="~/Default.aspx" />
                    </li>
                    <li>
                        <asp:HyperLink ID="hlBreadcrumb_Dashboard" runat="server" Text="Dashboard" NavigateUrl="~/Dashboard.aspx" />
                    </li>
                    <li class="active">
                        <asp:HyperLink ID="hlBreadcrumb_MyApplication" runat="server" Text="My Application" NavigateUrl="#" />
                    </li>
                </ul>
 
            </div>
        </div>
        <div class="row">
            <!-- Inside Content Right Side Main -->
            <div class="col-sm-12 col-md-12 col-lg-12 col-xs-12">
                <div class="tab-content">
 
                    <telerik:RadWizard runat="server" ID="wizMyApplication"
                        Skin="MetroTouch"
                        RenderedSteps="All"
                        DisplayCancelButton="true"
                        DisplayNavigationBar="true"
                        DisplayProgressBar="true"
                        Width="100%"
                        DisplayNavigationButtons="true"
                        NavigationButtonsPosition="Bottom"
                        ProgressBarPosition="left"
                        NavigationBarPosition="left">
                    </telerik:RadWizard>
 
                </div>
            </div>
        </div>
    </div>
 
 
</asp:Content>
 

ContentPage code-behind:

 

Imports System.IO
Imports Telerik.Web.UI
Imports Portal_BusinessObjects
Public Class ApplicationForm
    Inherits clsPage
 
 
#Region "Page Events"
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim objApplication As New clsApplication()
 
        If Not Page.IsPostBack Then
 
            If Application_ID > 0 Then
                objApplication = New clsApplication(Application_ID, Application_Mode)
            Else
                objApplication = New clsApplication(Application_ID, Application_Mode, Form_Version_ID, Application_EligibleProgram)
            End If
 
            MyApplication = objApplication
 
            '***********************************
            '   BUILD WIZARD STEPS
            '***********************************
            Dim i As Integer = 0
            For Each formStep As clsFormStep In objApplication.Application_Form.Form_Steps
 
                Dim [wizStep] As New RadWizardStep()
                Dim strTitle As String = String.Empty
                Dim strTooltip As String = String.Empty
 
                If i = 0 Then
                    [wizStep].DisplayCancelButton = False
                End If
 
                If clsGlobal.CurrentLang = clsGlobal.AvailableLanguages.en Then
                    strTitle = formStep.E_Name
                    strTooltip = formStep.E_Desc
                Else
                    strTitle = formStep.F_Name
                    strTooltip = formStep.F_Desc
                End If
 
                [wizStep].Title = strTitle
                [wizStep].ID = "step_" & formStep.Form_Step_ID
                [wizStep].ValidationGroup = "valGroup_" & wizStep.ID
                wizMyApplication.WizardSteps.Add([wizStep])
 
                i = i + 1
            Next
 
        End If
 
    End Sub
 
#End Region
 
#Region "Page Control Events"
 
 
 
    '*************************************************************
    '
    '          RENDERING CONTROLS ON WIZARD STEP
    '
    '*************************************************************
    Private Sub wizMyApplication_WizardStepCreated(sender As Object, e As WizardStepCreatedEventArgs) Handles wizMyApplication.WizardStepCreated
        Dim strStepPrefix As String = e.RadWizardStep.ID
        Dim strValidationGroup As String = "valGroup_" & strStepPrefix
        Dim intFormStepID As Integer = CInt(strStepPrefix.Replace("step_", ""))
 
        'Add Step Validation group
        Dim valSummary As New ValidationSummary
        valSummary.ID = "valSum_" & strStepPrefix
 
        Call ConfigureValidationSummary(valSummary, strValidationGroup)
        e.RadWizardStep.Controls.Add(valSummary)
 
        Dim objStep As clsFormStep = MyApplication.Application_Form.Form_Steps.Find(Function(x) x.Form_Step_ID = intFormStepID)
 
        'Loop through all fields in the Form_Step
        For Each field In objStep.Form_Fields
 
            Select Case field.Control_Type_Code
 
                Case clsFormStepDetail.ControlTypes.Textbox
 
                    Dim txtStandard As ucTextbox = LoadControl("~/Control_Library/Standard_Controls/ucTextbox.ascx")
                    Dim objTexbox As New clsTextbox()
                    With objTexbox
 
                        'Set textbox properties
                        .Textbox_Configuration = objTexbox
                        .Validation_Group = strValidationGroup
 
                    End With
 
                    e.RadWizardStep.Controls.Add(txtStandard)
 
                Case clsFormStepDetail.ControlTypes.Checkbox
 
                    Dim chkCheckbox As ucCheckbox = LoadControl("~/Control_Library/Standard_Controls/ucCheckbox.ascx")
                    With chkCheckbox
 
                        'Set checkbox properties
                        .Configure_Validation_Required_Field_Ind = field.Validation_Required_Field_Ind
                        .Validation_Group = strValidationGroup
                    End With
 
                    e.RadWizardStep.Controls.Add(chkCheckbox)
 
                Case clsFormStepDetail.ControlTypes.Dropdown
 
                    Dim ddCodeTable As ucDropdownList = LoadControl("~/Control_Library/Standard_Controls/ucDropdownList.ascx")
                    With ddCodeTable
 
            'Set dropdown properties
                        .Configure_Validation_Required_Field_Ind = field.Validation_Required_Field_Ind
                        .Validation_Group = strValidationGroup
                    End With
 
                    e.RadWizardStep.Controls.Add(ddCodeTable)
 
 
            End Select
 
 
        Next
 
 
 
    End Sub
 
 
    '*************************************************************
    '
    '           FINISH BUTTON - SAVE CODE GOES HERE
    '
    '*************************************************************
    Private Sub wizMyApplication_FinishButtonClick(sender As Object, e As WizardEventArgs) Handles wizMyApplication.FinishButtonClick
 
    Call SaveApplicationForm()
 
        Response.Redirect("~/Dashboard.aspx?msg=applicationSubmitted")
 
    End Sub
 
 
 
    Private Sub wizMyApplication_ActiveStepChanged(sender As Object, e As EventArgs) Handles wizMyApplication.ActiveStepChanged
 
    Call SaveApplicationForm()
 
    End Sub
 
 
#End Region
 
 
#Region "Functions and Sub-routines"
 
    Private Sub ConfigureValidationSummary(ByVal valSum As ValidationSummary, ByVal strValGroup As String)
 
        With valSum
            .DisplayMode = ValidationSummaryDisplayMode.BulletList
            .ShowMessageBox = False
            .ValidationGroup = strValGroup
            .ShowSummary = True
            .CssClass = "alert alert-danger"
 
        End With
 
    End Sub
 
     
    Private Sub SaveApplicationForm()
         
    'Save form values to database here
 
    End Sub
 
#End Region
 
 
 
End Class

 

 

Ken
Top achievements
Rank 1
 answered on 10 Feb 2016
3 answers
174 views

When adding a RadButton with an icon to a RadSlidingPane it messes up the formatting of the button and places the text under the icon.

This is the button code:

<telerik:RadButton ID="RadButton2" runat="server" Text="Test" Width="125px" Skin="Default" RenderMode="Lightweight">
    <Icon PrimaryIconCssClass="rbAdd"></Icon>
</telerik:RadButton>

 When I view the generated source it is adding the following in-line styles to the button.

<span class="rbText rbPrimary" style="width: 100%; padding-right: 0px; padding-left: 4px;">Test</span>

If I take the same exact button and place it outside of the RadSlidingPane the inline styles are gone and the button looks normal.

See attached image for an example of how the button displays improperly.

 

 

 

 

Marin Bratanov
Telerik team
 answered on 10 Feb 2016
1 answer
104 views

Hi,

We are facing issue while deleting events from the GUI. We have GTM(Google Tag Manager) script loaded on the page and that GTM script is blocking the ajax request generated on clicking delete button. When we removed the GTM reference from the page, we were able to successfully delete events.

We also tried to replicate the same issue on telerik scheduler demo page (http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx) which also have the GTM script, but GTM script is not blocking delete request on demo page. 

Could you please help us out in enabling delete functionality of events with GTM script loaded on the page.

 

Thanks

Dhiraj Kumar

 

Plamen
Telerik team
 answered on 10 Feb 2016
1 answer
97 views

Hi,
I'm trying to do a custom save when using the Advanced Form in the RadScheduler and I'm having a problem obtaining the modified values.  I'm able to drag and drop appointments from a grid but I cannot access the modified values in the Advanced Form.

What I'm experiencing is that the 'Form Created' method is called when initially opening an appointment and when the SAVE or the CANCEL buttons are clicked. Should this occur when the SAVE button is clicked? 

protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
{

RadTextBox txtDepartment = (RadTextBox)e.Container.Controls[1].FindControl("txtDepartment");
string deptText = e.Appointment.Attributes["txtDepartment"];

}

When the 'RadScheduler1_FormCreated' is called I am not able to get the modified Text Box values.  I can only access the values originally loaded into the Advanced Form.  Is there a configuration issue?  How do I access teh modified values?

Here is my code:

<telerik:RadScheduler ID="RadScheduler1" runat="server" Height="100%" MinutesPerRow="15" ReadOnly="false" RowHeight="23px" StartInsertingInAdvancedForm="true"
DataEndField="END_TIME" DataStartField="STARTDATE" DataDescriptionField="Description" DataSubjectField="AppointmentText" OnNavigationComplete="RadScheduler1_NavigationComplete"
DataKeyField="Build_AppointmentTypeId" EnableDatePicker="true" OnNavigationCommand="RadScheduler1_NavigationCommand"
OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
OnDataBound="RadScheduler1_DataBound" Skin="Metro" OnAppointmentCommand="RadScheduler1_AppointmentCommand"  EnableAdvancedForm="true" EnableDescriptionField="true"
OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnFormCreated="RadScheduler1_FormCreated"
OverflowBehavior="Auto" OnClientFormCreated="OnClientFormCreated" OnAppointmentDelete="RadScheduler1_AppointmentDelete" Enabled="true"
CustomAttributeNames="Due, Priority, AppointmentColor, User, RecurrenceRule, Reminder, Room, TimeZoneID, Department, AppointmentType, Quantity, ServiceQuantity, LastModifiedBy, LastModifiedDate, CreatedDate, CreatedBy">

<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>

<AdvancedForm Modal="true"></AdvancedForm>
<Reminders Enabled="true" MaxAge="2" />

<AppointmentTemplate>

<div class="rsAptSubject">
<%# Container.Appointment.Subject %>
<p></p>
<%# Eval("Description") %>
<p></p>
<%# Eval("Department") %>
</div>

               

</AppointmentTemplate>
<AdvancedEditTemplate>
<scheduler:AdvancedForm ViewStateMode="Enabled"  runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>' Department='<%# Bind("Department") %>' AppointmentType='<%# Bind("AppointmentType") %>'
Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>'
AppointmentColor='<%# Bind("AppointmentColor") %>' UserID='<%# Bind("User") %>' Quantity='<%# Bind("Quantity") %>' ServiceQuantity='<%# Bind("ServiceQuantity") %>'
LastModifiedBy='<%# Bind("LastModifiedBy") %>' CreatedBy='<%# Bind("CreatedBy") %>'
LastModifiedDate='<%# Bind("LastModifiedDate") %>' CreatedDate='<%# Bind("CreatedDate") %>'
RoomID='<%# Bind("Room") %>' TimeZoneID='<%# Bind("TimeZoneID") %>' />
</AdvancedEditTemplate>

<AdvancedInsertTemplate>
<scheduler:AdvancedForm ViewStateMode="Enabled" runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("Subject") %>'
Department='<%# Bind("Department") %>' AppointmentType='<%# Bind("AppointmentType") %>' 
Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>'
RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>'
LastModifiedBy='<%# Bind("LastModifiedBy") %>' CreatedBy='<%# Bind("CreatedBy") %>'
LastModifiedDate='<%# Bind("LastModifiedDate") %>' CreatedDate='<%# Bind("CreatedDate") %>'
AppointmentColor='<%# Bind("AppointmentColor") %>' UserID='<%# Bind("User") %>' Quantity='<%# Bind("Quantity") %>' ServiceQuantity='<%# Bind("ServiceQuantity") %>'
RoomID='<%# Bind("Room") %>' TimeZoneID='<%# Bind("TimeZoneID") %>' />
</AdvancedInsertTemplate>

<TimelineView UserSelectable="false"  />

<TimeSlotContextMenuSettings EnableDefault="true"  />

<AppointmentContextMenuSettings EnableDefault="true" />
<ResourceTypes>

<telerik:ResourceType KeyField="ColorSequenceId" Name="ColorSequenceId" TextField="ColorSequenceId" ForeignKeyField="ColorSequenceId"></telerik:ResourceType>

</ResourceTypes>

</telerik:RadScheduler>

 

 

Thank you,
Jeff-

Plamen
Telerik team
 answered on 10 Feb 2016
1 answer
51 views

Hi,

I used following code and other code also but not working.

 

  <LabelsAppearance >
                    <TextStyle Color="Red" FontFamily="Arial"  Padding="10" Bold="true"
                        Italic="true" Margin="10" />
                </LabelsAppearance>

Stamo Gochev
Telerik team
 answered on 10 Feb 2016
3 answers
182 views
I am facing image cropping issue in telerik image editor. When red crop tool's area is increased accidentally or purposefully. Its boundary  goes outside view. When we try to resize it then it gives -ve values and image cropping is not done properly.

Is this a known issue? Do you have any solution available for this?
If not do you have any workaround available for this?

Let me know as early as possible.
Please find attachment for more info.

Thanks
Ketan
Vessy
Telerik team
 answered on 09 Feb 2016
1 answer
139 views

Hey..

 We are using you Radeditor in our application with localization. But we see that there are 2 places where localizations are not handled:-

1. Click on hyperlink manager and then click on button next to URL then click on image selector and notice pagination text at bottom.

2. Click on hyperlink manager and then click on button next to URL click on documents. If there is no content in the folder it shows ""No Records to Display" in all languages. 

We need both these things localized. Please help me how to proceed.

 

Thanks in advance,

Vessy
Telerik team
 answered on 09 Feb 2016
3 answers
134 views

right i've read so many threads on how to implement a custom skin for a telerik menu onto my webpage this is what I currently have coded.

 In my web config I have:

<appSettings>
<add key="Telerik.Skin" value="Glow2"/>
<add key="Telerik.EnableEmbeddedSkins" value="false"/>
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false"/>
<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" /></appSettings>

 

in my site master I have

<link href="Skins/Glow2/Menu.Glow2.css" rel="stylesheet" type="text/css" />

 

and for my menu code I use:

<li>
<asp:LoginView ID="SysAdminLV" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="Masters">
<ContentTemplate>
<telerik:RadMenu ID="SysAMenu" runat="server" Skin="Glow2">
<Items>
<telerik:RadMenuItem runat="server" Text="Sys Admin" NavigateUrl="~/Default.aspx">
<Items>
<telerik:RadMenuItem runat="server" Text="Create User" NavigateUrl="~/Staff/Masters/New_User.aspx"></telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Manage Users" NavigateUrl="~/Staff/Masters/Manage_Users.aspx"></telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
</li>

 

 

Now my custom skin is called Glow2 because I made very little changes to the "Glow" skin, im not getting an error or anything the page loads fine its just the links that I have do not pull through the syling from the Glow2 Skin. attached is what the page looks like when loaded.my "home" and "Sysadmin" links are telerik the rest are coded through CSS at the moment.

Ivan Danchev
Telerik team
 answered on 09 Feb 2016
5 answers
106 views

Hi Ivan,

'm using an icon font and have allocated an icon to a node.  When the node is in the More menu any child nodes also display the CSS. If the same main node is accessed when NOT in the more menu the icon doesn't show on the child nodes.  

I'm trying to use some CSS to get the icon to only display on the parent node but am having no luck yet.  Any pointers?

Regards

Jon

Ivan Danchev
Telerik team
 answered on 09 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?