Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views
Hello,

In our app, we allow users to select among default Telerik skins. We now created a custom Skin, wrapped up in a .dll, and we want that skin to be available to the users as well. So, User 1 will be using the Telerik skin Sunset, whereas User 2 will be using our Custom skin.

However, I could not find a way to register our skin dll and use it side-by-side with the default skins.

How can we implement this scenario?

Best regards.
Galin
Telerik team
 answered on 26 Jun 2012
0 answers
53 views
Hello friends,

I want to set up my security system to call out wireless to the monitoring center, at the moment it is calling out on land-line which I want to disconnect, I know I need a voip router connected to my security system, but how does the computer or modem receive the signal and how does it dial out?

Best regards
Steven Dilley
Steven
Top achievements
Rank 1
 asked on 26 Jun 2012
15 answers
306 views
Hi Tsvetina,

I've been trying to reply to you on the following topic

How to display background colour on RadNumericTextBox and RadGrid cell after a value is entered?

but I always got a server error.

Regards,
Herman
Vasil
Telerik team
 answered on 26 Jun 2012
1 answer
202 views
Hello,

I am using notification control to display some message to end user.

normally, it displays how many request you have, which is done through database query

now if there are some requests then it must popup

but i need if there is no request then notification should not popup

how can i do so,

Regards

Marin Bratanov
Telerik team
 answered on 26 Jun 2012
1 answer
144 views
I can't seem to find anywhere that this is explained - here is what I am looking to do:

I have a RadWindowManager on my Page
I want to call a RadWindow that may have a large grid in it
The RadWindow is set to AutoSize and if the Grid is longer than the parent browser window, I would like:
1. The RadWindow to show it's full height, without scrollbars
2. The Parent window would now scroll up and down to allow you to see the entire RadWindow content

Is this possible?
Marin Bratanov
Telerik team
 answered on 26 Jun 2012
5 answers
174 views
I'm trying to set the IconUrl for a RadWindow from a .skin file, thusly:

<telerik:RadWindow runat="server" SkinID="AddPersonNoteWindow"
    IconUrl="Images/Icons/note_add.png" />

The value is applying, however it's coming out incorrect:

background-image: url("//App_Themes/Default/Images/Icons/note_add.png")

The double forward slashes near the beginning cause the icon to not work.

What's up with this?

[EDIT]

Seems unrelated to the Skin file. When I set the icon without the skin file, I get the same issue.

I think the Telerik code should probably not generate these double slashes.
Marin Bratanov
Telerik team
 answered on 26 Jun 2012
1 answer
112 views
Hi,
I want to be able to prevent the toggle button from posting back, while retaining the toggle state change in order to run some custom client-side code that represents the action taken by the button-click.

I noticed that one can cancel the postback by using:
args.set_cancel(true)
however when this is done, the toggle event itself is completely cancelled and the state remains as-is. There doesn't seem to be any Postback="false" options on the RibbonBar items, am I missing something?

Thanks,




Kate
Telerik team
 answered on 26 Jun 2012
1 answer
164 views

Hi guys,

I’m having a issue with a RadWindow which contains an UpdatePanel in combination with the RadWindowManager.

When the popup is added during a GET request it throws an error:

Cannot unregister UpdatePanel with ID 'test' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.

When I disable the line: “createRadWindow()” it works and the popup is visible.

Why can’t the popup be created during a GET request?

I’ve read this page: http://www.telerik.com/support/kb/aspnet-ajax/window/cannot-unregister-updatepanel-with-id-updatepanelid-since-it-was-not-registered-with-the-scriptmanager.aspx

But I use the RadWindowManager because it recreates the RadWindow from the ViewState in a postback request.

In short I have two questions:
How can I fix this issue? I Need the RadWindowManager to recreate my windows so events for controls on these dialogs work properly.
Why does the popup work when created from a postback and not from a get request.

Kind regards,
DvdBrink

Below is my sample code

 aspx code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikRadWindowIssue.Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="upanel" runat="server" ChildrenAsTriggers=false UpdateMode=Conditional>
            <ContentTemplate>
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                </telerik:RadWindowManager>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    </form>
</body>
</html>

CSharp code
using System;
using System.Web.UI;
using Telerik.Web.UI;
 
namespace TelerikRadWindowIssue
{
    public partial class Default : System.Web.UI.Page
    {
 
        protected override void OnInit(EventArgs e)
        {
            ScriptManager1.RegisterAsyncPostBackControl(Button1);
            Button1.Click += new EventHandler(Button1_Click);
 
            createRadWindow(); //With this line enabled the page crashes
            //Disable and click on the button, same code, but the window opens correctly
 
            base.OnInit(e);
        }
 
        void Button1_Click(object sender, EventArgs e)
        {
            createRadWindow();
            upanel.Update();
        }
 
        private void createRadWindow()
        {
            TestWindow window = new TestWindow();
            RadWindowManager1.Windows.Add(window);
        }
 
        private class TestWindow : RadWindow
        {
            public TestWindow()
            {
                ContentContainer.Controls.Add(new UpdatePanel() { ID = "test" });
                VisibleOnPageLoad = true;
                Width = 150;
                Height = 150;
            }
        }
    }
}
Marin Bratanov
Telerik team
 answered on 26 Jun 2012
4 answers
330 views
I don't understand RadScheduler.
I want to bind from database. Here is my code. Is that right?
I just want to a basic perform. But I think my code is somewhere That's weird.........
In order to rebind(refresh) every time do I need to call GetSchedule()?
(When I removed "IsPostBack" check, code gives me the "Invalid attempt to call FieldCount when reader is closed" error)
So, what's wrong? please, help me somebody. T-T and forgive my basic English skills.

<body>
    <form id="form1" runat="server">
    <div class="telerikControls">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" OutputCompression="Disabled">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script language="javascript" type="text/javascript">
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadSchedulerTemplate">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSchedulerTemplate" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSchedulerTemplate" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadButtonNewAppointment">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSchedulerTemplate" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
    </div>
    <div>
        <table width="100%">
            <tr>
                <td align="right">
                    <telerik:RadButton ID="RadButtonNewAppointment" runat="server" EnableEmbeddedSkins="true" Skin="Default" Text="New" Width="60" />
                </td>
            </tr>
            <tr>
                <td>
                    <telerik:RadScheduler ID="RadSchedulerTemplate" runat="server"
                        EnableDescriptionField="true" Height="800"
                        SelectedView="DayView" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
                        DataDescriptionField="Description" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
                        DataReminderField="Reminder">
                        <AdvancedForm Modal="true" />
                        <Reminders Enabled="true" />
                        <AppointmentContextMenuSettings EnableDefault="true" />
                        <TimeSlotContextMenuSettings EnableDefault="true" />
                    </telerik:RadScheduler>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>


Private Sub _RadSchedulerDefault_Init(sender As Object, e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
        GetSchedule()
    End If
End Sub
 
Private Sub GetSchedule()
    Dim sqlCommand As SqlCommand = New SqlCommand
 
    Try
        _sqlConnection.ConnectionString = DBConnectionManager.OpenConnection()
        sqlCommand = _sqlConnection.CreateCommand
        sqlCommand.CommandType = CommandType.StoredProcedure
        sqlCommand.CommandText = "S_01"
        _sqlDataReader = sqlCommand.ExecuteReader
        RadSchedulerTemplate.DataSource = _sqlDataReader
    Catch ex As Exception
        DBConnectionManager.CloseConnection(_sqlConnection, _sqlDataReader)
    Finally
        DBConnectionManager.CloseConnection(sqlCommand)
    End Try
End Sub

Private Sub RadSchedulerTemplate_DataBound(sender As Object, e As System.EventArgs) Handles RadSchedulerTemplate.DataBound
    DBConnectionManager.CloseConnection(_sqlConnection, _sqlDataReader)
End Sub

Private Sub RadSchedulerTemplate_AppointmentInsert(sender As Object, e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadSchedulerTemplate.AppointmentInsert
    Dim dbConnection As SqlConnection = New SqlConnection
    Dim dbCommand As SqlCommand = New SqlCommand
 
    Try
        Dim app As Appointment = e.Appointment
        Dim subject As String = app.Subject
        Dim startDate As DateTime = app.Start
        Dim endDate As DateTime = app.End
        Dim recurrenceRule As String = app.RecurrenceRule
        Dim recurrenceParentID As Integer = app.RecurrenceParentID
        Dim description As String = app.Description
        Dim reminder As String = app.Reminders.ToString
        dbConnection = DBConnectionManager.OpenConnection()
        dbCommand = dbConnection.CreateCommand
        dbCommand.CommandType = CommandType.StoredProcedure
        dbCommand.CommandText = "S_02"
        dbCommand.Parameters.Add("@Subject", SqlDbType.VarChar).Value = subject
        dbCommand.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = startDate
        dbCommand.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = endDate
        If Not String.IsNullOrEmpty(recurrenceRule) Then
            dbCommand.Parameters.Add("@RecurrenceRule", SqlDbType.VarChar).Value = recurrenceRule
        End If
        If recurrenceParentID <> 0 Then
            dbCommand.Parameters.Add("@RecurrenceParentID", SqlDbType.Int).Value = recurrenceParentID
        End If
        If Not String.IsNullOrEmpty(description) Then
            dbCommand.Parameters.Add("@Description", SqlDbType.VarChar).Value = description
        End If
        If Not String.IsNullOrEmpty(reminder) Then
            dbCommand.Parameters.Add("@Reminder", SqlDbType.VarChar).Value = reminder
        End If
        dbCommand.ExecuteNonQuery()
        GetSchedule()
    Catch ex As Exception
    'exception
    Finally
        DBConnectionManager.CloseConnection(dbConnection, Nothing, dbCommand)
    End Try
End Sub
 
Private Sub RadSchedulerTemplate_NavigationCommand(sender As Object, e As Telerik.Web.UI.SchedulerNavigationCommandEventArgs) Handles RadSchedulerTemplate.NavigationCommand
    GetSchedule()
End Sub
Marcel Härry
Top achievements
Rank 1
 answered on 26 Jun 2012
1 answer
85 views
Hi all,

How can I make a boundcolumn readonly while editing a row?
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?