Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
143 views

Dear Telerik-Team,

is there a way to change the heightOffset-value of a RadSplitter from Javascript?

I've tried getting the Client-Side object and using set_heightOffset(x), but that didn't seem to work.

Thanks in advance,

Robin

Vessy
Telerik team
 answered on 18 May 2015
5 answers
496 views

Hi

I need help tracking down an issue with the temp folder. Our temporary files are being deleted before the user has time to press the upload button.

At first I thought it was an error because the files were not being uploaded to the temporary folder. But after watching the temp folder carefully we did see the file being upload but it was deleted, sometimes immediately and sometimes only after 5 minutes on the live server. I then tried to replicate the issue on our dev servers, but it did not happen as fast (probably because they are not under the same load). Files only got deleted after 1 hour (2 developers saw this at the same time, while watching the folder, without anyone having a session open to the site on any browser).

 After scouring the internet I found that the temporary files only get deleted in the following situations (http://www.telerik.com/forums/radasyncupload---cannot-find-the-temporary-file):

- you use FileSave() method. (we are not using this as can be seen from our code below)
- it expires. The default expire time is 4 hours and it can be increased.
- the Application pool is recycled. 

Here is the code:

<telerik:RadAsyncUpload ID="fuScreenshot" runat="server" MaxFileSize="1048576" UploadedFilesRendering="BelowFileInput" MultipleFileSelection="Automatic" PostbackTriggers="btnSubmit" TemporaryFolder="~/Temp" OnClientFileUploadFailed="OnClientFileUploadFailed" Skin="Default"></telerik:RadAsyncUpload>

Below is the code for when the upload button is pressed, but we never press it and the files still get deleted:

 

foreach (Telerik.Web.UI.UploadedFile screenshot in fuScreenshot.UploadedFiles){    
    byte[] myData = new byte[screenshot.InputStream.Length];   
    screenshot.InputStream.Read(myData, 0, myData.Length);                        
    wsa.PFM005(ConfigurationManager.AppSettings["Username"], ConfigurationManager.AppSettings["Password"], ConfigurationManager.AppSettings["FileDomain"], "/system/files/", item.ScreenshotID.ToString() + screenshot.GetExtension(), myData);
}

 

My questions thus are, what method(s) does the RadAsyncUpload use to delete the files? Or is there anything you can suggest I look at to resolve the issue? How would I know if the Application Pool Recycling is the culprit and how does the application pool know these are temporary files (My apologies I am not too familiar with servers).

 Details:

using Telerik v.2015.1.225.45

Servers use load balancing

 

Peter Filipov
Telerik team
 answered on 18 May 2015
2 answers
2.0K+ views
I have rad Combo box
    <telerik:RadComboBox runat="server" ID="rcb" Height="150px" OnItemsRequested="rcb_ItemsRequested" AutoCompleteSeparator="," >
     </telerik:RadComboBox>
I need to get Selected value from client side 
i tried this
function getvalue()
    {
        var combobox = $find("<%= rcb.ClientID %>");
        var value = combobox.get_selectedItem().get_value();
    }
but get_selected Item get only last selected item .
I need to get all selected Item.
lylia
Top achievements
Rank 1
 answered on 18 May 2015
1 answer
94 views

1) I am having trouble with putting a banner in the pdf header. When I place an image, it gets placed wither on the left side or right or center but not across the page like a banner.

 

<PageHeader>
< MiddleCell Text="<img src='Images/CME-Transcript-HeaderLong.jpg' />" TextAlign="Center" /><RightCell TextAlign="Center" />
< /PageHeader>

 

 

2) I am displaying some data generated dynamically in the middle of the header. I need to move it below the header but right above the radgrid on the pdf. I need to display it in a horizontal line above the grid. How do I go about changing the position of data? 

 

headerText += "<br /><span style='font-size:8px;font-family:Segoe UI;'>Report Date: " + DateTime.Now.Date.ToShortDateString() + "</span>" ;
headerText += "<br /><span style='font-size:8px; font-family:Segoe UI;'>" + lblParticipantName.Text + "</span>";
headerText += "<br /><span style='font-size:8px; font-family:Segoe UI;'>SDMS Member #: " + lblNo.Text + "</span>";

RadGrid1.ExportSettings.Pdf.PageHeader.RightCell.Text = headerText;

Kostadin
Telerik team
 answered on 18 May 2015
1 answer
153 views

Hello

I try to validate two RadComboBox's which are placed inside the EditTemplate of a FormView. The server-side validation is working fine bit the Client-side is giving me troubles.

It looks like that the RadComboBox are not yet available when the JavaScript is loaded. On this row of JavaScript:

var combo = $find("<%= rcbFuelType.ClientID %>");

I get this error message: Unknown identifier "rcbFuelType".

 

The FormView is part of UserContrle and I have placed the Javascript inside the asp:content tag where the FormView is. I have also tried to place it inside the EditTemplate without any result.

 

How can I get the this working?

 

Anders

<script language="javascript" type="text/javascript">
    function ClientValidateFueltypes(source, arguments) {
        var combo = $find("<%= rcbFuelType.ClientID %>");
        var combo2 = $find("<%= rcbFuelType2.ClientID %>");
 
        if (combo.get_value() == "N.v.t.") {
            if (combo2.get_value() == "N.v.t.") {
                arguments.IsValid = false;
            }
        }
    }
</script>

Eyup
Telerik team
 answered on 18 May 2015
14 answers
378 views
Is there any way to prevent the postback when expanding a node?  It seems like this should be unnecessary once the control is data-bound.  Thanks.
Maria Ilieva
Telerik team
 answered on 18 May 2015
1 answer
100 views

Hello Telerik,

We are using Telerik.Web.UI version 2014.3.1209.45 and we have noticed that our RadAjaxLoadingPanels are not animating in IE but they are in Firefox and Chrome. I have emulated IE versions 8-11 and it's the same. Is this a bug with this version of Telerik or am I doing something wrong?

I have attached a sample project where the problem is present my end. 

Thanks

 

Maria Ilieva
Telerik team
 answered on 18 May 2015
3 answers
146 views
Hello,

I'm looking at some code that uses the RadGrid1.MasterTableView.ExportToExcel()
type command. It sends the grid to excel just fine. However, when my client wants to save the excel file, it defaults as a web page rather than xls format. Looking at the documentation on this, my hunch is that its because the function really is sending html to excel, rather than a native xls format. Is this assumption correct?

The grid comes up in excel just as needed.
My main question is there a way to have the default excel function save the file as an xls? That is, when the user clicks "save as" in excel, it defaults to web page.  I know that all the user would have to do is click file type as xls in excel. However, there are many users, and sometimes this step is overlooked which then results in a missing document in their process. If the data given to excel in a way that it would know it's "save-as" default should be xls. I didn't know if xml/csv would solve this problem or have similar side affects.

I should point out that I'm not doing much editing of the grid before sending it to the ExportToExcel(). Only setting blank columns' visual=false.

I should point out this is on IE8, and I'm coding in C#

Thanks in advance for assistance.

Kostadin
Telerik team
 answered on 18 May 2015
6 answers
291 views
Hi,
I'm trying to use for the first time Rad Scheduler and " can't understand  how modify the hedear bar.  In first header bar I'd like to have just the name of the month in the second row the number of the day (to_be.png). At the moment the date format in two bars is the same (as_is.png).

I mean that I should change something in this instaction, but I didn't find the right way
 <TimelineView UserSelectable="true" GroupBy="" GroupingDirection="Vertical" HeaderDateFormat="dd">

Any idea ?

Thanks in advance.

Paolo
Plamen
Telerik team
 answered on 18 May 2015
3 answers
89 views

Hello,

I am following this example of Combobox in Radgrid.

I am having a problem with this part of the code behind: WHERE CompanyName LIKE @CompanyName + '%'"

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            string sql = "SELECT [SupplierID], [CompanyName], [ContactName], [City] FROM [Suppliers]  WHERE CompanyName LIKE @CompanyName + '%'";
            SqlDataAdapter adapter = new SqlDataAdapter(sql,
                ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
            adapter.SelectCommand.Parameters.AddWithValue("@CompanyName", e.Text);

I use Mysql and not Sql Server, and it seems that it does not accept + '%'"

How can I replace that to state "contains"?

Thank you

Christophe
Top achievements
Rank 1
 answered on 16 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?