Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
157 views
Hi, I have 2 combox box on Load on demand. 
The first one is in Autopostback mode cause when an item is selected, the second combo box is loaded on demand thanks to the selected value of the first combobx. It works perfectlly.

Nevertheless, when an another item is selected in the first combobox, I want to "erase" the selected item of the second combobox.

I tried to use item.selected.remove(), but the selected item persists in search field. Is there a trouble with the removing option when a combobox is loaded on demand? I also tried to count the number of the second combo box but it returns 0.

Thanks a lot for helping.
Kalina
Telerik team
 answered on 10 Feb 2011
1 answer
98 views
We have an ASP.Net application that displays information for each page from the database.
The information includes standard ASP.Net controls and custom controls.
It means all these controls definition, properties (i.e position, color fiont etc) is stored in the database.

We want to develop a wizard that allows to open such a dynamic page and change the properties of these dynamic controls and save changes as properties back into database.

Can we open a page in RAD Editor that has different elements(controls) defined from database, click of each element (control)
access and change each controls properties (like font-color, background, etc) and when clicked save should save each property into the database.

My manager is expecting Telerik RAD Editor should help to achieve this.

Any guidance on this side is appreciated.

regards
Ami
Rumen
Telerik team
 answered on 10 Feb 2011
3 answers
176 views
First off, I'm a newb to the Telerik ASP.NET controls and am currently eval'ing the latest download.  I've been through all of the forums and can't find an answer to this one.

I'm getting a "Microsoft JScript runtime error: Telerik.Web.UI.RadScheduler is null or not an object' error.  I'm basing my code from what I found out on the "Scheduler / Binding to Generic List" demo.  I'm using Master pages and am trying to simply bind the RadScheduler to a custom appointment class which I have created.  I'm wanting to have read-only calendar representation of a single day's activities on a webform.  Pretty basic requirement for now <grin>... My code below:

Markup:
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadScheduler ID="RadScheduler1" runat="server" EnableEmbeddedSkins="false" 
        Skin="MPower" ReadOnly="true" DataKeyField="AppointmentID" DataSubjectField="Subject" 
        DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" 
        DataRecurrenceParentKeyField="RecurrenceParentID" width="750px" 
        DayStartTime="08:00:00" DayEndTime="20:00:00" TimeZoneOffset="03:00:00"  >
    </telerik:RadScheduler>
</asp:Content>

CodeBehind (located in the Page_Load):
AppointmentCollection appointments = new AppointmentCollection();
this.RadScheduler1.DataSource = appointments.GetAppointmentsByDate("08/19/2011");

As well, if it proves helpful...the offending JS line of code is below.  I can shift-F9 and see that my scheduler control "ctl00_ContentPlaceholder1_RadScheduler1" is populated w/all of the correct data from my binding code...it's just that the "Telerik.Web.UI.RadScheduler" is null
Telerik.Web.UI.RadScheduler._preInitialize("ctl00_ContentPlaceHolder1_RadScheduler1",0,0,1,false);

Thanks in advance for any advice!
Jim
Jim
Top achievements
Rank 1
 answered on 10 Feb 2011
1 answer
82 views
Hello -

I have a situation where I need to display RTF text, but not allow the user to modify it in any way. The RadEditor control would be perfect for this, but I can't seem to find a way to remove the toolstrips (I found how to remove the buttons but not the toolstrips), as well as disable edit ability.

Is the Editor control what I would want to use in this situation, or is there perhaps another tool which just displays RTF?

Thanks much,
Matt

Matt
Top achievements
Rank 1
 answered on 10 Feb 2011
3 answers
512 views
Hello,

I wonder if somebody knows how to get real file size (length) of the uploaded file. In my application I use this method:

protected void fileUploaded(object sender, FileUploadedEventArgs e)
        {
            try
            {
                if (RadAsyncUpload1.UploadedFiles.Count > 0)
                {
                    if (targetPersonalTmpFolder.Exists.Equals(false)) targetPersonalTmpFolder.Create();

                    foreach (UploadedFile uploadedFile in RadAsyncUpload1.UploadedFiles)
                    {
                        //UploadedFileInfo uploadedFileInfo = new UploadedFileInfo(uploadedFile);

                        string fullPath = Path.Combine(targetPersonalTmpFolder.ToString(), uploadedFile.GetName());
                        uploadedFile.SaveAs(fullPath, true);
                       
                        TmpFiles_List.Add(new UplodedFileData()
                        {
                            FileName = uploadedFile.GetName(),
                            FullFileName = targetPersonalTmpFolder.ToString() + @"\" + uploadedFile.GetName(),
                            //FileContentLength = Math.Round(uploadedFile.InputStream.Length / 1024d, 0).ToString() + " KB"
                            FileContentLength = Math.Round(uploadedFile.ContentLength / 1024d, 0).ToString() + " KB"
                        });
                       
                    }

                    BindFiles();
                    BindTmpFiles();
                }
            }
            catch (Exception ex)
            {
                //Pravdepodobne bol stlaceny klaves F5 refresh stranky...
                ReinitializeForm();
            }
        }

--------------------------------------------------------------------------------------------
The problem is that property uploadedFile.ContentLength doesn't return real length of the file. I've found that this uploadedFile.InputStream.Length returns correct file size, but when I tried to use it, then this error appeared: The process cannot access the file because it is being used by another process...

Something similar is described here: http://www.telerik.com/community/forums/aspnet-ajax/async-upload/temporary-files-locked-after-upload.aspx

For further information you can check the attachment.

Please help me to solve this issue...

Best regards Vasssek

Genady Sergeev
Telerik team
 answered on 10 Feb 2011
0 answers
79 views
Hi, I am using a RadComboBox and it's working great when I compile the application in Visual Studio. But when it's on server, the cursor is not a arrow pointer when I position it at that down arrow. It is like a straight line. When I click it, it's working. Just will not show that pointer arrow.

I have another RadComboBox on the same page it's it is perfect.

I know this is weird. Any reason.....

Thanks,
Smiely
Smiely
Top achievements
Rank 1
 asked on 10 Feb 2011
4 answers
299 views
I am trying to implement the radListBox into a project I am working on and I am having an issue removing an item from the listbox via JavaScript. I am trying to use the .findItemByValue function to get the ListBoxItem I need to remove but this function returns a value of undefined. I can get the item by using the .get_items().getitem(index) but when I call the .get_value() function I get a return value of "Telerik.Web.UI.RadListBoxItem". I am using an item template to add a delete link to the item and databinding a List<Telerik.Web.UI.RadListBoxItem> to the ListBox. I have been trying to figure this out all day. Any help would be greatly appreciated.
Kate
Telerik team
 answered on 10 Feb 2011
3 answers
297 views
I was wondering if the RadSiteMap is capable of rendering itself like the asp.net control SiteMapPath?

I like the Telerik controls and I thought this control would be my way of replacing the SiteMapPath control I use because it doesn't make it very easy to change the Text property in code, which is something I need.

So I was wondering if I can somehow replicate the SiteMapPath layout with the current RadSiteMap control or will this be something you guys would include in a later release of the control?

Thanks
Kate
Telerik team
 answered on 10 Feb 2011
3 answers
51 views
The javascript (AjaxSpellCheck.js) call to getLocalizedString() seems fail all the time in radEditor in a ASP.NET MVC2 project. The returned value is always "Undefined". Same thing for the "Background Color" tool which displays "Undefined" for the "Custom color" link text.

All other resources used by radEditor loaded at beginning are OK. 

Can someone help?

Thanks

James
James Tan
Top achievements
Rank 1
 answered on 10 Feb 2011
4 answers
165 views
I'm using RAD Calender with Multiselect = 'False'.
When I click on an already selected date, the date get deselected.
I want to stop that.

Is there any property to do that or How Can I do that?
Marin
Telerik team
 answered on 10 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?