Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi
I want to install telerik Asp.net Ajax control for Visual studio 2008 ,what vwesion i hav eto download na wher could i found the Msi file
Edward
Top achievements
Rank 1
 answered on 17 Nov 2010
8 answers
802 views
Hi,

I plan to use a treeview with Checkbox enabled and put a textbox with each node. When checkbox checked, the textbox will be visible, otherwise textbox will be hidden. This will be done in javascript for set textbox.style.display and textbox.style.visibility.

I have no problem to setup treeview with textboxes, but my question is how can I get textbox in client side javascript. I try to use node.findControl, but I can't get correct textbox clientid. When first create treeview in server side, I use following code. 

RadTreeNode n = new RadTreeNode();
        TextBox textBox = new TextBox();
        Label label = new Label();
        n.Controls.Add(label);
        n.Controls.Add(textBox);
        n.Attributes.Add("TextBoxID",textBox.ClientID);

in javascript 

function OnClientNodeCheckedEventHandler(sender, eventArgs)
    {
        var node = eventArgs.get_node()
if(node.get_checked())
{
var txtID = node.get_attributes().getAttribute("TextBoxID");
var textbox = node.findControl(txtID);
            if (textbox!=null)
            {
                textbox.style.display="block";
                textbox.style.visibility="visible";
            }

}
    }

but the problem is that textbox always return null. Can someone help me out?

I realy appreciate it.

Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 17 Nov 2010
1 answer
55 views
OK folks. I copied code directly from the tutorial and modified it slightly.

protected void FilterException()
{
    string filterExpression;
    filterExpression = "([ExceptionType] = '" + DDLException.SelectedValue + "')";
    RadGrid1.MasterTableView.FilterExpression = filterExpression;
    RadGrid1.MasterTableView.Rebind();
}

on rebind it fails saying expression expected. filterExpression looks correct from what I can determine. Can someone please help me here? What am I doing wrong?
Pavlina
Telerik team
 answered on 17 Nov 2010
2 answers
113 views
Hello,

I'm trying to add a button to the Image Manager of the RadEditor that opens a window with a Image CMS url and then refreshes the directory content.

Better would actually be to override the Upload button. I tried this, but got two windows as "args.set_cancel(true);" wasn't recognised.

function toolbarClicked(toolbar, args) {
        var buttonValue = args.get_item().get_value();
        if (buttonValue == 'Upload')
        {
           var wnd = window.radopen("./ComplexControls/Editor/EditorDialogs/Img.aspx", null);
           wnd.setSize(400, 400);
               args.set_cancel(true);
        }
    }
 
I would appreciate any help you could give me in this matter.

Thank you.

Paul Herzberg
Paul Herzberg
Top achievements
Rank 1
 answered on 17 Nov 2010
8 answers
2.5K+ views
Hi:
I have a page that is way too big, but it is what it is.  It has 6 tabs (TabStrips), and each tab has a grid (Radgrid).  In one of the grids (which is contained in a user control ascx) clicking on the edit launches a RadWindow, where the user can add or change data.  On save the grid is rebound.  Both the base page and the ascx has a RadWindowManager in them.  The base page RadWindowManager has an OnClientClose="refreshGrid" client side event.  In production (yeah only production), I am getting the following IIS error:
    An error occurred while communicating with the remote host. The error code is 0x800703E3.
when the user closes and saves on the RadWindow.  Production is an IIS 7 environment.
Any suggestions?
Phil
Georgi Tunev
Telerik team
 answered on 17 Nov 2010
1 answer
42 views
Dear sir,
Can i set icon in appointment block.
i want to set small icon at left upper corner of appointment.


Please help me.

Thanks
Chandan Kumar
Lucien
Top achievements
Rank 2
 answered on 17 Nov 2010
2 answers
90 views
Hi

Can anyone please help me, i'm strugeling with this for a while now. i get this error when executing a piece of javascript

Error : Microsoft JScript runtime error: Object doesn't support this property or method

I am using the basic example in telerik tv to create the appointment, there is no problem up untill where i call the event "AppointmentContextClicked".

It throws an exception when it hits var selectedApt = eventArgs.Get_appointment().get_subject();

Source is below


<%@ Page Title="" Language="C#" MasterPageFile="-----------------" AutoEventWireup="true"
    CodeBehind="---------------" Inherits="---------------------" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<telerik:RadCodeBlock runat="server">
<script type="text/javascript">
    //<![CDATA[
    function AppointmentContextClicked(sender, eventArgs) {
        var selectedApt = eventArgs.Get_appointment().get_subject();
        document.getElementById("Text1").value = selectedApt;
    }
    //]]>
    </script>
</telerik:RadCodeBlock>
      
    <input id="Text1" type="text" />
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Body"
        DataEndField="End" DataKeyField="IDDatabaseAppointments" DataSourceID="SchedularDS"
        DataStartField="Start" DataSubjectField="Subject" EnableDescriptionField="True"
        Height="" Skin="Windows7" DataReminderField="Reminder" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
        EnableExactTimeRendering="true" AppointmentStyleMode="Default" AdvancedForm-Modal="true"
        OnClientAppointmentContextMenuItemClicked="AppointmentContextClicked">
        <Reminders Enabled="True" />
        <AppointmentContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenus>
            <telerik:RadSchedulerContextMenu>
                <Items>
                    <telerik:RadMenuItem Text="Hello" />
                </Items>
            </telerik:RadSchedulerContextMenu>
        </AppointmentContextMenus>
        <TimeSlotContextMenus>
        </TimeSlotContextMenus>
    </telerik:RadScheduler>
    <asp:SqlDataSource ID="SchedularDS" runat="server" ConnectionString="<%$ ConnectionStrings:Serv Environment %>"
        DeleteCommand="DELETE FROM [DatabaseAppointment] WHERE [IDDatabaseAppointments] = @IDDatabaseAppointments"
        InsertCommand="INSERT INTO [DatabaseAppointment] ([Subject], [Body], [Start], [End], [IsAllDayEvent], [Location], [Url], [Type], [RecurrencePattern], [TimeZoneString], [Developer], [Productline], [ExceptionAppointments], [Importance], [TimeMarker], [Category], [UserID], [Reminder], [PageType]) VALUES (@Subject, @Body, @Start, @End, @IsAllDayEvent, @Location, @Url, @Type, @RecurrencePattern, @TimeZoneString, @Developer, @Productline, @ExceptionAppointments, @Importance, @TimeMarker, @Category, @UserID, @Reminder, @PageType)"
        SelectCommand="Dairy_LoadSchedules" UpdateCommand="UPDATE [DatabaseAppointment] SET [Subject] = @Subject, [Body] = @Body, [Start] = @Start, [End] = @End, [IsAllDayEvent] = @IsAllDayEvent, [Location] = @Location, [Url] = @Url, [Type] = @Type, [RecurrencePattern] = @RecurrencePattern, [TimeZoneString] = @TimeZoneString, [Developer] = @Developer, [Productline] = @Productline, [ExceptionAppointments] = @ExceptionAppointments, [Importance] = @Importance, [TimeMarker] = @TimeMarker, [Category] = @Category, [UserID] = @UserID, [Reminder] = @Reminder, [PageType] = @PageType WHERE [IDDatabaseAppointments] = @IDDatabaseAppointments"
        SelectCommandType="StoredProcedure">
        <DeleteParameters>
            <asp:Parameter Name="IDDatabaseAppointments" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="Subject" Type="String" />
            <asp:Parameter Name="Body" Type="String" />
            <asp:Parameter Name="Start" Type="DateTime" />
            <asp:Parameter Name="End" Type="DateTime" />
            <asp:Parameter Name="IsAllDayEvent" Type="Boolean" />
            <asp:Parameter Name="Location" Type="String" />
            <asp:Parameter Name="Url" Type="String" />
            <asp:Parameter Name="Type" Type="Int32" />
            <asp:Parameter Name="RecurrencePattern" Type="String" />
            <asp:Parameter Name="TimeZoneString" Type="String" />
            <asp:Parameter Name="Developer" Type="String" />
            <asp:Parameter Name="Productline" Type="String" />
            <asp:Parameter Name="ExceptionAppointments" Type="String" />
            <asp:Parameter Name="Importance" Type="String" />
            <asp:Parameter Name="TimeMarker" Type="String" />
            <asp:Parameter Name="Category" Type="String" />
            <asp:Parameter Name="UserID" Type="Decimal" />
            <asp:Parameter Name="Reminder" Type="String" />
            <asp:Parameter Name="PageType" Type="String" />
        </InsertParameters>
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="UserLevel" SessionField="ChartLevel"
                Type="Decimal" />
            <asp:SessionParameter DefaultValue="0" Name="UserID" SessionField="UserID" Type="Decimal" />
            <asp:QueryStringParameter DefaultValue="" Name="PageType" QueryStringField="Type"
                Type="String" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="Subject" Type="String" />
            <asp:Parameter Name="Body" Type="String" />
            <asp:Parameter Name="Start" Type="DateTime" />
            <asp:Parameter Name="End" Type="DateTime" />
            <asp:Parameter Name="IsAllDayEvent" Type="Boolean" />
            <asp:Parameter Name="Location" Type="String" />
            <asp:Parameter Name="Url" Type="String" />
            <asp:Parameter Name="Type" Type="Int32" />
            <asp:Parameter Name="RecurrencePattern" Type="String" />
            <asp:Parameter Name="TimeZoneString" Type="String" />
            <asp:Parameter Name="Developer" Type="String" />
            <asp:Parameter Name="Productline" Type="String" />
            <asp:Parameter Name="ExceptionAppointments" Type="String" />
            <asp:Parameter Name="Importance" Type="String" />
            <asp:Parameter Name="TimeMarker" Type="String" />
            <asp:Parameter Name="Category" Type="String" />
            <asp:Parameter Name="UserID" Type="Decimal" />
            <asp:Parameter Name="Reminder" Type="String"></asp:Parameter>
            <asp:Parameter Name="PageType" Type="String" />
            <asp:Parameter Name="IDDatabaseAppointments" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>
</asp:Content>

Regards
KobusVisagie
Top achievements
Rank 1
 answered on 17 Nov 2010
5 answers
131 views
Hi,

when an user double-click my radScheduler, a simple inline form appears and he needs to click "Options" to see Advanced version, where he can select a room and resources.

Can I change that behavior to use Advanced form as default?

TIA,

Rubens
Lucien
Top achievements
Rank 2
 answered on 17 Nov 2010
1 answer
148 views
Hello,

we are currently evaluating the brand new RadScheduler for Asp.net Ajax Q3 2010.
I set  StartEditingInAdvancedForm="true" and StartInsertingInAdvancedForm="true" then went in debug mode.
I doubled clicked on an empty space to show the "AdvancedInsertTemplate" form,
it showed up, i entered some text inside the Subject textfield then pressed saved.
I put a break point at the server method "RadScheduler1_AppointmentCommand" and expected to see
e.CommandName set to "Insert"
but unfortunately for me, i was surprised to see that
e.CommandName was set to "update" !!!

Any Idea??? We tried and tried again, no clue.
We just realised that, when StartEditingInAdvancedForm  and StartInsertingInAdvancedForm are set to "false", then e.CommandName is set to "Insert", when clicking on an empty  place, and set to "update" when clicking on an filled placed.

Please, it's urgent, we really want to know if we should use Radscheduler for our business logic.

Thank you in advance for any hint!
Lucien

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
        HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" >
        <telerik:RadScheduler ID="RadScheduler1" runat="server"
            DataDescriptionField="Description" DataEndField="End" DataKeyField="ID"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder"
            DataSourceID="LinqDataSource1" DataStartField="Start" DataSubjectField="Subject"
            EnableDescriptionField="True" Skin="Office2007"
            AdvancedForm-Modal="false"
            EnableExactTimeRendering="True"
            Height="100%"            
            StartEditingInAdvancedForm="true"
            StartInsertingInAdvancedForm="true"            
            OnAppointmentCommand="RadScheduler1_AppointmentCommand"
            OnFormCreated="RadScheduler1_FormCreated"                         
            >
.......
</telerik:RadAjaxPanel >
Lucien
Top achievements
Rank 2
 answered on 17 Nov 2010
1 answer
55 views

Non of the managers will loading sub folders, and there is nothing in the event log to indicate what is going on

Dobromir
Telerik team
 answered on 17 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?