Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
I have a grid that binds to hierarchical objects in the Load() handler of a ascx control:

 grid.MasterTableView.DataSource = masterTable; // a table from a typed DataSet
  grid.MasterTableView.DetailTables[0].DataSource = childTable; // a table from a typed DataSet

The grid.DataBind() is called later.

The grid has defined a bunch of bound columns using GridBoundColumn (Name, Description, etc.). The hierarchy gets displayed correctly (there are parent/child rows), but the values of the columns are always "System.Data.DataRowView" and this does not make sense, since the tables contains the rows Name, Description... I have inspected in debug mode the items in ItemDataBound event and they seem OK.

I tried an alternative implementation with binding to objects, but I am getting similar results - I jsut have the class name displayed instead of "System.Data.DataRowView" .

Any ideas? Is the binding problematic or something else?
immitev
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
60 views
Hi there. Is there any way to avoid the RadDocks from being moved anywhere in the page?? I'd like the RadDocks in my page could be moved only from one zone to another...
Fernando
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
62 views
Hello,

I'm setting up a scheduler but I only want to pull back records based on the date selected and display those.  On the page load I get all records for that day.  However, what I'm trying to figure out is how to determine when a user clicks on the next or previous day arrows and take the date being moved to as I'll use that date to pass to my middletier to retrieve the scheduled events to display.

Also, if they click on the week view, again I'd like to figure out a way to obtain those dates to use to retrieve those dates as well.

Any help on this would be deeply appreciated.

Thanks.
Peter
Telerik team
 answered on 01 Dec 2008
1 answer
87 views
I am having a problem with pasting Russian or Turkish text into the editor.

Using a normal paste (and clean word formatting when prompted) or the standard paste from word button it appears to display correctly, but it actually inserts lots of extra line breaks and padding on each line. Which can be seen on the preview window or when viewed outside the editor.

Using the "Paste from word, strip font" button completely changes the text, changing some characters and replacing some with question marks.

Any advice?

I am using the 2008 Q1 version. Would upgrading to the latest version solve these problems?

Thanks
Richard
Rumen
Telerik team
 answered on 01 Dec 2008
1 answer
106 views
Hello,
 I am using AdvancedEditTemplate for edit and insert in scheduler. and I have added new controls(text box) for description, comment.
Now when RadScheduler1_AppointmentUpdate is fired, how i can get the values of this text box controls.
See the below code of AdvancedEditTemplate.
<AdvancedEditTemplate>
                                <div id="qsfexAdvEditWrapper">
                                    <div id="qsfexAdvEditInnerWrapper">
                                        <div class="qsfexAdvEditControlWrapper">
                                            <asp:Label ID="Label1" runat="server" CssClass="inline-label">Subject</asp:Label>
                                            <asp:TextBox ID="SubjectTextBox" Rows="5" Columns="20" runat="server" Text='<%# Bind("Subject") %>'
                                                Width="95%" TextMode="MultiLine"></asp:TextBox><br />
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper">
                                            <asp:Label ID="Label4" runat="server" CssClass="inline-label">Description</asp:Label>
                                            <asp:TextBox ID="TextBox1" Text='<%# Bind("Description") %>' runat="server"></asp:TextBox>
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper">
                                            <asp:Label ID="Label2" runat="server" CssClass="inline-label">Start time:</asp:Label>
                                            <telerik:RadDateInput ID="StartInput" SelectedDate='<%# Bind("Start") %>' runat="server">
                                            </telerik:RadDateInput><br />
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper">
                                            <asp:Label ID="Label3" runat="server" CssClass="inline-label">End time:</asp:Label>
                                            <telerik:RadDateInput ID="EndInput" SelectedDate='<%# Bind("End") %>' runat="server">
                                            </telerik:RadDateInput><br />
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper">
                                            <div class="inline-label">
                                                Color code:</div>
                                            <div id="qsfexAdvEditColorCodeChooser">
                                            </div>
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper">
                                            <asp:CheckBox ID="RepeatCheckBox" runat="server" Text="Repeat for 10 days" />
                                        </div>
                                        <div class="qsfexAdvEditControlWrapper" style="text-align: right">
                                            <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update">
                                                <asp:Image runat="server" ID="insertImage" ImageUrl="Images/ok.gif" AlternateText="update" /></asp:LinkButton>
                                            <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel">
                                                <asp:Image runat="server" ID="Image2" ImageUrl="Images/cancel.gif" AlternateText="cancel" /></asp:LinkButton>
                                        </div>
                                             <asp:Button ID="btnUpdate" CommandName="Update" runat="server" />
                                          
                                    </div>
                                </div>
                            </AdvancedEditTemplate>
-----------------------------------------------------------------------------------------------------------------------------------
Below is the event that i am using for updating the record. Here i want the value of description also (see the commented line).
//AppointmentsDataSource.UpdateParameters["Description"].DefaultValue = e.ModifiedAppointment.????????;
-----------------------------------------------------------------------------------------------------------------------------------
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        RadCalendar1.SpecialDays.Clear();
        RadCalendar2.SpecialDays.Clear();
        RadCalendar3.SpecialDays.Clear();
        AppointmentsDataSource.UpdateParameters["Subject"].DefaultValue = e.ModifiedAppointment.Subject;
        //AppointmentsDataSource.UpdateParameters["Description"].DefaultValue = e.ModifiedAppointment.????????;
        AppointmentsDataSource.UpdateParameters["Start"].DefaultValue = e.ModifiedAppointment.Start.ToString();
        if (e.Appointment.End != null)
            AppointmentsDataSource.UpdateParameters["End"].DefaultValue = e.ModifiedAppointment.End.ToString();
        AppointmentsDataSource.UpdateParameters["ID"].DefaultValue = e.ModifiedAppointment.ID.ToString();
        AppointmentsDataSource.Update();
}
-----------------------------------------------------------------------------------------------------------------------------------
Can you guide me how i can find this control in RadScheduler1_AppointmentUpdate and RadScheduler1_AppointmentInsert events.

Thanks


Peter
Telerik team
 answered on 01 Dec 2008
4 answers
203 views
I cant' load custom variable to inlineinsert after purchasing the new version of Rad Control

Code as following

</BDP:BasicDatePicker>

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

Width="100%" Skin="Office2007" EnableEmbeddedSkins="True"

DayStartTime="04:00:00" DayEndTime="18:00:00"

DataSubjectField="Subject"

DataStartField="Start" DataEndField="End"

DataSourceID="dbAppointment"

DataKeyField="AppointmentID"

Height="620px" CustomAttributeNames="InvoiceId,PatientId,PatientFullName,TreatmentTypeId,Description,AppointmentId" >

<

InlineInsertTemplate>

<asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%" TextMode="MultiLine" Height="40px">

</asp:TextBox> <br />

Patient:

<asp:DropDownList ID="ddPatient" runat="server"

DataSourceID="SelPatientByCurrentUserId" DataTextField="PatientFullName"

DataValueField="PatientId" SelectedValue='<%# Bind("PatientId") %>'>

</asp:DropDownList>

Treatment:

<asp:DropDownList ID="ddTreatmentType" runat="server"

DataSourceID="SelTreatmentTypeByUserUIForDoctor" DataTextField="Description"

DataValueField="TreatmentTypeId" SelectedValue='<%# Bind("TreatmentTypeId") %>'>

</asp:DropDownList>

<hr />

<asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">

<asp:Image runat="server" ID="insertImage" ImageUrl="~/Images/OfficeUser/Okay.gif" AlternateText="Confirm" />

</asp:LinkButton>

<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel">

<asp:Image runat="server" ID="Image2" ImageUrl="~/Images/OfficeUser/Cancel.gif" AlternateText="Cancel" />

</asp:LinkButton>

</InlineInsertTemplate>

I am getting "ddPatient" has a selectedvalue which is invaild because it does not exist in the list of items

Simon
Telerik team
 answered on 01 Dec 2008
4 answers
193 views
Hi,

I have a grid that is using custom sorting.  I am allowing multiple columns to be sorted and using the GridSortExpression to iterate over the selected sort columns.  Everything works but the grid keeps adding additional sorts as the user clicks the various columns.  This would be expected behavor if the user were holding the shift or control keys to denote they want additional sorts to be added. In my case I'm just clicking the columns and it is not clearing the other column sorts as expected.  The sort indicator keeps showing on each column I click. 

What am I doing wrong?
Yavor
Telerik team
 answered on 01 Dec 2008
3 answers
224 views
I was wondering what advantages there are to using Teleriks chart control over using the free Microsoft chart.
Price isn't an issue since you get the chart with the Telerik AJAX controls and Microsofts charts are free.

http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx
http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en






Vladimir Milev
Telerik team
 answered on 01 Dec 2008
1 answer
109 views
Is there a way to give the users the ability to select a custom color for each event?  I tried to add html and it wouldn't allow me to add the event.  I could see the need to add images as well.  If there is an example I could take a look at, please provide.
Maria Ilieva
Telerik team
 answered on 01 Dec 2008
3 answers
154 views
It is easy to add a flash file.  But there is no controls for the flash. 
Stanimir
Telerik team
 answered on 01 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?