Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
155 views
hi

How do i remove Month and Timeline view?

I want to display only Day and Week on the scheduler only. Thanks
Datamex
Top achievements
Rank 2
 answered on 08 Sep 2009
4 answers
208 views
hi

I have this aspx code: and i received an Error On Page: DataBinding: Telerik.Web.Ui.Appoint Does not contain a property with a name 'Remark'

I have checked on my store proc for insert and update and select and they are working fine. Where did i go wrong? Thanks

 

<telerik:RadScheduler ID="RadScheduler1" runat="server"

 

 

 

DataEndField="EDateTime" DataKeyField="Appt_ID"

 

 

 

DataSourceID="sdsAppointment" DataStartField="SDateTime" DayEndTime="21:00:00"

 

 

 

DataSubjectField="Remark" HoursPanelTimeFormat="htt" Skin="Outlook"

 

 

 

ValidationGroup="RadScheduler1">

 

 

 

<InlineInsertTemplate>

 

 

 

<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>

 

 

 

User:

&nbsp;

 

 

 

<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>

 

 

&nbsp;

 

<asp:LinkButton runat="server" ID="InsertLinkButton" CommandName="Insert" Text="Insert"></asp:LinkButton>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

 

 

</InlineInsertTemplate>

 

 

 

<InlineEditTemplate>

 

 

 

<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>

 

 

 

User:

&nbsp;

 

 

 

<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="UpdateLinkButton" CommandName="Update" Text="Update"></asp:LinkButton>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

 

 

</InlineEditTemplate>

 

 

 

</telerik:RadScheduler>


 

<

asp:SqlDataSource ID="sdsAppointment" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:ClinicMgmtConnectionString %>"

 

 

 

DeleteCommand="spAppointment_Delete" DeleteCommandType="StoredProcedure"

 

 

 

InsertCommand="spAppointment_Insert" InsertCommandType="StoredProcedure"

 

 

 

SelectCommand="spAppointment_Select" SelectCommandType="StoredProcedure"

 

 

 

UpdateCommand="spAppointment_Update" UpdateCommandType="StoredProcedure">

 

 

 

 

 

 

<DeleteParameters>

 

 

 

 

 

 

<asp:Parameter Name="Appt_ID" Type="Int32" />

 

 

 

 

 

 

</DeleteParameters>

 

 

 

 

 

 

<UpdateParameters>

 

 

 

 

 

 

<asp:Parameter Name="Appt_ID" Type="Int32" />

 

 

 

 

 

 

<asp:Parameter Name="SDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="EDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="Remark" Type="String" />

 

 

 

 

 

 

<asp:Parameter Name="LName" Type="String" />

 

 

 

 

 

 

</UpdateParameters>

 

 

 

 

 

 

<InsertParameters>

 

 

 

 

 

 

<asp:Parameter Name="SDateTime" Type="DateTime"/>

 

 

 

 

 

 

<asp:Parameter Name="EDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="Remark" Type="String" />

 

 

 

 

 

 

<asp:Parameter Name="LName" Type="String" />

 

 

 

 

 

 

</InsertParameters>

 

 

 

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

L
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
145 views
Hi, 
     I am making a simple entry from using radtexbox,radcombobox,radmaskedtextbox and raddateinput. Now for each control there is asp.net requiredfield validator. I am also using validator Callout extender for the required field validator. Now in validator callout there is a property named as HighlighCssClass which is used to set the backcolor of the focused control. If am use simple asp.net testbox then the background-color is works fine but it's not working for any of the radinput.
I need help and complete clientside code for this.
Please help.

<

 

telerik:RadTextBox ID="txtEstbName" runat="server" MaxLength="150" Skin="Office2007" ></telerik:RadTextBox>

 

 

 

 

 

<ajaxToolkit:ValidatorCalloutExtender ID="vc1" runat="server" TargetControlID="rfv1" Width="200px" HighlightCssClass="validatorCalloutHighlight" WarningIconImageUrl="~/images/warning.png" CloseImageUrl="~/images/close.png">

 

 

</ajaxToolkit:ValidatorCalloutExtender>

 

 

<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Please enter establishment name" ControlToValidate="txtEstbName" Visible="true" Display="None"></asp:RequiredFieldValidator>

 

 

 

css class........................

.validatorCalloutHighlight

{

background-color:#FF9999;

}

 



Pronay

Dimo
Telerik team
 answered on 08 Sep 2009
5 answers
194 views
Hi,

Ive a radeditor  in my form. My scenario is I need to insert text in the position exactly where my caret is(or cursor is)?? 
 
Eg:: if my content in radeditor is : hi, how are you?? and i ned to insert  'John' after 'how' ??
how do i do this ???

so, once inserted, it should be hi john, how are you?? how do you insert text in radeditor using the caret position.

Pls help me with code samples.

Also, when i use radeditor and use the toolbr in radedito, it gives me an error telling need to configure in web.config? how do i resolve this???


Thanks,
ZR
Rumen
Telerik team
 answered on 08 Sep 2009
1 answer
74 views

I'm having trouble with the controlparameter of a ListBox which points to same RadGrid where the Listbox is used.

I want to populate the Listbox depending on the selected value of the Grid, so I've set a controlparameter in the datasource of the ListBox which points to the selectedItem of the Grid. However, the controlparameter always gets the default value. If I set the controlparameter to another grid (not the grid which is the parent of the ListBox) it works fine.

<GRID id=g1 Datasource = DS1>     
    <VIEW> 
    <EDIT>    
        <LISTBOX Datasource=DS2></LISTBOX>    
    </EDIT>    
</GRID>    
    
<DS1>    
    ...     
</DS1>    
    
<DS2>    
    <selectparameters>    
        <asp:ControlParameter ControlID="g1" DefaultValue="0" Name="id" PropertyName="SelectedValue" Type="Int32" />      
    </selectparameters>    
</DS2> 
Vlad
Telerik team
 answered on 08 Sep 2009
1 answer
151 views
Hi,

I have faced a problem when I click on "Export to Outlook" button for a recurring appointment, which is set to recurr yearly on a specific date.
It says "Appointment.ics is not  a valid Internet Calendar file".

I tried creating a  yearly recurring appointment at
http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx
and received the same above mentioned error.

I use Outlook 2007 as the mail client.

The code used is:

#region

 

RadScheduler AppointmentCommand Event

 

 

protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)

 

{

 

if (e.CommandName == "Export")

 

{

 

//RadAjaxManager1.RaisePostBackEvent(e.ToString());

 

 

TimeSpan currentOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now);

 

 

//string iCal = RadScheduler.Export(apt, currentOffset);

 

WriteCalendar(

RadScheduler.ExportToICalendar(e.Container.Appointment, currentOffset));

 

}

}

#endregion



#region

 

WriteCalendar (for export to outlook)

 

 

public void WriteCalendar(string data)

 

{

 

HttpResponse response = Page.Response;

 

response.Clear();

response.Buffer =

true;

 

response.ContentType =

"text/calendar";

 

response.ContentEncoding =

Encoding.UTF8;

 

response.Charset =

"utf-8";

 

response.AddHeader(

"Content-Disposition", "attachment;filename=\"Appointment.ics\"");

 

response.Write(data);

response.End();

}

#endregion



Please let us know if we are missing anything.

Any help urgently will be highly appreciated.
Peter
Telerik team
 answered on 08 Sep 2009
2 answers
136 views
Hi,

I am trying to implement the example of inserting into a grid using a radwindow but im having problems calling the ajax request on the ajax manager.  It can find the ajax manager using the javascript (used an alert to confirm the variable) but when the request method is called I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index





to try and find my actual issue I took all the elements off the page and put a breakpoint on the ajax request (server side) even and a button to all it.  With no controls on the page it hit the breakpoint, with the radwindowmanager on it still hit the breakpoint but when the radgrid was added I got the same error and the breakpoint was not hit. so tried on a new page with new controls and still get the same error

Thanks
Paul
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
221 views
Hi,

I'm using a RadListBox to select an item in a list. There is a scroll in the list box since I have several items in the list. When I'm clicking on an item in the top and the whole item is not visible the SelectedIndexChanged event does not fire. The "clicked" item does not get selected either,  it just scrolls the item down the list and makes it "Active" (the css class rlbActive is set to the item I clicked).

To reproduce it use the following code. When the ListBox is loaded, scroll down so the half of the top item in the list is visible. Click that item. The item will not be selected, just "active"...

Thanks in advance

 

 

 

 

<telerik:RadScriptManager ID="rsm" runat="server" /> 
    <div> 
        <telerik:RadListBox ID="rlb" runat="server" Height="100px">  
            <Items> 
                <telerik:RadListBoxItem Text="09:30" /> 
                <telerik:RadListBoxItem Text="10:00" /> 
                <telerik:RadListBoxItem Text="10:30" /> 
                <telerik:RadListBoxItem Text="11:00" /> 
                <telerik:RadListBoxItem Text="11:30" Selected="true" /> 
                <telerik:RadListBoxItem Text="12:00" /> 
                <telerik:RadListBoxItem Text="12:30" /> 
                <telerik:RadListBoxItem Text="13:00" /> 
                <telerik:RadListBoxItem Text="13:30" /> 
            </Items> 
        </telerik:RadListBox> 
    </div> 

 

Simon
Telerik team
 answered on 08 Sep 2009
2 answers
91 views
hi

By default, RAD Scheduler displays hourly. How do I display half hourly eg 1.00pm, 1.30pm, 2.00pm, 2.30pm. Thanks
Peter
Telerik team
 answered on 08 Sep 2009
3 answers
197 views
Hello,

Before grid export, I change some properties like PageSize (to export all rows), replace/hide checkbox columns, rebind, etc. Problem is that sometimes, when the grid is set to update after an ajax request, these changes are visible in the browser.

I can restore the original properties in a try..finally block, of course, but I would rather clone the grid or revert it to before the changes. 

What do you recommend?
Bruno
Top achievements
Rank 2
 answered on 08 Sep 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?