Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
I have a databound RadScheduler with the selected view set to MonthView in the ascx page and again in the codebehind. When the page loads the calendar is in MonthView as expected, but if I click the left or right naviation to scroll between months the calendar switches to DayView. If I switch back to MonthView and click the left or right navigation again the calendar remains in month view. It seem that I have to actually click the Month link (even if the calendar is loaded in MonthView) before it will remain in MonthView when navigating to next or previous months.

How can a load the RadScheduler in MonthView and ensure that, if a user clicks the left or right navigation to navigate through the months, it remains in monthView, or in fact which ever view is set as the selected view?

You can see this behaviour at http://esperance.demo.verdicms.com/2/43/1/community_events.pm

Here is a snippet of the ascx page with the RadSchedular showing that the SelectedView property is set to MonthView.

<telerik:RadScheduler ID="RadScheduler1"  
                                runat="server"  
                                HoursPanelTimeFormat="htt"  
                                DataKeyField="Identifier"  
                                DataStartField="EventTimeStartDate"  
                                DataEndField="EventTimeEndDate"  
                                DataSubjectField="Title"  
                                onappointmentcreated="RadScheduler1_AppointmentCreated"  
                                OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"  
                                SelectedView="MonthView" 
                                ReadOnly="true"  
                                AllowDelete="false"  
                                AllowEdit="false"  
                                AllowInsert="false"  
                                Skin="Office2007"  
                                DayStartTime="08:00:00"  
                                DayEndTime="18:00:00"  
                                TimelineView-UserSelectable="false"  
                                DayView-UserSelectable="true"  
                                WeekView-UserSelectable="true"  
                                MonthView-UserSelectable="true"  
                                Width="400"  
                                Height="400"  
                                RowHeight="20"  
                                MonthView-HeaderDateFormat="MMM yyy" 
                                WeekView-HeaderDateFormat="dd MMM yyy"  
                                DayView-HeaderDateFormat="dddd, dd MMM yyy" 
                                OnNavigationCommand="RadScheduler_NavigationCommand"  
                                ValidationGroup="ctl00_RadScheduler1"  
                                Culture="English (Australia)"  
                                Font-Size="XX-Small"




Peter
Telerik team
 answered on 22 Dec 2009
8 answers
266 views
Hi all

Is it possible to display the default "advanced edit form" when i double click the scheduler to create a new appointment.

I would like the user to see the "advanced form" instead of having to click the little "more" link to display it.


Best regards
Bo
Peter
Telerik team
 answered on 22 Dec 2009
14 answers
513 views
In my application, I have to use ajax updatepanels because i'm using them with webparts.

In my outermost updatepanel, I have two buttons at the top.  Only one button is displayed at a time, they are displayed in the same position.  When one is clicked, I basically have:
button1.Visible = false;
button2.Visible = true;

and vice versa when the other is clicked.  Each button control has its own RadToolTip control that pops up automatically on hover.

On my page, I'm using a RadScriptManager, and i've noticed strange javascript errors when I click on the button before waiting for the tooltip to appear.  I've noticed if I hover, wait a second for the tooltip, and click, I don't get errors, but if I click quickly, I get errors, and different ones sometimes (the most popular being this._parentNode() is null or not an object, and sometimes 'unspecified error'). 

I thought this might be because I change button1.Visible = false in an ajax update, but the RadToolTip is still there, it doesn't get removed like the button does.

So, I put each button/tooltip pair into a panel, and i did:
panel1.Visible = false;
panel2.Visible = true;

so that the tooltips are removed from the page along with the buttons that they target.  I still get errors when I click quickly, most commonly:
'this._calloutElement.style' is null or not an object

This same error popped up sometimes before I started using the panels.  I also tried adding a ToolTipManager to automatically generate the tooltips for the entire page, and it has the same errors as well.

I couldn't find any similar issues in the forums, any ideas?

Kevin
Svetlina Anati
Telerik team
 answered on 22 Dec 2009
3 answers
152 views

The absolute positioning works fine when in design mode inside the editor but in the final rendered mode, the absolute position values will be in relation to the page or whatever the parent container is which means the object could be way off where it should it should be in relation to other non absolute positioned objects while viewing them all in design mode.

Shouldn't the editor be injecting some extra html/css dynamically or add x,y offsets to the position values so that the object is positioned where the user had intended to be? Meaning what you see in the editor in design mode is 'exactly' what you'll see in the rendered page.

Otherwise what's the value of the absolute positioning function?

Rumen
Telerik team
 answered on 22 Dec 2009
1 answer
83 views
Hi,

I am using RadControls for ASP.NET AJAX Q2 2009 (2009.2.826.35).  We would like to have the output be valid XHTML 1.0 Transitional when the Design tab is used.  When using the "InsertTable" tool button, there are two ways I can generate invalid XHTML, and I was wondering if there is any way to prevent this invalid XHTML from being generated.  The two ways I can generate invalid XHTML are:

1) When you insert a new table using the "Table wizard" feature, and accept the default settings, you get the following HTML inserted into the editor:

<table> 
    <thead> 
    </thead> 
    <tbody> 
        <tr> 
            <td> </td> 
            <td> </td> 
        </tr> 
        <tr> 
            <td> </td> 
            <td> </td> 
        </tr> 
    </tbody> 
</table> 
 

If you then validate this markup against any of the XHTML standards, it fails validation, due to the presence of the empty <thead></thead> element.  Is there some way to suppress this <thead> element if it is not being populated with content?

2) If you enter some content and then hit enter to move to a new line, a new <p></p> element is inserted.  If you then insert a table by just directly selecting the table size from the grid in the pop-up that appears when the "Insert Table" button is clicked (i.e. without using the table wizard), the following markup is generated:

<p> 
<table> 
    <tbody> 
        <tr> 
            <td> </td> 
            <td> </td> 
        </tr> 
        <tr> 
            <td> </td> 
            <td> </td> 
        </tr> 
    </tbody> 
</table> 
</p> 
 

This markup fails XHTML validation because apparently a <table> element cannot be contained within a <p> tag.  (i.e., if I manually change the containing <p> tag to a <div>, the fragment is XHTML valid).  Is there any way in the Design interface to prevent a <table> tag from being inserted into a <p> tag?  Our users will likely follow the steps I detailed above and thus insert a <table> element into a <p> tag, and we would like to prevent this if possible.

Thank you very much for your assistance.

Joe Alfano






Rumen
Telerik team
 answered on 22 Dec 2009
3 answers
148 views
i've read a few threads regarding this in the forums but didnt really come upon anything satisfatory. i'm not expecting sample code as a response, just a pointer in the right direction of which controls to go with to implement this.

my application runs pretty much full browser width. at the top there is a radmenu to access all the functions. all the main pages in my site are based on a single master page. what i need now is an auto-hide taskbar to live at the bottom of the browser window. the task bar would have part of a logo still visible and when the user hovers over the logo, the taskbar shows. on the taskbar are a few button controls to access help, quick search, logout, etc. but the main purpose of the taskbar is to display system messages such as "record inserted" or "update failed", etc, etc. most of these messages will be generated from ajax enabled controls on the individual pages so these controls need to have a way of communicating client side with the taskbar to post the message and force it into view.

my initial thoughts are that a full-width tooltip is the best option although i haven't yet looked into the ajax client side requirements. am i heading in the right direction or is radwindow a better option?

cheers,
rob


Svetlina Anati
Telerik team
 answered on 22 Dec 2009
4 answers
109 views
Hi everybody,

I've a problem with a slider control, the problem is the next:

When i initialize the Slider control with the code below, it's good bound but when i do postback on my page, the slider change the positions and values' RadSliderItems, Example:

|  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  | -> item selected = 1 week.SelectedItem.Value  = 1

i do post back (Change value item 1 = 2, why? i don't know)

|  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  | -> item selected = 1 week.SelectedItem.Value = 2

i do post back (Change position all items and change value item 2, why? i don't know)

|  2  |  3  |  4  |  5  |  6  |  7  |  8  | 1 | -> item selected = 2 week.SelectedItem.Value = 3

So, i'm not never sure about values' items and the position change...

Thanks....

Code ASP:

<telerik:RadSlider ID="week" runat="server" AnimationDuration="400" 
       Height="70px" ItemType="item" Width="350px" > 
</telerik:RadSlider> 


Code CS:

   protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!IsPostBack) 
        { 
            initialize_week();    
        } 
    }     
 
 
    public void initialize_week() 
    { 
        for (int i = 7; i >= 0; i--) 
        { 
            String value = 
                    DateTime.Now.AddDays((-7) * i).ToString(); 
            RadSliderItem item = new RadSliderItem( 
                DateTimeTreatment.GetWeekNumber( 
                    DateTime.Now.AddDays((-7) * i)).ToString(),value); 
             
 
            week.Items.Add(item); 
            week.DataBind(); 
        } 
    } 
Daniel Botero Correa
Top achievements
Rank 1
 answered on 22 Dec 2009
2 answers
84 views

Hello,
I was testing the difference between a scheduler populated server side and another one populated with a Web Service and was surprised to note a difference on the appointments rendering.

 

Both Schedulers display same appointments and are configured to show 30 minutes per row.

 

I did a screen shot to show you these weird differences.

It seems the server appointments rendering engine is not exactly the same than the client-side one.

Is it a bug?

 

By the way, if we take ‘Appointment n°3’ EndDate as example, neither the server nor the client rendering represents correctly the appointment.

The End Time is 20:35:00.

In the web service rendering it shows something like ~20:15:00, and in the server rendering 21:00:00 whereas (I can imagine) it should be rendered as 20:30:00.

Mike Taylor
Top achievements
Rank 1
 answered on 22 Dec 2009
2 answers
85 views
hi

How do i export to PDF with AlternatingItemStyle background Color?

here is my code and i m stuck here. Thanks

 

If TypeOf e.Item Is GridDataItem Then

 

 

Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

 

 

For Each cell As TableCell In item.Cells

 

cell.Style(

"text-align") = "left"

 

cell.Style(

"font-size") = "10pt"

 

item.BackColor = RadGrid1.MasterTableView.AlternatingItemStyle.BackColor

 

Next

 

 

End If

 

Daniel
Telerik team
 answered on 22 Dec 2009
3 answers
125 views
I know this gets asked a lot, but I am having the problem where with UseStaticHeaders="true" and AllowScrolling="true" the headers don't line up with the detail columns.

The odd thing is the same control, using the same skin and pretty much the same settings works on another page without a problem.  The main difference is that the page that works allows sorting, but even setting this on the problem page doesn't fix the issue.

When I look at the col width (in the colgroup) and the clientWidth of each cell, in the header the clientWidths are 8 pixels more than the col width, which makes sense because there is left and padding of 4px in the skin (it's a custom skin).

But in the details cells the clientWidth is actually one less than the col width, however according to the CSS there should be left and right padding of 4px on these cells as well.  How can you have negative padding?  In IE Developer Toolbar the css settings appear the same for the header and details cells, but the clientWidth is less for the detail cells.

There is no explicit width set on either grid, and all columns have explicit HeaderStyle-Widths set in pixels, not percentages.  TableLayout="Fixed".  If I shrink some of the cell widths the details columns shrink and there is white space on the right hand side, however the header still fills the available width, even though there are no width='100%' settings on the grid or any of the parent elements.  Setting an explicit width for the grid itself changes the width of the grid, but doesn't do anything to make the columns line up.

Both pages have exactly the same .css files included and no inline style that would override anything, I can't find any reason for the difference.

Anyone have any ideas about something else I can check?

Dimo
Telerik team
 answered on 22 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?