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

Hi

I'm adding custom special day using OnDayRender. this event is not working when i change or navigate to any other month.

here is my code

ASPX:

<telerik:RadDatePicker Calendar-DayNameFormat="Shortest" Calendar-ShowOtherMonthsDays="false" DateInput-ReadOnly="true" DatePopupButton-ImageUrl="/images/calander_icon.gif" DatePopupButton-HoverImageUrl="/images/calander_icon.gif"
                                                                  ID="rdpDeliveryDate" OnLoad="rdpDeliveryDate_Load"  runat="server" >
                                                                 <Calendar ID="Calendar1" runat="server" ShowRowHeaders="false"  OnDayRender="dayRender"  ShowFastNavigationButtons="false" FirstDayOfWeek="Sunday"></Calendar>
                                                             </telerik:RadDatePicker>
 

CS:

protected void rdpDeliveryDate_Load(object sender, EventArgs e)
       {
           (sender as RadDatePicker).MinDate = CommonLogic.CurrentGccTime().Date;
       }
 

protected void dayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
 
if (e.Day.Date.DayOfWeek == DayOfWeek.Wednesday|| e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
        {
                        // clear the default cell content (anchor tag) as we need to disable the hover effect for this cell
                        e.Cell.Text = "";
                        e.Cell.CssClass = "rcOutOfRange"; //set new CssClass for the disabled calendar day cells (e.g. look like other month days here)
 
                        // render a span element with the processed calendar day number instead of the removed anchor -- necessary for the calendar skinning mechanism
                        Label label = new Label();
                        label.Text = e.Day.Date.Day.ToString();
                        e.Cell.Controls.Add(label);
                        e.Cell.ToolTip = "Day Off";
 
                        RadCalendarDay dayoff = new RadCalendarDay();
                        dayoff.Date = e.Day.Date;
                        dayoff.IsSelectable = false;
                        dayoff.IsDisabled = true;
                        dayoff.ItemStyle.CssClass = "rcOutOfRange";
 
                        cln.SpecialDays.Add(dayoff);
                         
                    }
}

I'm using  Version 2015.2.826.45,

Visual studio 2012.

Please help me

Appreciate for Quick and best Response

 

Yasin

Konstantin Dikov
Telerik team
 answered on 29 Oct 2015
1 answer
148 views

Hi, every body,

 

Today I try to export pdf from one RadEditor ... but the function throw an nullReferenceException.

Here is my code :

 

RadEditor radEditor = new RadEditor();
radEditor.Content = "<div>Hello</div>";
radEditor.ExportSettings.FileName = "TextFile.pdf";
radEditor.ExportSettings.OpenInNewWindow = true;
radEditor.ExportToPdf();
 

Did I miss something ?

Thanks,

Corentin

RadEditor radEditor = new RadEditor();
radEditor.Content = "<div>Hello</div>";
radEditor.ExportSettings.FileName = "TextFile.pdf";
radEditor.ExportSettings.OpenInNewWindow = true;
radEditor.ExportToPdf();
RadEditor radEditor = new RadEditor();
radEditor.Content = "<div>Hello</div>";
radEditor.ExportSettings.FileName = "TextFile.pdf";
radEditor.ExportSettings.OpenInNewWindow = true;
radEditor.ExportToPdf();
Ianko
Telerik team
 answered on 29 Oct 2015
23 answers
578 views
Hello Team;

I was reading the new features in the ASP.Net 4.5 engine last night and seems like MSFT has done a great job in the "Data" handling department and has made lots of improvements. Better data binding, being able to take advantage of dataModel, be able to declare validations as attributes in our model and let it expose at client side. Use of jQuery & HTML5 for validation and so on.

Some of these features are basically part of the ASP.Net engine and some others will affect the third party controls.

I wanted to ask the team, what's the roadmap of supporting these new data binding and modeling in telerik controls, so I can plan out my development with VS2010 for now and when I should move to VS11 & .Net 4.5.

Could you please provide some ideas what the team is thinking and which Q we should plan for? Either as a reply to my post or blog post for everyone to see.
I greatly appreciate any input you can provide.

Thanks!
..Ben
Marin Bratanov
Telerik team
 answered on 29 Oct 2015
9 answers
274 views

The page still does full postback not partial post back on the project details panel, when I select drop drown list. How should I fix it?

 

 

CODE # 1

 <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ddlSelectProject">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="divProjectInfo" LoadingPanelID="PanelProjects" />
                    </UpdatedControls>                    
                </telerik:AjaxSetting>
            </AjaxSettings>
     </telerik:RadAjaxManagerProxy>

 

 

CODE # 2​

 <table style="height: 350px;">
            <tr>
<telerik:RadAjaxLoadingPanel ID="PanelProjects" runat="server">

                     <td id="tdProjectDetails" >
                         <table>
                             <tbody>
                                 <tr>
                                       <td class="rightCell">
                                                    <span id="lblOwner" runat="server">--</span>
                                       </td>

                                  </tr>

                             </tbody>

                          </table>

                     </td>

              </telerik:RadAjaxLoadingPanel>

 

             <telerik:RadAjaxLoadingPanel ID="PanelFile" runat="server"> 

                 <td>   
                      <telerik:RadAsyncUpload ID="RadAsyncFileUpload" runat="server" MaxFileSize="2097152" AllowedFileExtensions="xls,xlsx,csv"                                   Localization-Select="Upload" MaxFileInputsCount="1"></telerik:RadAsyncUpload>                                    
                       <asp:Button ID="btnsubmitupload" runat="server" Visible="false" />
                 </td>​

              </telerik:RadAjaxLoadingPanel>​

      </tr>

</table>


Viktor Tachev
Telerik team
 answered on 29 Oct 2015
4 answers
166 views

 Hi

I have a radgrid that uses a WebUserControl in the EditForm mode.  When you edit a line the Webusercontrol is shown in the grid but the item row is also show.  Is it possible to hide this line?

See in attachment an example of the radgrid, the block surrounded with the blue line (I'm not a drawing artist as you can see :-) ) is the block that should be hidden.

Kind regards

Suzy

Suzy
Top achievements
Rank 2
 answered on 29 Oct 2015
13 answers
733 views
I have a newly created web app  that was created using the Telerick Rad controls web app template (Telerik.Web.UI.Skins was selected). I add a Radgrid to default.aspx and in the smart tag and the properties window the Skin dropdown only shows the default skin. I have checked that there is a reference to Telerik.Web.UI.Skins and it is the same version as Telerik.Web.UI.

This problem appeared after installing 2011 Q3.

I have attached some screen shots.

Can anyone help to get the skins back?
Afandi
Top achievements
Rank 1
Iron
Veteran
 answered on 29 Oct 2015
0 answers
57 views

Dear masters,

 

 I have something problem with my telerik popup button,

when I click in Hardware button I can see form view in popup,

but when I click in Software button it just 500 error,

I've try to resolve it, but nothing changes.

Please help me with this error.

 

Thank you.

Fincen
Top achievements
Rank 1
 asked on 29 Oct 2015
2 answers
232 views
Dear All, 

I have a page with grid. The grid has a template column wit a hyperlink. I open a modal rad window when I click the link.
On the window, I need to do 2 things. I have a long running process that updates the DB. I have a asp timer on the window, which queries the server DB and  refreshes the data on window. 

My problem is, the timer on Window causes postback on the parent page. Although not a postback because it does not actually call the page load on the parent. However we can see the green status bar in the parent page. 
Something to do with the Ajax manager. I have already ajaxified the timer. 

I have attached a screenshot of the problem as attachment. 
Following is the code for my timer on the radwindow.
<asp:Panel ID="TimerPanel" runat="server">
           <asp:Timer ID="RefreshTimer" runat="server" Interval="1000" OnTick="RefreshTimer_Tick"
           Enabled="true" EnableViewState="False" ViewStateMode="Disabled">
           </asp:Timer>
       </asp:Panel>

Below is the code for the RadAjaxManager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="UpdaterLoadingPanel">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="TimerPanel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="PreviewDiv" LoadingPanelID="UpdaterLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
RM
Top achievements
Rank 1
 answered on 28 Oct 2015
4 answers
115 views

Hi,

We allow users to see availability and book appointments online. However, there are some weeks (and towards the end of the week like Friday/Sat) where there is no availability left. Users see all grayed out timeslots and get confused.

So in these cases, we would like to take the users to the next week or better, the first week that has an available appointment. How can we do that?

- one implementation that comes to mind is to check for empty time slots in the date range and programmatically take the user to the week that has at least one empty time slot (timeslot that does not have an appointment). Can we do this? How?

The second question I have is around error messages. Right now, if the users cannot book an appointment due to some business reason, we handle it on the server side events. But there all we can do is e.cancel. How do we bubble up these error messages to the client side to show them to the user in their browser?

Ivan Danchev
Telerik team
 answered on 28 Oct 2015
6 answers
1.1K+ views
I have a grid with custom column groupings generated on the server side, and for each new grouping I would like to have the left-side only border visible.  My first attempt is to set the ItemStyle (BorderColor, BorderWidth) for the first column created for each grouping, but that results in the attached image.  My attempts to read the on-line tutorials all require Skins, etc. which I find confusing.  Before I spend hours trying to figure out Skins, is there some simple way to declare in the server code an ItemStyle.BorderStyle that will give me just the LEFT side border for a column? thanks!
subbulaxmi
Top achievements
Rank 1
 answered on 28 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?