Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
345 views
Hi,
i m creating multiple datePicker from Code behind and at run time itself i m adding the calendar control to same.But when I click on the datePicker it won't show me the calendar popup for the second instance that i have created.I have all these datePicker controls in dataList.

  RadDatePicker DatePicker = new RadDatePicker();
                        DatePicker.ViewStateMode = ViewStateMode.Enabled;
                        DatePicker.ID = "RadDatePicker_" + Field.AssessmentTemplateGroupId + "_" + Field.DBFieldName;
                        DatePicker.ClientIDMode = ClientIDMode.Static;
                        DatePicker.AutoPostBack = false;
                        
                        
                        DatePicker.Skin = "BariRC";
                        DatePicker.CssClass = "text";
                        DatePicker.EnableEmbeddedSkins = false;


                        RadCalendar calendar = new RadCalendar();
                        calendar.ID = "RadCalendar_" + Field.AssessmentTemplateGroupId + "_" + Field.DBFieldName;
                        calendar.UseColumnHeadersAsSelectors = false;
                        calendar.UseRowHeadersAsSelectors = false;
                        calendar.FastNavigationStep = 12;
                        calendar.EnableEmbeddedSkins = false;
                       
                        calendar.EnableMultiSelect = false;
                        
                        RadCalendarDay Day = new RadCalendarDay();
                        Day.Repeatable = RecurringEvents.Today;
                        calendar.SpecialDays.Add(Day);
                        DatePicker.Controls.Add(calendar);




                        RadDateInput dateInput = new RadDateInput();
                        dateInput.DateFormat = "MM/dd/yyyy";
                        dateInput.DisplayDateFormat = "MM/dd/yyyy";


                        DatePicker.Controls.Add(dateInput);


                        DatePicker.DatePopupButton.ImageUrl = "../../App_Themes/Bari_Default/images/calendar_ico.png";
                        DatePicker.DatePopupButton.HoverImageUrl = "../../App_Themes/Bari_Default/images/calendar_ico.png";
                        DateTime MinDate = new DateTime(1900, 01, 01);
                        DatePicker.MinDate = MinDate;

Thanks & regards
hiren
Viktor Tachev
Telerik team
 answered on 01 Oct 2015
3 answers
283 views

We have a page where you can download some files (via a link in a grid) and upload one file. When you first do a download of a file and then try to upload a file, the server side event FileUploaded is not triggered and only the click event of the related post trigger button is going off, but then the UploadedFiles property of the RadAsyncUpload doesn't have the uploaded file. When you click again on the button then the FileUploaded event is triggered.

The code to download the file is the following:

Dim stream As System.IO.MemoryStream = reportResult.ReportStream
response.Clear()
response.ClearHeaders()
Dim filter As IO.Stream = response.Filter
response.Filter = Nothing
response.ContentType = reportResult.Report.Type.MimeType
response.AddHeader("Content-Disposition", "attachment; filename=" & fileName)
If stream.Length > 0 Then stream.WriteTo(response.OutputStream)
response.End()

It seems that something in the download is making the RadAsyncUpload losing some triggers which are reset after the first postback.

Hristo Valyavicharski
Telerik team
 answered on 01 Oct 2015
2 answers
165 views

Hello,

 I want to ask user Are you sure you still want to submit?? after some checks which they had provided while submitting the forms, for simplicity you can think of 

 

protected void RadGrid1_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {

if((userControl.FindControl("TaskName") as RadTextBox).Text==SomeMethodaWhichReturnDataFromSQLSelect())

{

 // Here I want to Show user if this condition gets true 

RadWindowManager1.RadConfirm();

if( RadConfirm OK is Pressed)

{

// Insert statement

}

else     

}

}

 ​

Marin Bratanov
Telerik team
 answered on 01 Oct 2015
7 answers
81 views

Hi,

I use version 2015.01.401 of your controls.

In the RadScheduler_AppointmentCreated Event, I customize the subject of the Appointment with the code below:

 

AppointmentLinkButton.Text = String.Concat(e.Appointment.Subject, " - <i>(", DivisionName, " - ", OwnerName, ")</i>")

Dim emEventID As String = e.Appointment.Attributes("emEventID")

AppointmentLinkButton.PostBackUrl = EMLink.Url((Cbs.Data.SD.NavTreeObjectTypes.EventDetails).ToString(), emEventID)

Dim tooltipValueParam As String = String.Concat(emEventID, PIPE_DELIMETER, SessUserCultureCode, PIPE_DELIMETER, SessUserID)

Dim jscript As String = "javascript:showProjectToolTip(this,'" & tooltipValueParam & "');"

Dim jscriptClearTimer As String = "javascript:clearTimeout(timer1);"

ImagesLiteralControl.Text = String.Format(APPTSUBJECTIMAGESTRING_CONST, "../../img/icons/event-bricks_small.png", jscript, jscriptClearTimer) ​

e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(e.Appointment.Attributes("DivisionChartHexColor"))

AppointmentLinkButton.ForeColor = GetIdealTextColor(e.Appointment.BackColor)

 

You can also see that I have code in that event that sets the background color of the appointments, based on user configurable colors stored in our database (they are not in CSS files).  I've attached the SchedulerInWebApp.png file to show you what it looks like in the web app.  The image that is there, uses a radtooltip manager to call a web service to display more information.  And the actual text is a link to the item in our system.

My problem is that when I do an export to PDF, the image isn't found and the subject contains no text.  I've attached the SchedulerPDFOutput.png to show that.

Question:  How can I get the Export to NOT try to embed the image, and have it just display the custom text that I am creating?

Thanks in Advance,

Brent

Plamen
Telerik team
 answered on 01 Oct 2015
1 answer
116 views
Im wondering..
I can't see any documentation on Lightweight rendermode of the splitter control.
Is that not supported og os the splitter allready quite modern and lightwaight by design?
Marin Bratanov
Telerik team
 answered on 01 Oct 2015
14 answers
298 views
Hello guys,

i'm having problem with gridtempletecolumn, when i add boundcolums the data shown properly but when i use templetecolum it does not show the data, can any one solve my problem.

check images below for more clearification
Mohamed
Top achievements
Rank 1
 answered on 01 Oct 2015
1 answer
77 views

hi,

I think this is quite an extreme test but this is what happen:

+ Pass endDate to RadScheduler with the value of 30-12-9999 ( or 31-12-9999) the maximum date that a date control can support.

Then RadScheduler run into a runtime error, below is the stack trace :

System.DateTime.AddTicks(Int64 value)
System.DateTime.Add(TimeSpan value)
Telerik.Web.UI.Scheduler.Views.Timeline.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.RadScheduler.CreateContent()
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
System.Web.UI.Control.EnsureChildControls()
Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)

 

The reason is : Radscheduler try to AddTick to a MaxDate value. (Currently the Timelineview.TimeSlotDuration  = 1 day - the defaulted value)

My question : Why it failed even if I pass in 30-12-9999 . Because the MaxDate should be 31-12-9999

I am thinking of only allow date <= 30-12-9999  ( but now it failed with this value 30-12-9999)

And restrict it to 29-12-9999 does not look right.

 Any idea is much appreciated.

 regards,

 Lam.

 

 

Ivan Danchev
Telerik team
 answered on 01 Oct 2015
1 answer
114 views

Hello,

Please help me with applying Server.HTMLEncode to the text in the filter textbox prior to running the filter against the dataset.

Thanks!

Eyup
Telerik team
 answered on 01 Oct 2015
1 answer
142 views

Hello

Attached picture with my problem, the filter goes behind the Popup Modal

 how to solve? in vb.net language

 my .aspx

<telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" GroupPanelPosition="Top" AllowPaging="True">
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>
                                    </telerik:RadGrid>

Eyup
Telerik team
 answered on 01 Oct 2015
21 answers
580 views
We are in middle of migrating our ASP.NET web-form framework from Visual Studio 2008 en .Net 3.5 to Visual Studio 2013 an .Net 4.5.

The framework is build with Telerik ASP.NET AJAX and we use very few other libraries. The basic idea is that we have one main Telerik web application with a master page and a web.config file. All our application are sitting in there own folder under the main project and make use of the master page and web.config file of the main project. This have worked well for the last 5 - 6 years and also work after the migration.

But the problem is if I open a web-form page or a user control in one of our application and make changes to the html code, then all the used Telerik controls disappear from the designer.cs file of the page or user control and only the Telerik controls. This didn't happens under Visual Studio 2008 .Net 3.5.

After a lot of investigating it seems to be the use of the master page in applications under the main project.

I have build a small solution to illustrate the idea of our framework with the main project ("Framework") and one application ("App1"). If I open the default.aspx in App1 in designer mode I get error op the RadAJAXManager and the RadScriptmanager both placed in the master page - see images attached "Designer.png" and in the source mode get an error on the reference to the master page - see images "Source.aspx.png". 

Unfortunately I can't replicate the problem that the Telerik controls disappear from the designer.cs :-(

So I have two questions. What can be the reason that the Telerik controls disappears from the designer.cs and is the idea / structure of our frame work OK or is there a better way?

Anders Pedersen 
Sypher
Top achievements
Rank 1
 answered on 30 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?