Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
132 views
I have a splitter in my master page and then another one in one of my content pages, when I try to load the page I get a javascript eroor at this line:e.style.width=b.toString()+"px";   inside of this code :
function(){a.SplitterPaneBase.callBaseMethod(this,"initialize");  
var b=this._isSplitterVertical();  
this.getVarSize=b?this.get_width:this.get_height;  
this.setVarSize=b?this.set_width:this.set_height;  
this.getVarMinSize=b?this.get_minWidth:this.get_minHeight;  
this.getVarMaxSize=b?this.get_maxWidth:this.get_maxHeight;  
},dispose:function(){a.SplitterPaneBase.callBaseMethod(this,"dispose");  
},_setOuterWidth:function(e,c){if(!e){throw Error.argumentNull("element");  
}if(c==null){throw Error.argumentNull("width");  
}var d=$telerik.getBorderBox(e);  
var f=$telerik.getPaddingBox(e);  
var b=c-d.horizontal-f.horizontal;  
e.style.width=b.toString()+"px";  
},_setOuterHeight:function(e,b){if(!e){throw Error.argumentNull("element");  
}if(b==null){throw Error.argumentNull("height");  
}var d=$telerik.getBorderBox(e);  
var f=$telerik.getPaddingBox(e);  
var c=b-d.vertical-f.vertical;  
 
Tsvetie
Telerik team
 answered on 22 Dec 2009
10 answers
169 views
Attempt to click on Close(X) icon of editor toolbar. Nothing happens. Sometimes it works sometimes it dosen't, unwanted behavior.
Please help me on this.
Also Toggle Full-screen takes much longer times. Is there any way to implement a processing message or reduce the time.
 
Thanks
Praveen
manoj sharma
Top achievements
Rank 1
 answered on 22 Dec 2009
3 answers
154 views
I am using the scheduler control with mostly the default settings.  I am databinding my own datasource in code, and have created event handlers for the AppointmentInsert and AppointmentDelete events, which work just fine.  My AppointmentUpdate event seems to have a small problem.  I'm sure it's something simple, but I can't seem to figure out what.

The problem is that the event fires and I'm able to update the appointment record in my database just fine.  But the scheduler control does not retain the updated information.  It continues to display the previous information.  It's as though it's canceling the update event.

Here is my code:

       protected void rscSchedule_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) 
        { 
            aspnet_User user = SecurityExtended.UserGet(Page.User.Identity.Name); 
            Telerik.Web.UI.Appointment appointment = e.ModifiedAppointment; 
            Data.Appointment appt = Appointments.AppointmentUpdate((int)appointment.ID, appointment.Subject, appointment.Start, appointment.End, user.UserId, appointment.RecurrenceRule, (int?)appointment.RecurrenceParentID, "", appointment.Description, true); 
 
            foreach (Resource resource in appointment.Resources) 
            { 
                AppointmentResourceType rt = Appointments.AppointmentResourceTypeGet(resource.Type); 
                int key = (int)resource.Key; 
                string text = (string)resource.Text; 
                if (key > 0) Appointments.AppointmentResourceUpdateSingle(appt.AppointmentID, key); 
            } 
        } 


Can anyone help me determine what I might be doing wrong here that would cause the control to not display the updated appointment information?  Thanks in advance.
Peter
Telerik team
 answered on 22 Dec 2009
1 answer
233 views
Hi,

I have a nested radgrid. I want to update the grid elements on click of Save Button present outside the grid. But I am unable to find the child grid's elements there.
Please help how to get elemnts outside the radgrid event.

Thanks,
Princy
Top achievements
Rank 2
 answered on 22 Dec 2009
1 answer
123 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
274 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
536 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
169 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
90 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
159 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?