Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
53 views
Hello, I have a RadGrid inside a RadPageView. The RadGrid is using a formtemplate for editing. Before the update to 2010 Q3 (December) the OnUpdateCommands were working perfectly. After the update clicking on the templates update button closes the edit form but the OnUpdateCommand handler is never called.

There are other RadGrids with FormTempaltes in our application that are contained inside a RadPanel item that were working correctly after the update. RadPageView -> RadPanelItem -> RadGrid

I was able to rollback to the previous version of the Telerik dlls and the application worked properly again. I have confirmed this issue on two separate machines.

Is anyone else seeing this issue?

Thanks,
Chris
Chris
Top achievements
Rank 1
 answered on 10 Feb 2011
4 answers
246 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
153 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
149 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
49 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
150 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
90 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
170 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
79 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
493 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?