Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
265 views
Hello All,

I have requirement to refresh the RADGrid after user download the selection. So i have first column as checkboxes and users selects those checkbox and as per the selection code gets the document and gives it for download to user.


                        Response.ContentType = "text/plain";
                        Response.AddHeader("Content-Disposition", "attachment;filename=" + FileName);
                        Response.ClearContent();
                        Response.Buffer = true;
                        Response.Write(objBuilder.ToString());
                        Response.End();


So now i have to remove the selection after download and make those records of RADGrid with different color to indicate that record is already downloaded. how i can do that ?

Thanks in advance.
Daniel
Telerik team
 answered on 10 Feb 2011
1 answer
177 views

I'm having a little issue I can't seem to figure out. I have a bar chart with 2 series that I am adding programmatically. I’m using the vista skin and when the chart renders the first series bar has a black border but the second series doesn’t.

I can’t find how to turn the border off for the first series. Any suggestions would be appreciated. 

Robert Verderber
Top achievements
Rank 2
 answered on 10 Feb 2011
1 answer
164 views
I need to set RadComboBox SelectedValue property with URL parameter value:

ComboBox OnLoad event:
someComboBox.DataSource = GetDataList();
someComboBox.DataBind();

ComboBox OnDataBound event:
someComboBox.ClearSelection();
someComboBox.Text = string.Empty;
someComboBox.SelectedValue = valueFromUrlParameter;

After page loads ComboBox is populated with data from GetDataList(), but selected value is first item in the list. It is intersting if i step through these methods in debugging mode, then value is correctly selected.
Kalina
Telerik team
 answered on 10 Feb 2011
1 answer
60 views
I need to set RadComboBox SelectedValue property with URL parameter value:

ComboBox OnLoad event:
someComboBox.DataSource = GetDataList();
someComboBox.DataBind();

ComboBox OnDataBound event:
someComboBox.ClearSelection();
someComboBox.Text = string.Empty;
someComboBox.SelectedValue = valueFromUrlParameter;

After page loads ComboBox is populated with data from GetDataList(), but selected value is first item in the list. It is intersting if i step through these methods in debugging mode, then value is correctly selected.
Kalina
Telerik team
 answered on 10 Feb 2011
1 answer
169 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
110 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
187 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
88 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
541 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
85 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?