Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
270 views
I have downloaded trial version of TELERIK controls for ASP.Net AJAX few days back.
My application uses Callback to load content inside the RadSplitter control.(Please note not AJAX callbacks, simple callbacks)
I have set the RegisterWithScriptManager property of RadSplitter =false, to allow rendering the RadSplitter's  HTML output after  callback.

The RadSplitter gets rendered successfully, but none of the RadSplitter functionality like (resize etc) works  after the callback.
Your forums suggest to manually register the RadSplitter scripts into the RadScriptManager, to get the functionality back.
I have 2 queries-

Query 1-
Do I use the below code snippet ?
Telerik.Web.UI.RadScriptManager.RegisterClientScriptBlock(RadSplitter1 , this.GetType(), "", "", true);
 Query 2. If so what will I pass to the 4th argument ?- "script".

PLEASE TREAT THIS AS URGENT.

I need to take a business decision for using Telerik controls based on this.  Have already posted similar query earlier, but have received no response so far.
Thanks, Tanima


Dobromir
Telerik team
 answered on 22 Nov 2010
1 answer
83 views
How to check which columns are grouped ?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2010
1 answer
149 views
Hello,

I was testing out the demo for the GridAttachmentColumn directly from the demo page - http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx and while I tried uploading a file from both a Local and Network Drives, I keep getting a 'Sorry couldn't find a page' error.  I have tried in both Internet Explorer 7 and FireFox 3.6.12 browsers. 

Also, I have developed a page using the most current RadControls for ASP.NET AJAX Q3 2010. Although uploading and viewing the file (.XLSX) from a local drive did not have any errors, however viewing the file after uploading from a Network drive produced this error:

Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

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.ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

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:

[ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:]
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString() +543643
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +233
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) +422
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +147
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +51
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +70
   Telerik.Web.UI.GridCommandEventArgsFactory.CreateGridCommandEventArgs(GridItem item, Object commandSource, CommandEventArgs originalArgs) +676
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +105
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +46
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8614
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Do you know how I can fix this problem?

Thank you
Veli
Telerik team
 answered on 22 Nov 2010
3 answers
101 views
I'm having a problem with using the exchange provider with rad scheduler. The load time for data is excessive on calendars, esp when they have many recurring events. I think the reason boils down to 2 things (please let me know if there's more...):

1. the size of the XML returned by EWS
2. the fact that the exchange provider requests all recurring events, regardless if they will actually have an instance within the date range or not.

1. the size of the XML returned by EWS:

In the GetCalendarItems() method in ExchangeSchedulerProvider, I changed BaseShape from AllProperties to Default, and added the following additional properties:
UnindexedFieldURIType.itemBody
UnindexedFieldURIType.calendarTimeZone
UnindexedFieldURIType.calendarRecurrence
UnindexedFieldURIType.calendarFirstOccurrence
UnindexedFieldURIType.calendarLastOccurrence

this *seems* to give radscheduler all that it needs, and the returned xml doc from EWS shrank from 2.6MB (!) to about 200K, for 124 records. This actually still seems kind of big to me, and I'm worried about scalability.

2. Exchange Provider requests all recurring events

It also looks like in the GetAppointments() method, the provider gets all "regular" events within the given timespan, as well as all recurring events:

if ((item.Start < owner.VisibleRangeEnd && item.End > owner.VisibleRangeStart) ||
                  item.CalendarItemType1 == CalendarItemTypeType.RecurringMaster)
                {
                    itemIds.Add(item.ItemId);
                }

Thinking about it, this kind of makes sense. How would we know if any given recurring event has a recurrence within a given timespan if we don't get all recurring masters, and then parse their recurrence rule, checking to see if there's an actual instance in the time we're looking at. However, this is hugely inefficient, and there must be a better way. In that example above, I'm getting 124 event records. But in that same example, I'm actually only displaying 2 of them (!). All the rest are recurring events that were set up way in the past (years sometimes), and whose recurrence has completed. And we use outlook web access here at work, where my calendars display correctly, and don't take seconds (or minutes) to load.

Could anyone offer assistance about how to improve the responsiveness of radscheduler with EWS, esp in the case of a calendar with many recurring events.

Thanks in advance

Jonathan
Hans Santens
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
42 views
Hi,

I have developed a custom control which is placed inside the <FilterTemplate> of a GridBoundColumn. I am hoping to be able to get a reference to that GridBoundColumn from the control, in order to read certain properties (UniqueName, DataField, and CurrentFilterValue), but looking through the Parent hierarchy, I wasn't able to spot it.

Can you recommend a way of getting the column object reference?

Thanks,
Veli
Telerik team
 answered on 22 Nov 2010
1 answer
79 views
Dear Sir ,

I am using following code for open Appointment Context Menu using left menu Click this code is provided by your team now Context Menu is Opening but when i click on any menu item then its shows error  java script error _internalId is null or not and object.


function OnClientAppointmentClick(sender, args) {
            sender.get_appointmentContextMenus()[0].show(args.get_domEvent());

        }


I have attached error screen shots please give me solution.


Thanks
Chandan Kumar
Veronica
Telerik team
 answered on 22 Nov 2010
1 answer
107 views

Hi,

My application loads external links in a radwindow and I would like to show a custom error message rather than the standard page based on error messages. I was wondering how this could be accomplished using Radwindows. I dont see any obvious events i could use.

The error messages could possibly be based on HTTP standard response codes.

TIA 
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
1 answer
63 views
I found in some other thread an answer to my question about stopping the Rotator to continue scrolling past the last item (WrapFrames)...
And I found a thread that shows how to preserve the selectedIndex in the rotator as well... however, when combining WrapFrames="False" and setting the InitialItemIndex to the correct index the RotatorScrolling seems to get messed up.

For example, if you have 10 elements in the rotator and only 5 items are shown at the time, you can scroll to the next 5 elements without problems. If you then select item #6, it correctly shows me element 6 (index=5), the index is preserved correctly but I'm suddenly able to scroll NEXT, but not back. If I click the Next (show the next 5 elements), I see the first 5 elements...

Know issue? Or have I done something wrong ?
Fiko
Telerik team
 answered on 22 Nov 2010
3 answers
96 views
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
1 answer
115 views
I am using the RadWindow as a dialog functionally it works fine for everything I am doing. There are two more cosmetic things I want to do and I am having trouble with them.

1. I want to set the initial focus to a textbox in the window. I have tried this in a javascript, form tag, and in the page load on the code behind and neither has worked:

javascript:

 

 

var templateName = document.getElementById("txtTemplateName");

 

templateName.focus();


code behind:

txtTemplateName.Focus();

form tag:

 

<

 

 

form id="form1" method="post" runat="server" defaultfocus="txtTemplateName">

 

 

 

 


2. I want to make a button on the window the default button and allow the enter key to press the button. I have set the button as the default button in the form tag and it appears to make it the default, but I press enter and the window clears all input, but it doesn't run the code for the button, then if I reenter the input and click the button with the mouse I get javascript errors.

form tag:

<

 

 

form id="form1" method="post" runat="server" defaultbutton="btnOK" >

 


Thank you in advance for your help.
Georgi Tunev
Telerik team
 answered on 22 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?