Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
127 views
We are using web services binding with the RadScheduler. When a new appointment is added to the scheduler, the service returns a list of appointments in the OnClientRequestSuccess method.  We would like to access the inserted appointment from this list and use it after the service has completed. However, the item is not an SchedulerAppointment object. What is the best way to convert/cast the returned item to a SchedulerAppointment object?

One option we tried was to get the appointment ID from the item and then retrieve the SchedulerAppointment directly from the Scheduler using the findByID method. However, it appears that the scheduler has not been refreshed when the OnClientRequestSuccess method is called, so the appointment is not found. At what point is the scheduler refreshed?
Peter
Telerik team
 answered on 23 Nov 2010
3 answers
109 views
I am creating the dock dynamuically and for some reason I am having trouble with the DockCommandEventHandler event firing the corresponding c# code in dock_CustomCommand. Did I miss some sort of initialization? Is what I am trying to do possible? 

C#:
public void createWinlets(string title, string position, string reference)
    {
        RadDock dock = new RadDock();
        UserControl ascx = (UserControl)Page.LoadControl(reference);
        dock.Title = title;
        dock.DockMode = DockMode.Docked;
        dock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a");
        dock.ID = string.Format("RadDock{0}", dock.UniqueName);
        dock.Width = Unit.Percentage(50);
        dock.Height = Unit.Pixel(275);
        dock.Skin = "Vista";
        dock.EnableDrag = false;
        dock.CommandsAutoPostBack = true;
  
        dock.Commands.Add(new DockCloseCommand());
  
        dock.Command += new DockCommandEventHandler(dock_CustomCommand);
  
        dock.ContentContainer.Controls.Add(ascx);
  
        /*AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();
        saveStateTrigger.ControlID = dock.ID;
        saveStateTrigger.EventName = "Command";
        UpdatePanel1.Triggers.Add(saveStateTrigger);*/
  
        switch(position)
        {
            case "Left":
                dock.Width = Unit.Percentage(48);
                dock.Height = Unit.Pixel(240);
                RadDockLeft.Controls.Add(dock);
                break;
            case "Right":
                dock.Width = Unit.Percentage(48);
                dock.Height = Unit.Pixel(240);
                RadDockRight.Controls.Add(dock);
                break;
            case "Bottom":
                dock.Width = Unit.Percentage(99);
                dock.Height = Unit.Pixel(230);
                RadDockBottom.Controls.Add(dock);
                break;
            default:
                break;
        }
    }
  
    protected void dock_CustomCommand(object sender, DockCommandEventArgs e)
    {
          
        RadDock dock = (RadDock)sender;
        lbl_error.Visible = true;
        lbl_error.Text = "DEBUG: Rad Dock Closed. " + dock.ID + ", " + dock.Title;
    }
Pero
Telerik team
 answered on 23 Nov 2010
1 answer
95 views
I have a line graph with 50 points on it but I only want to display a 'point mark' for some items.  I can get all the points to show or no points to show, but I have not found a way to get a selected number to show.  I have tried setting the .visible property of each individual ChartSeriesItem.PointAppearance that as I add to the series, no luck...  I also tried setting the ChartSeriesItem.PointAppearance.Dimensions as well as the ChartSeriesItem.Appearance.PointDimentions but there doesn't seem to be any way to make some points different than others on the same line.  Am I missing something?
Evgenia
Telerik team
 answered on 23 Nov 2010
1 answer
83 views
Hi,

There doesn't seem to be one fully working barebones demo of confirming a dock close. All of the examples given are for previous versions showing work arounds for bugs that hopefully don't exist anymore or have contrivances in them that make them unusable.

I want to dynamically add a dock. I want to be able to reorder the docks. I want them to display a confirmation before closing.

I have tried every combination of the multiple examples given. The best I could do is displaying the confirmation but the dock had already closed.

This is a major problem with Telerik. There is no authoritative source of barebones examples. The site is polluted with old versions of examples that don't work anymore. There should be a single comprehensive list of examples organized by library version. This library should be indexed and it should be searchable. The need for this is manifested by the frequency with which people ask the same questions over and over again. It isn't because they didn't try to find the answer themselves - I have spent three hours on this so far. It is because there are multiple conflicting inconsistant examples.

And examples should be barebone. They should show one concept and contain only the minimal set of code that demonstrates the concept. Telerik examples are bloated and confusing because of this.
Pero
Telerik team
 answered on 23 Nov 2010
1 answer
110 views
Hi Telerik Team,

I have RadGrid which is Populated dynamically. After displaying the RadGrid when the user gives any filter criteria in the RadGrid and Selects any filter option and filters the data the Data is being filtered and displayed in the RadGrid.
But When user changes the input parameters for the radGrid the Filter parameters in the RadGrid are not being Cleared.
Help me.

Thanks & Regards,
N Arvind
Princy
Top achievements
Rank 2
 answered on 23 Nov 2010
1 answer
149 views
I'd be grateful of someone could just fill in the blanks for me here (Assume I'm doing all the form handling myself)

I have a recurring appointment. The user opts to edit it.

I catch the Form_Creating event and cancel it. I open my own form.

I call PrepareToEdit() to get the appointment to edit. The user has opted to create a new recurrence exception.

The user updates the details and presses Save.

I call UpdateAppointment() (yes?) What appointment do I pass to it, the original (the recurrence Master) or the new one (the Exception)?

I know I need to handle RecurrenceExceptionCreated but I'm unsure what, if anything, /I/ need to do to ensure this is called and that the EventArgs are properly populated.

Is RecurrenceExceptionCreated raised as a result of me calling UpdateAppointment?

Enquiring minds, an all that

-- 
Stuart
Veronica
Telerik team
 answered on 23 Nov 2010
2 answers
61 views
Hi all

I'm creating a user control which builds on the RadDatePicker, essentially giving the developer the opportunity to pair date pickers together to form a min/max combination.  But on adding the user control to an aspx page, none of the inherent RadDatePicker client side stuff seems to work!

User control. 
<%@ Control Language="C#" AutoEventWireup="true" ClassName="kitsTest" CodeBehind="itsMinMaxRadDatePicker.ascx.cs" Inherits="UserControls.itsMinMaxRadDatePicker" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<telerik:RadDatePicker ID="itsRadDatePicker" DateInput-OnClientDateChanged="itsMinMaxRadDatePicker" runat="server" />
with nothing in the code behind yet.

I add this custom control to my aspx page like so:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/FormMasterPage2.master" AutoEventWireup="true" CodeBehind="AcademicYearEdit.aspx.cs" Inherits="Infrastructure.AcademicYearEdit" %>
<%@ Register TagPrefix="itsRadDatePicker" TagName="kitsTest" Src="UserControls/itsMinMaxRadDatePicker.ascx" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<itsRadDatePicker:kitsTest ID="test1" runat="server"></itsRadDatePicker:kitsTest>
</asp:Content>

It appears on the page, but when I click on the calendar image, nothing happens!  Its as if none of the JS is working...

Any hints for me?

Thanks in advance

kitster
Kit
Top achievements
Rank 1
 answered on 23 Nov 2010
1 answer
121 views

Hi,

 I have a RadGrid (with Grouping and Filter buttons) displaying data. The grouping functionality is working and default value is set to expanded i.e. when I add a column to the group the individual groups are expanded). 
 The problem is though that when I navigate away and return the individual groups are collapsed. I have to open them up individually. Is there any way I can always get the items to be expanded? Would appreciate any comments/suggestions with in the code-behind file or in the front-end ASP.NET code

Thanks,
A.

*** ASP.NET Code as Follows:***

                <telerik:RadToolBar runat="server" ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick">
                    <Items>
                        <telerik:RadToolBarButton CommandName="ShowGrouping" CheckOnClick="true" SkinID="GroupIcon"
                            Text="Show Grouping" AllowSelfUnCheck="true" Group="1" Checked="False" />
                        <telerik:RadToolBarButton CommandName="ShowFiltering" CheckOnClick="true" SkinID="SearchIcon"
                            Text="Show Filters" AllowSelfUnCheck="true" Group="2" />
                    </Items>
                </telerik:RadToolBar>
                <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="TelerikGridOnNeedDatasource"
                    PageSize="50" DataSourceID="dsTypeActions" AllowPaging="True" PagerStyle-AlwaysVisible="true" AutoGenerateColumns="False" AllowSorting="True">
                    <MasterTableView DataSourceID="dsTypeActions" AllowCustomSorting="True" OverrideDataSourceControlSorting="true" GroupsDefaultExpanded="True">                
                        <Columns>
                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name1" UniqueName="Name">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Address" HeaderText="Address1" UniqueName="Address">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </asp:View>

Marin
Telerik team
 answered on 23 Nov 2010
1 answer
1.3K+ views
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">Hi Guys,<br><br>         I'm new for telerik components. when i installed the rad controls in asp.net, the server page will look like shown below this error. any help would be greatly appreciated.  <br><br>Could
 not load file or assembly 'System.Web.Entity, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
dependencies. The system cannot find the file specified.</font><br><br><add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Daniel
Telerik team
 answered on 23 Nov 2010
7 answers
133 views
Hi,

I have a radgrid with inplace editing. Everything works fine, but now I want to add a warning if the user exits the grid while an item is still in edit mode, is there an easy way to do this?

Thanks,
Judy
Nikolay Rusev
Telerik team
 answered on 23 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?