Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
155 views
Hi,

I have a RadScheduler control which is bound to appointments client side via a web service. I have defaulted the control to open the advanced insert/edit form when inserting/updating appointments. I would like to be able to pre-set the text in the subject text box when inserting a new appointment. I have hooked up to the OnClientFormCreated event and tried access the controls from javascript and set the text. I have tried the following:

var subjectJQueryObj = $telerik.$("[id$='Subject']");
var subjectBox = document.getElementById(subjectJQueryObj.attr('id'));
subjectBox.value = "hello";
 and also:
var subjectJQueryObj = $telerik.$("[id$='Subject']");
var subjectRadTextBox = $find(subjectJQueryObj.attr("id"));
subjectRadTextBox.set_value("hello");

Occasionally when I place an alert after these pieces of code I can see the text in the text box but once the function completes it is removed and left with a blank text box.

Can this functionality be achieved? Any help much appreciated.

Thanks

David
David Harman
Top achievements
Rank 1
 answered on 08 Mar 2013
1 answer
117 views
How do i trap this error.  What are my options. 

RequestString: /Campaign/Controls/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&UseRSM=true&Skin=Web20&Title=Image+Manager&doid=6634a678-568e-4966-ac3a-b35a54923776&dpptn=

Server: EWHSERVER1291

User Identity: aXXXXXXX@XXXXXXX.com

StackTrace:

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileSystemEnumerableIterator`1.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.IO.DirectoryInfo.InternalGetDirectories(String searchPattern, SearchOption searchOption)

   at Telerik.Web.UI.Widgets.FileSystemContentProvider.DirectoryLister.GetDirectories(DirectoryInfo directory, String parentPath)

   at Telerik.Web.UI.Widgets.FileSystemContentProvider.DirectoryLister.GetDirectory(DirectoryInfo dir, String virtualName, String location, String fullPath, String tag)

   at Telerik.Web.UI.Widgets.FileSystemContentProvider.ResolveRootDirectoryAsTree(String path)

   at Telerik.Web.UI.RadFileExplorer.HasSubFolders(String virtualPath)

   at Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode)

   at Telerik.Web.UI.RadFileExplorer.BindExplorer()

   at Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


This happens when a specific user clicks the image manager icon in the RadEditor.  It doesn't happen all the time, but it seems like it happens about once a day.  The entire call stack is isolated in code that i don't really have access to.  Are there any options for handling this?  I really don't believe the issue is that the path isn't found.  are there other reasons this error could be thrown?  Could it have to do with the number of items that are being requested?  it looks like there is a loop here in the call stack, but it's not possible to know if this error occured the first time through the loop or somewhere in the middle.  The image library for this account has a few sub-folders and almost 475 image files of various sizes.   Is it possible if we were able to cut down on the number of items in this folder (at least in the root) that this problem would go away?  I don't seem to have this issue with any other users, and i have 700+ active users who connect to upwards of 4000 different image library locations with no problems.

Looking for help or suggestions here.  When this happens the image manager popup crashes and shows our generic error page on our site.  it sends us an email with the call stack and the relevant request / form /session variables.  We are using version 2012.2.912.40, but this problems seems like it's been happening for a while now for a few older versions. 

One recent change that we did make was to change the security setting in IE to disable enhanced security configuration.  This actually did clear up a number of errors were were experiencing at random, even though the errors were happening in IIS.  one of the things that the enhanced security apparantly controls is access to UNC paths and shares and this setting seemed to have an impact on IIS.  I was hoping that it would also fix this error, but so far we're still seeing it about once a day.

The image manager folder is a virtual directory in IIS7, that Virtual Directory is mapped to a custom folder on a NAS.  We have thousands of account specifc folders and none seem to be experiencing the issues that this one is.

Thanks!
-Mark

Rumen
Telerik team
 answered on 08 Mar 2013
1 answer
118 views
Hi

I have used RadNumericTextBox  when i change to calculation in server side code.
Enter text changed tab key press next field to type still calculation firing still typing field clear. how to solve this problem?

Thanks,
Ansari.
Eyup
Telerik team
 answered on 08 Mar 2013
1 answer
93 views
Hi,

Recently I got situation to update the Telerik version 2013 (Which I installed this year) to my existing project and the existing project previously had the Telerik version  2011 or 2012 (Which I instaleed last year July or August 2012). 

After this upgrade I am getting "null" error/exeption on tab click.

Due to this issue I have rolled back to use the old/previous Telerik Version. But I am interested to use the latest/new version of Telerik conrtrols.

It will great if any one is helping me to get ride of that issue.

Thanks in advance !

Thank You
Regards
Ganapathy 
Eyup
Telerik team
 answered on 08 Mar 2013
1 answer
153 views
In this demo:

http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultvb.aspx

in the radtextbox field associated with the label "Single line:", when text is entered, a small "x" appears in the right hand side of the radtextbox.  How is this accomplished?  It is not apparent to me in the code.

Thanks,
Dan 
Eyup
Telerik team
 answered on 08 Mar 2013
1 answer
580 views
I see many other posts about this problem, but none seem to be the same problem i am having.

The scenario is simple....i have a single .ASPX page which contains a single RadComboBox and 3 or 4 usercontrols, all of which contain a single RadGrid.  Based on the selection made in the RadComboBox i want to change the datasource for each of the RadGrids in the usercontrols, and rebind them.

When the page is initially opened, the ComboBox is empty. When i select an item it fires the event as expected and everything seems to be fine, datasources are correctly modified, and RadGrids rebind. 

However, when i then change the selection by selecting a different item in the RadCombobox, the OnSelectedIndexChanged event does not fire....and i am confused as to why.  It also seems as though I have to click twice on an item to get it to make the selection....no idea why this would be the case either.

Here are the relevant bits of code:

.ASPX Page
<asp:ObjectDataSource ID="dsTerm" runat="server" SelectMethod="FetchList" TypeName="BenemTech.SHSR_DonorMgmt.DTO.TermDTO" />
 
<telerik:RadComboBox ID="cboGraduatingTerm" runat="server"
                    DataSourceID="dsTerm" DataTextField="Description"
                    DataValueField="TermID" EmptyMessage="Please Select"
                    onselectedindexchanged="cboGraduatingTerm_SelectedIndexChanged" AutoPostBack="true" AppendDataBoundItems="true">
                    <Items>
                    <telerik:RadComboBoxItem Text="Please Select" Value="-1" />
                    </Items>
                </telerik:RadComboBox>

Code Behind:
protected void Page_Load(object sender, EventArgs e)
        {
        }
 
protected void cboGraduatingTerm_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            int termID = System.Convert.ToInt32(this.cboGraduatingTerm.SelectedValue);
 
            if (termID > 0)
            {
                pnlRecipients.Visible = true;
 
                // Need to set the value of the GraduatingTermID of the recipients control. By doing so it should also be rebound.
                this.usrSelectPSRecip.GraduatingTermID = termID;
                this.usrSelectMSRecip.GraduatingTermID = termID;
                this.usrSelectHSRecip.GraduatingTermID = termID;
                this.usrSelectUnivRecip.GraduatingTermID = termID;
            }
            else
            {
                pnlRecipients.Visible = false;
            }
       }

the user controls "usrSelectPSRecip" etc are just a simple usercontrols that each have a single Radgrid in it as well as a few additional properties.

The important thing is that the first time i select an item from the RadCombobox, it works great.......but anytime after that it doesn't fire the event.

Any suggestions as to why?

Thanks in advance.

Paul H.
Nencho
Telerik team
 answered on 08 Mar 2013
2 answers
145 views
Currently we use RadGrid (Hierarchy) with only 2 levels
Parent

ColumnA, ColumnB,                                                                                       ColumnC, ColumnD, ColumE
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
...
ColumnA,  ColumnB,                                                                                      ColumnC, ColumnD, ColumE
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH

I see that TreeList does the alignment already between the parent and child rows.

My question is can the child of a TreeList have different columns as the parent?
Michael
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
116 views
Hello.  I'm wondering if I can set up the RadAsyncUpload control to allow the page to be validated for required fields before the user can select files for upload.

Currently it's set up so I'm using the OnClientFileSelected event to try to catch the validation.  It fails validation, but the Async upload is still performed.   I'd prefer to perform validation when the "SELECT" button is clicked, and prevent opening of the file dialog window altogether.

Is there a way to do this?  Thanks.
<telerik:RadAsyncUpload ID="RadUpload" ControlObjectsVisibility=None runat="server" OnClientFilesUploaded="OnClientFilesUploaded" OnClientFilesSelected="OnClientFilesSelected"
HideFileInput="true" Skin="Hay" MultipleFileSelection="Automatic" AllowedFileExtensions=".jpeg,.jpg,.png,.gif" />

function OnClientFilesSelected(sender)
{
if ( !Validate() ) return false;
}
Plamen
Telerik team
 answered on 08 Mar 2013
7 answers
361 views
I have a customer who wants me to build a reservation system.

The problem is that lessens can be from different lenght. 25 min, 40 min, 50 min 1h10 min for example (even worse he wants it to be multi client capable where they can set there own times)

To make it even more complicated some of the clients my want any lessons to follow streight to the next. Other might want a 5 or 10 minutes break after each lesson that was booked.

Imagine this
Golf Pro 1 gives 25min, 50min and 1h 30 min lessons and wants 5 minutes break after each booking.
Golf Pro 2 gives 25min, 40 min, and 1 hour lessons no breaks within.

I rember having done a reservation system with radsceduler a while back but the each had 30 minutes slots on the hour and half hours with no breaks in between.

Anyone sees an solution how I would programmicaly approach this problem (more of of a concept question) and if RadScheduler could handle the task. Or maybe Radsceduler only for showing booked times and show available times with an pop up or so.

Markus
Plamen
Telerik team
 answered on 08 Mar 2013
1 answer
96 views
I have a RadCalendar on a site I'm developing and need to set a number of days as special days (or at least I need to highlight days somehow).

I have created a style that I can apply to them, and it works perfectly if I set the border and background colours, but as soon as I try to apply a background image instead of the background colour (so the day has a gradient) it doesn't.

I've tried setting !important in my stylesheet but it's made no difference.

I have also tried applying the style using a CalendarDayTemplate like so without any joy...

<CalendarDayTemplates>
    <telerik:DayTemplate ID="BusyDayTemplate" runat="server">
        <Content>
            <div class="rcTemplate rcDayDate BusyDay">
                [DayOfMonth]
            </div>
        </Content>
    </telerik:DayTemplate>
</CalendarDayTemplates>


How can I use the default built in skin for the RadCalendar, but apply a background image to the special day?

Thanks.
Galin
Telerik team
 answered on 08 Mar 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?