Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
Hi
I have a RadScheduler sitting within a RadAjaxPanel.
It is binding using a provider that I have written inheriting from DbSchedulerProviderBase
It all works pretty well except I am having the issue that when I switch from business hours view to 24 hour view via the context menu the context menu does not update to "show business hours" it still says "show 24 hours...".
I believe that I have traced the issue to the DOM. The RadContextMenu sits right at the top of my form and outside of the AjaxPanel.
Yes I can and will probably have to override the OnClientTimeSlotContextMenu function and change the text myself based upon the current status. However this appears to be a bug. In a future update can this menu be moved to immediately before, after or inside the schedule DOM element?
<telerik:RadAjaxPanel runat="server" ID="pnlSchedule"
    EnableAJAX="true">
    <telerik:RadScheduler runat="server" id="radSch">
  

<AppointmentContextMenuSettings EnableDefault="True" />

<TimeSlotContextMenuSettings EnableDefault="True" />

  
</telerik:RadScheduler>
</telerik:RadAjaxPanel>
Matthew Botting
Top achievements
Rank 1
 answered on 03 Jul 2013
1 answer
181 views
I am currently on v.2013.611.40 of ASP.NET AJAX controls. Yesterday I updated a working project through the control panel. Afterwards I got the error, "... JavaScript runtime error: Sys.InvalidOperationException: Type Telerik.Web.UI.ExpandDirection has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. ...". To diagnose I creating a web user control with just a RadDropDownList on it, then I assign the control to the UserControlName property of an <EditFormSettings> tag on my list control. When I click to edit in the grid I still get the error,  This was a working project before the update. I need to know how to downgrade the controls so I can get back to work.
Bozhidar
Telerik team
 answered on 03 Jul 2013
1 answer
86 views
Hi

How can I set the mask of radmaskedtextbox from cs?

Thanks for replying
Katya
Shinu
Top achievements
Rank 2
 answered on 03 Jul 2013
3 answers
563 views
Hi .
I want to compress all my files uploaded via Radasyncupload and save them as a zip file in a specific folder .
how can I do this . 
tnx
Shinu
Top achievements
Rank 2
 answered on 03 Jul 2013
0 answers
134 views
I am adding my field editors in code behind in Page_Init on every post pack (per the documentation). Some of the field editors are custom types. When I select the field associated with a custom editor, I get the following error:

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadFilterDataFieldEditor.CreateEditorFrom(RadFilterDataFieldEditor baseEditor) +110
   Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName(String fieldName) +68
   Telerik.Web.UI.RadFilter.ChangeExpressionFieldName(RadFilterSingleExpressionItem item, String fieldName) +124
   Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source) +1277
   Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args) +219
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args) +120
   Telerik.Web.UI.RadFilterExpressionItem.FireCommandEvent(String commandName, Object commandArgument) +88
   Telerik.Web.UI.RadFilter.HandleClientCommand(String commandName, String commandArgs) +791
   Telerik.Web.UI.RadFilter.RaisePostBackEvent(String eventArgument) +127
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9642338
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045



My custom rad filter field editor types are created like the example in the documentation. While debugging, none of the overridden methods in my custom editor are ever called.

I am using the latest 2013 Q2 release for .NET 4.5
Kyle Smith
Top achievements
Rank 1
 asked on 03 Jul 2013
2 answers
194 views
for editing appointments,
the function:
            function AppointmentEditing(sender, eventArgs) 
            { 
                
                var apt = eventArgs.get_appointment(); 
                alert(apt.ID); 
                window.radopen("AdvancedFormCS.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm"); 
 
                eventArgs.set_cancel(true); 
                currentApt = null; 
            }
 
the apt.ID returns undefined.
I started debugging and tracing the javascript and it seems the value is instead,
apt._id
is this correct?

it gives me the right id, just don't see this documented anywhere and apt.ID is undefined.
my page is inside a master page.

want to make sure we are using the right values.
I'm using: Telerik.Web.UI Trial Version 2008.1.401.20


David
Top achievements
Rank 1
 answered on 02 Jul 2013
3 answers
147 views
Hello,

Have a treeview and multiple nodes selected.

On server side click of context menu can not get the treeview selected nodes as always returns a count of 0.
How can I get the selected nodes to apply the context menu command to each?

Example: 
select 3 nodes and context menu command "Copy"
on server side can only ever access the node via RadTreeViewContextMenuEventArgs node

Need to be able to loop and do the "Copy" command on the 3 selected nodes...

Thanks,

Marc Cramer
cramer
Top achievements
Rank 1
 answered on 02 Jul 2013
2 answers
127 views

 I have a requirement to put multiple series into a chart. Each series should have a label & the item in the series should also have a label on the x-axis.
 I cannot find any samples that would help me with this and have been banging my head at it for the day.

 I've attached a sample of what our graph should look like. Any help on this would be great!


Thanks
Jeff
Top achievements
Rank 1
 answered on 02 Jul 2013
2 answers
121 views
I'm trying to create a Gantt chart out of the HtmlChart controls.

Is there any way to rotate the Candlestick horizontally.
The Bar Chart only takes a CategorySeriesItem that extends SingleValueSeriesItem.
  - Is there a way to extend this and y2?



Thanks
Steve
Steve
Top achievements
Rank 1
 answered on 02 Jul 2013
2 answers
212 views
Dears,

I am using HtmlChart and encounter some problems.
(1).I try to create series from the data table by creating SeriesItem which needs X and Y values. I saw the item must be decimal but actually my data is X:datetime, and Y:Decimal type. How to create the X value by datetime or even the string value?

ScatterLineSeries series1 = new ScatterLineSeries();
                series1.Name = "date_time";
                series1.LabelsAppearance.Visible = false;

foreach (DataRow row in MyDataTable.Rows)
                {
                    string xx = "traffic_erlang";
                    SeriesItem item1 = new SeriesItem( 100,(decimal)row[xx]); //I put the static value 100 as I don't know how to put the datetime/string
                   
                    series1.Items.Add(item1);

              RadHtmlChart1.PlotArea.Series.Add(series1);
                    RadHtmlChart1.PlotArea.Series.Add(series2);
                    
                }

(2).Do we have any other ways to bind data from datatable by grouping the fields so the dynamic series will be created.
example:
--------------------------
ID | Name | Value
--------------------------
1 | ABC | 200
2 | GED | 340
...... which Name is the dynamic data
Tony
Top achievements
Rank 1
 answered on 02 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?