Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
(Hopefully) Quick problem:

    <form id="form1" runat="server"
    <div> 
        <telerik:RadScheduler ID="RS1" AllowEdit="false" 
            ShowHeader="false" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" ShowNavigationPane="false"  
            ShowViewTabs="false" SelectedView="WeekView" ShowFooter="false" ShowAllDayRow="false"  
            DataKeyField="ID" DataSubjectField="Subject" DataEndField="End" DataStartField="Start"  
            runat="server" WeekView-ColumnHeaderDateFormat="ddd" > 
        </telerik:RadScheduler> 
    </div> 
    </form> 

public partial class Test : System.Web.UI.Page 
    public class ItemSchedule 
    { 
        public string Subject; 
        public DateTime Start; 
        public DateTime End; 
        public string ID; 
        public ItemSchedule(string subject, DateTime start, DateTime end) 
        { 
            Subject = subject; 
            Start = start; 
            End = end; 
            ID = Guid.NewGuid().ToString(); 
        } 
    } 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        List<ItemSchedule> items = new List<ItemSchedule>(); 
        items.Add(new ItemSchedule("test", DateTime.Now, DateTime.Now.AddHours(1))); 
        RS1.DataSource = items; 
    } 

Error says: 

DataBinding: 'Test+ItemSchedule' does not contain a property with thename 'ID'.


I do have a public property with the name of ID in my class (despite it being supposedly optional according to http://www.telerik.com/help/aspnet-ajax/schedule_databinding.html) but I must be missing something...
If possible I'd like to not even have an ID, but otherwise...why doesn't this work?
Adam
Top achievements
Rank 1
 answered on 08 Mar 2010
2 answers
116 views
Hi

I need to have the values of two columns say FirstName and LastName of a data table containing information about employees show up as FirstName,LastName on the node text field in the Tree View while I bind the data set to the tree view. Is there a way to do that?
Thanks

Rishi
Top achievements
Rank 1
 answered on 08 Mar 2010
6 answers
236 views
I want to cancel a ajax request from a javascript function. I tried the following, did not work

    var requestInProgress;  
 
    function OnRequestStart(sender, args) {  
        requestInProgress = args.XMLHttpRequest;          
    }  
 
    function ResetRequest() {  
        requestInProgress.abort();  
    } 

i want to cancel the request and hide the loading panel from ResetRequest() function.
Please help

Regards
Arijit Chatterjee
Daniel
Telerik team
 answered on 08 Mar 2010
1 answer
94 views
Hi,

I'm trying to accomplish this with the Scheduler


The idea is to have the Timeline view for an entire month, and when click next month it will add that to the Timeline (showing 2 month)

The colors is only to verify if that person has available Time to schedule something, and I need to change the Time Column with Person Name Column.

Instead of beating my head in the wall over and over, I thought I could ask here if is there any way to accomplish this reusing the RadScheduler control, as I'm new to this control.


Thank you.
Peter
Telerik team
 answered on 08 Mar 2010
1 answer
117 views
Hello,
i have different columns in a grid and i want use the inline editing for this grid. For all the column it works fine but only the templated column can not be edited. What must I implementing to edit this templated column? In this scenario i want to edit the name property in the grid.

with best regards
Meik Napierski

<telerik:GridTemplateColumn   
  ReadOnly="false" 
  DataField="Name"   
  HeaderText="Name" 
  AllowFiltering="false"   
  UniqueName="Name" 
  HeaderStyle-Width="100%"   
  SortExpression="Name">  
<ItemTemplate> 
  <img src='<%# Eval("ImageUrl") %>' alt="" style="vertical-align: middle; margin-right: 7px;" /> 
  <%# Eval("Name") %> 
</ItemTemplate> 
                                </telerik:GridTemplateColumn> 
Daniel
Telerik team
 answered on 08 Mar 2010
1 answer
92 views

Have a RadGrid with the Skin set to “Web20”  but the DataPicker on a GridDataTimeColumn does not show the header items like prev, next, month and year when I click on the calendar. “<< <   Month Year >  >>   If I switch to “Vista” or "Windows7" it works fine.   Looks like same problem exists with "WebBlue".

 

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1"  Skin="Web20"

        GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

        AllowAutomaticUpdates="True" onitemcreated="RadGrid1_ItemCreated1" AllowSorting="True"

         AllowPaging="True" PageSize="15" Width="100%">

            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>

 

 

<telerik:GridDateTimeColumn UniqueName="Date" PickerType="DatePicker" HeaderText="Date" DataField="Date" DataFormatString="{0:MM/dd/yyyy}" HeaderButtonType="TextButton">

      <ItemStyle Width="120px" />

</telerik:GridDateTimeColumn>

Sebastian
Telerik team
 answered on 08 Mar 2010
6 answers
228 views
by default in chart, yaxis are on left hand side.
what setting needs to make it on right hand side vs left hand side ?
Preet
Top achievements
Rank 1
 answered on 08 Mar 2010
3 answers
105 views
Hi all

Short VB code needed;

I have a grid with edit and add new record enabled, and by using a template for EditFormType i built my own input form.
the problem is that i need an insert / update button so:

+  when the user click edit,  the text on the button shows Update and when the user click Insert new record the button shows up as Insert.

Thanks

grand lorie
Top achievements
Rank 1
 answered on 08 Mar 2010
5 answers
135 views
When a grid contains a GridDropDownColumn to display text linked to a value of a field, the Group feature only shows the value of the field and not the related text.  The documentation says that showing the value of the field is the default and additional comments on the forum suggest using GroupByExpression to permit showing the text field.  However, I can not get this to work.  I am using two EntityDataSources, one for the grid datasource and a second to host the dropdown values.  I would like to implement a solution but if the current RadGrid can already pull the text from the second datasource to show in the grid, it should be automatically possible to show the same text when using the Group function.

Any suggestions are welcome.
Tsvetoslav
Telerik team
 answered on 08 Mar 2010
1 answer
144 views
I am using Radslider as a custom scroll bar , I have set of Items  , the number of items appear is dynamic..I used to get scroll bar when number of items > 2 . after using RadSlider to customize scroll bar, slider is appearing always , i.e. independent of items count. please help me in resolving this issue. thanks in advance.
Tsvetie
Telerik team
 answered on 08 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?