Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
238 views
Hi All,,,,
i am using the Rad Scheduler control on AdvancedForm Templates and user controls as from the demo....

i am using it inside RadPanel like the First Look demo in th follwoing link http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx

but i changed it to use the user controls instead of the built in advanced form to customize it as i need....

the advanced form in the edit mode is called properly,,, but when i try to call it in the insert mode either by double click the scheduler or from the options button from the inline form; i got the following error:-

Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

i don't not know what is causing this error and i docnt want to disable the ajax since i don't want the page to post back!!!!

any help please....

thanks....

Asa'ad

Mandar
Top achievements
Rank 1
 answered on 31 Aug 2018
1 answer
664 views
How can I parse the recurrence rule to extract all occurrences. I want to do this in a console application. I want to query the database and extract the occurrences in c#.
Peter Milchev
Telerik team
 answered on 31 Aug 2018
15 answers
781 views
Hi,

I have a grid with lines i can edit.

Scrolling is enabled but when you select a row to edit it jumps to the top op the grid and you have to scroll down to see the edit line.
But i want it to stay at the position of the line i selected.

Can someone advise?

protected void Page_Load(object sender, EventArgs e)
{}

public void RadGridLegalEntities_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
List<OM.LegalEntity> entities = new DA.LegalEntity().GetLegalEntities();
RadGridLegalEntities.DataSource = entities;
}



<telerik:RadGrid ID="RadGridLegalEntities" runat="server" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" Skin="Office2007"OnNeedDataSource="RadGridLegalEntities_NeedDataSource" Width=95% Height="465px"
OnInsertCommand="RadGridLegalEntities_InsertCommand"
OnUpdateCommand="RadGridLegalEntities_UpdateCommand"
OnDeleteCommand="RadGridLegalEntities_DeleteCommand"
AllowMultiRowEdit="false" ShowStatusBar="True" >

<

MasterTableView EditMode=InPlace DataKeyNames="LegalEntityID" CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border" TableLayout="Auto" CommandItemDisplay="Top">

<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>

Kiranmayee
Top achievements
Rank 1
 answered on 31 Aug 2018
6 answers
968 views
Hello,

I'm trying to catch this error. If you put a end datetime in that is before the start datetime my application is falling over. Obviously, I am doing this deliberately to break it, but want to catch the error in case a hapless user tries to do the same for some bizarre reason.

I insert my appointments via a custom Insert template using the Scheduler_AppointmentCommand event. I can catch the input here with:

try 
                            { 
                                if (eventEnd >= eventStart) 
                                { 
                                    UserEventHelper.ArrangeAppraisal(doctor, eventStart, location, label, eventEnd, user.ID); 
                                    litStatus.Text = string.Empty; 
                                } 
                                else 
                                { 

So, I am not creating an appointment in my business object if the end datetime occurs before the start datetime, but an error is still thrown from the control. Where do I catch this error? Here is the stack trace if that helps:

[Exception: Appointment is invalid: Start time must be before the End time.]
Telerik.Web.UI.Appointment.Validate() +162
Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +17
Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +106
Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +326
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Peter Milchev
Telerik team
 answered on 31 Aug 2018
1 answer
101 views

Hi,

I'd like to know if there is an option to apply mixed font color in the same event in the scheduler.

For example, if the event states: "Meeting with DR. Monroe"

have "Meeting with" colored in blue and "Dr. Monroe" in red.

Thanks!

Peter Milchev
Telerik team
 answered on 31 Aug 2018
3 answers
247 views

Dear Guru's,

New here and I've been trying to implement the radcombobox to replace a lot of my current listboxes. That all seemed to go quite well, but I ran into an issue that I can't seem to solve with either documentation, google or this forum. 

Our webapplication is used in multiple large companies and it should work under any browser the client chooses to use. I found out that the vertical alignment of the text in IE is lower than in, for example Google Chrome. I can't seem to figure out how to resolve this.

Please see that attached image for an example. It's the exact same page, left is IE, right is Chrome. I used the "j" because you can clearly see the difference at the bottom.

Thank you for your time!

Best regards,

-Rem

Rumen
Telerik team
 answered on 31 Aug 2018
4 answers
139 views

Hi,

I want to be able to open the RadGrid headercontextmenu on left click instead of right. Currently when I left click, it just changes the sorting, but the sorting can already be accomplished in the context menu. This is the same issue as this thread: https://www.telerik.com/forums/how-to-show-the-radgrid-context-menu-on-left-click-instead-of-right-click but that was a while ago and currently when I implement, the context menu flashes but then disappears. Is there anyway to achieve the appropriate functionality? Here is my code that implements it: 

 

<script type="text/javascript">
     function OnColumnClick(sender, args){                 
        args.get_gridColumn().showHeaderMenu(args.domEvent);
     }
</script>

 

… In the RadGrid …

 

<ClientEvents OnColumnClick="OnColumnClick" />

Ryan
Top achievements
Rank 1
 answered on 30 Aug 2018
1 answer
163 views

I'm currently updating a chart from asp.net chart to telerik htmlchart.

I have a line series chart and for one of the series I would like to add a +/- range at each marker to replicate an ErrorBar series from traditional .net chart control.

If I set the + and - line series as having Fillstyle.BackgroundColor as transparent (hide the line) and set the MarkersAppearance.BackgroundColor to black, I was hoping that the marker appearance would overwrite the series color and display only the marker. however this is not working as the fillstyle appears to be the master. 

 

Is there any way of showing only the marker or will I have to re-write and go with a scatter and scatterline chart? Is there any equivalent to the ErrorBar type?

 

Thanks in advance.

 

 

 

 

Richy
Top achievements
Rank 1
 answered on 30 Aug 2018
3 answers
186 views
I have a rad editor on my page. The user selects a code from the drop down list and then hits edits and it pulls all the values into the page from the database. After so many times of clicking edit and changing the values I receiving an error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


How can I fix this?
I've tried this so far in the page directive.
ValidateRequest="false" 
Rumen
Telerik team
 answered on 30 Aug 2018
1 answer
255 views

Hi,

I am trying to read the value of the radtext box. It comes out empty.

Anything wrong with this code?

var addr1Text, addr2Text;
var Addr1 = $find("<%= txtAddr1.ClientID %>");
addr1Text = Addr1.get_value();
alert("Addr1Text: " +  addr1Text );
 
 <telerik:RadTextBox ID="txtAddr1" runat="server" OnTextChanged="txtAddr1_TextChanged" AutoPostBack="false">
                </telerik:RadTextBox>

 

Rumen
Telerik team
 answered on 30 Aug 2018
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?