Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
140 views
Hi,

I have a RadComboBox that i would like to be populeated from a WCF Service, i see all of your examples and they all work just great, one thing i can figure out how to do is send in a param that has nothing to do with the dropdownlist other than what it is loading...  So lets say i have 3 ComboBox's on the screen and each of them should use the same exact WebMethod from my service, the difference is they each send in a different param.  The following is my ServiceMethods

        [WebGet(ResponseFormat = WebMessageFormat.Xml)]  
        IEnumerable<RadComboBoxItemData> ICommonManager.EnumToList(Type t)  
        {  
            SortedList<string, int> myList = Common.GetEnumDataSource(t);  
            List<RadComboBoxItemData> items = new List<RadComboBoxItemData>();  
            for (int i = 0; i < myList.Count; i++)  
            {  
                RadComboBoxItemData itemData = new RadComboBoxItemData();  
                itemData.Text = myList.Keys[i];  
                itemData.Value = myList.Values[i].ToString();  
                items.Add(itemData);  
            }  
            return items;  
        }  
 
As you can see this method needs to be called with the Type of Enum send in.  I have seen from examples on the site that you can send in 

RadComboBoxContext

 

 but that does not help as all that is, is an IDictionary.  There are over 100 Enums that i try to do this with, it would be horrible if i had to create a WebMethod for each and everyone of these Enums.

Is there something i can set when i create this combobox(i create all of my dynamically with the ability to know if it's datasource comming from a webservice before the control is created) to send in to the webservice the type of enum i need it to return?  Also all of my dropdowns have an 'EmptyMessage' set to something.

BTW: the reason i do that SortedList is so that i can return the Enum in Alpa order, here is that function for those that would like it.

        public static SortedList<string, Int32> GetEnumDataSource(Type enumType)  
        {  
            SortedList<string, Int32> returnCollection = new SortedList<string, Int32>();  
            try  
            {  
                if (enumType.BaseType == typeof(Enum))  
                {  
                    string[] enumNames = Enum.GetNames(enumType);  
                    foreach (string current in enumNames)  
                    {  
                        returnCollection.Add(current, Convert.ToInt32(Enum.Parse(enumType, current)));  
                    }  
                }  
                return returnCollection;  
            }  
            catch (Exception ex)  
            {  
                return null;  
            }  
        } 


EDIT:: I know i can easily take in a param of string and do reflection to create the Type, and that would be fine, i just need to the ability to let the webservice know which Enum to create and retrun...
Vistalogix
Top achievements
Rank 1
 answered on 18 Jan 2010
10 answers
376 views
First, I was getting the error:

  • ASP.NET Ajax client-side framework failed to load
  • 'Sys' is undefined
  • I looked at your troubleshooting, tried things there. Looked at the below forum post where you say it is a problem you found in 3.5:

    http://www.telerik.com/community/forums/thread/b311D-bgdmde.aspx


    I am having the same problem using 3.5 Visual studio 2008 as well.

    I am using the trial version however, and do not have an account to send you the project.

    What response did you give this individual to help them? I would like to purchase for the November special, but if I can't get it to work, there's no point.

    It works locally, but not when I load it to my webserver remotely. I have gone through the troubleshooting and added the lines they indicate:

    I have this:
       <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.1001.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

    And this:
        <location path="bin/Telerik.Web.UI.WebResource.axd">
            <system.web>
                <authorization>
                    <allow users="*"/>
                </authorization>
            </system.web>
        </location>

    But the second thing above doesn't make sense, since it has its own little system.web inside the location, and I didn't know you could do that.

    Adding that causes it to stop erroring remotely, but none of my radtabstrips load on click, as they do locally.

    What can I do to get this to work painlessly locally and remotely?

    I have the trial version telerik.web.ui.dll and the telerik.web.ui.xml and the telerik.charting.dll and .xml in my /bin folder.

    thanks.

    Moon


    thanks.

    melkorman
    Top achievements
    Rank 1
     answered on 18 Jan 2010
    1 answer
    113 views
    Hello,

          I have got a treeview and in the page_load, I built the entire tree on the server side. When i try to find a node in client side by using 'findItemByValue('110')', it returns null. But if I expand the tree view till that particular node(110) and call 'findItemByValue('110')' it finds the node.

    My requirement is that i need to find a node and expand the treeview till that node.

    Thanks,
    Gijo Joseph.
    <telerik:RadTreeView ID="ReportRadTreeView"  Height="80%"   RetainScrollPosition="False" ExpandDelay="0" runat="server"></telerik:RadTreeView> 
     
    function ExpandNode(NodeId) {  
                  
                var treeView = $find('<%= RadTreeView1.ClientID %>');  
                        var node = treeView.findNodeByValue(NodeId);            
                node.select();  
            } 

    Yana
    Telerik team
     answered on 18 Jan 2010
    1 answer
    97 views
    How to identify the paragraph id on place of curser?
    and how to pass the parent radediter paragraph id to the modal dialog page?
    Rumen
    Telerik team
     answered on 18 Jan 2010
    1 answer
    122 views
    Iam binding the scheduler from 2tables like union query 
    1st table is weekelytimetable
    2nd is dailytimetable
     

    in 1st table i am bind with reccurence rule and 2nd table with starttime and endtime ......

    how can i block allow delete and allow edit  for this day only using reccurence rule in 1st table...from tommarow onwards they can work..how can we break that rule...
    Peter
    Telerik team
     answered on 18 Jan 2010
    1 answer
    46 views
    Hi Guys,

    Please do me a favour if anyone face this type of problem

    Problem:-

    I have  a Rad grid which is inside the asp panel. The problem is when the panel is disabled the grid lokks disabled but the event of the grid is fired like Selected index changed event and hyperlink click inside rad grid item temple. what i will do to prevent this.

    Example:

    <asp:Panel ID="TestPanel"  runat="server"
    <Telerik:RadGrid id="RadGrid1" runat="server"

    </Telerik:RadGrid>
    </Panel>

    .Cs code

    TestPanel.enabled=false;

    but the grid is not disabled.

    Tahnks in advance.



    Mira
    Telerik team
     answered on 18 Jan 2010
    3 answers
    280 views
    Hi,
    I'm evaluating your products for a previsioning system. The user of the system should export some data in excel format and re-import those data for a different period. I'm facing a problem during the import of the excel file generated by the Telerik RadGrid control: I've tried both the HTML based format and the ExcelML format without success. 
    The file that I'm importing is the one generated from the export sample here: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx
    I've changed the sheet name on the command to the correct one. The error I get is the following:
    "External table is not in the expected format". Any suggestion?

    Best Regards,
    Elwood
    Daniel
    Telerik team
     answered on 18 Jan 2010
    3 answers
    134 views
    I am creating a wizard similiar to the demo on the Telerik site:

    http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

    So far it all works great except that when I enable a PanelBarItem, none of my RadComboBoxes get enabled.  My code is almost exactly like the code shown in the demo.  My template(s) consist of tables with my controls in the cells of the tables.

    Thanks.
    Yana
    Telerik team
     answered on 18 Jan 2010
    4 answers
    216 views
    I have code as below :


     <telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="false" runat="server" GridLines="None"
                                                    AllowPaging="true" AllowSorting="true" Width="100%" AutoGenerateColumns="false"
                                                    EnableEmbeddedSkins="false">
                                                    <ClientSettings EnableRowHoverStyle="true">
                                                        <Selecting AllowRowSelect="true" />
                                                        <Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="True">
                                                        </Scrolling>                                                     
                                                        <ClientEvents OnRowSelected="rowSelected" OnCommand="RadGrid1_Command" OnRowDeleted="RowDeleted"  OnRowDeleting="RowDeleting" />
                                                    </ClientSettings>
                                                    <MasterTableView CssClass="RadGrid_Web20" PagerStyle-Mode="NumericPages" ClientDataKeyNames="Customer_Contact_Id">
                                                        <Columns>
                                                            <telerik:GridBoundColumn SortExpression="Contact_Type" DataField="Contact_Type" HeaderText="Contact Type"
                                                                UniqueName="Contact_Type" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Contact_Name" DataField="Contact_Name" HeaderText="Contact Name"
                                                                UniqueName="Contact_Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Telephone" DataField="Telephone" HeaderText="Telephone"
                                                                UniqueName="Telephone" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridHyperLinkColumn ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
                                                                DataNavigateUrlFormatString="mailto:{0}" DataNavigateUrlFields="Email" SortExpression="Email"
                                                                DataTextField="Email" HeaderText="Contact Email" ItemStyle-ForeColor="Blue">
                                                            </telerik:GridHyperLinkColumn>
                                                            <telerik:GridBoundColumn SortExpression="Email" DataField="Email" HeaderText="Contact Email"
                                                                UniqueName="MainEmail" Display="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="ContactId" DataField="ContactId" HeaderText="ContactId"
                                                                UniqueName="ContactId" Display="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="ContactTypeId" DataField="ContactTypeId"
                                                                HeaderText="ContactTypeId" UniqueName="ContactTypeId" Display="false" ItemStyle-HorizontalAlign="Left"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Customer_Code" DataField="Customer_Code"
                                                                HeaderText="Customer_Code" Visible="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Customer_Contact_Id" DataField="Customer_Contact_Id"
                                                                UniqueName="Customer_Contact_Id" HeaderText="Customer_Contact_Id" Display="false"
                                                                ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridClientDeleteColumn ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this row?"
                                                                HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="../Images/Delete.gif"
                                                                CommandName="Delete" />
                                                        </Columns>
                                                    </MasterTableView>
                                                </telerik:RadGrid>


    But previosly  OnRowDeleted="RowDeleted"  OnRowDeleting="RowDeleting" clinet events are getting fired but now 
    in latest version of DDL its not working and i want delete button to diplay for each and every row.


    It was wroking fine with telerik trial version dll but with latest version this events are not firing.
    Tsvetoslav
    Telerik team
     answered on 18 Jan 2010
    1 answer
    496 views
    Hello,

    I am trying to chase down an issue as to why the date picker doesn't seem to be working in my rad scheduler.

    Current State:  Clicking any date in the date picker in the navigation panel posts back and displays "today" regardless of what is selected.

    In an attempt to chase down the issue, I am stepping through the client and server side events for this click.

    Client Side:
    function OnClientNavigationCommand(sender, eventArgs) 
               { 
                  alert('Navigation Command:'); 
                  alert(eventArgs.get_selectedDate().toString());               
               } 

    If today = 1/1/10 and I select 2/25/10 --> This alert shows the date of "1/1/10" rather than "2/25/10".  The alert then shows a 2nd time and shows the date of "2/25/10" as expected.  This seems like the correct behavior might still happen on the server since the most recent execution of this client method showed the right value before posting back....but it doesn't ... see below.



    Server Side:
     protected void CalendarRadScheduler_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e) 
            { 
                //if user used the datepicker 
                if (e.Command == SchedulerNavigationCommand.NavigateToSelectedDate) 
                { 
                    CalendarRadScheduler.SelectedView = SchedulerViewType.DayView; 
                    CalendarRadScheduler.SelectedDate = e.SelectedDate; 
                } 
            } 
     
    I set a breakpoint in this event to see the selected date value being sent to the server using the same values stated above.  The expected value "e.SelectedDate" is "2/25/10", but it instead always shows today's value ....or in this example "1/1/10". 

    The Rad Scheduler control is in a user control that is in a page by itself.

    Here is the code for my ascx page (.net 2.0) [below is the server side code that binds data to the calendar]
    <%@ Control Language="C#" AutoEventWireup="true" Codebehind="MyUserControl.ascx.cs" 
        Inherits="UserControls.MyUserControl" %> 
    <meta http-equiv="X-UA-Compatible" content="IE=7"/> 
     
    <pro:RadCodeBlock ID="RadCodeBlock1" runat="server"
     
    <script type="text/javascript"
                           
     
                function formatDate(date) 
                { 
                    var year = padNumber(date.getFullYear(), 4); 
                    var month = padNumber(date.getMonth() + 1, 2); 
                    var day = padNumber(date.getDate(), 2); 
                    var hour = padNumber(date.getHours(), 2); 
                    var minute = padNumber(date.getMinutes(), 2); 
                     
                    return year + month + day + hour + minute; 
                } 
                 
                function padNumber(number, totalDigits) 
                { 
                    numbernumber = number.toString(); 
                    var padding = ''
                    if (totalDigits > number.length) 
                    { 
                        for (i = 0; i < (totalDigits - number.length); i++) 
                        { 
                            padding += '0'; 
                        } 
                    } 
                     
                    return padding + number.toString(); 
                } 
                     
                //prevent resizing 
              function OnClientAppointmentResizeStart(sender, eventArgs) 
              { 
                 alert('no resizing'); 
                 //eventArgs.set_cancel(true); 
              } 
                 
                //prevent resizing 
              function OnClientAppointmentResizeEnd(sender, eventArgs) 
              {          
                alert('resizing end')                          
              } 
               
              //prevent editing of recurring messages 
              function OnClientAppointmentEditing(sender, eventArgs) 
              { 
                alert('editing'); 
                if(eventArgs.get_editingRecurringSeries()) 
                      eventArgs.set_cancel(true); 
              } 
               
              function OnClientAppointmentDoubleClick(sender, eventArgs) 
              { 
                  alert('here'); 
              } 
               
              function OnClientAppointmentInserting(sender, eventArgs) 
                { 
                     var start = formatDate(eventArgs.get_startTime()); 
                      
                     document.location.href = '<%=PageToRedirect + "?StartDate="%>' + start; 
                     eventArgs.set_cancel(true); 
                }   
                 
        </script> 
     
    </pro:RadCodeBlock> 
    <telerik:RadScriptBlock runat="server" ID="scriptContextMenu"
     
            <script type="text/javascript"
                var selectedAppointment = null
                var contextMenuSlot = null
     
                function checkResourceMenuItem(menu, appointment) { 
                    var calendar = appointment.get_resources().getResourcesByType("Calendar").getResource(0); 
                    if (!calendar) 
                        return; 
     
                    var actionItem = menu.findItemByText("Action"); 
                    //Traverse all menu items below "Action" 
                    for (var i = 0; i < actionItem.get_items().get_count(); i++) { 
                        var item = actionItem.get_items().getItem(i); 
                        if (item.get_value() == calendar.get_key()) { 
                            //The item corresponds to the current "Calendar" - the Value of the item stores the Key of the resource 
                            item.set_imageUrl("Images/checked.gif"); 
                        } 
                        else { 
                            item.set_imageUrl(""); 
                        } 
                    } 
                } 
     
                //Called when the user right-clicks an appointment 
                function appointmentContextMenu(sender, eventArgs) { 
                    var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>"); 
                    selectedAppointment = eventArgs.get_appointment(); 
                    checkResourceMenuItem(menu, selectedAppointment); 
                    menu.show(eventArgs.get_domEvent()); 
                } 
     
                //Called when the user clicks an item from the appointment context menu 
                function appointmentContextMenuItemClicking(sender, eventArgs) { 
                    var clickedItem = eventArgs.get_item();                 
                    if (clickedItem.get_text() == "Action") { 
                        //Prevent the menu from closing if the user clicked the "Action" menu item 
                        eventArgs.set_cancel(true); 
                        return; 
                    } 
                } 
     
                //Called when the user clicks an item from the appointment context menu 
                function appointmentContextMenuItemClicked(sender, eventArgs)  
                { 
                     
                    if (!selectedAppointment) 
                        return; 
     
                    var clickedItem = eventArgs.get_item(); 
                    var scheduler = $find("<%= CalendarRadScheduler.ClientID %>"); 
     
                    if (clickedItem.get_parent().get_text && clickedItem.get_parent().get_text() == "Action") { 
                        //The user clicked the item corresponding to the "Calendar" resource to which the appointment is assigned 
                        if (clickedItem.get_imageUrl()) 
                            return; 
     
                        //Clear all resources  
                        selectedAppointment.get_resources().clear(); 
                        //Find the resource corresponding to the clicked item 
                        var calendar = scheduler.get_resources().getResourceByTypeAndKey("Calendar", clickedItem.get_value()); 
                        //Add it to the appointment resources collection 
                        selectedAppointment.get_resources().add(calendar); 
                        //Update the appointment 
                        scheduler.updateAppointment(selectedAppointment); 
                    } 
                }            
                 
                function OnClientRecurrenceActionDialogShowing(sender, eventArgs) 
               { 
                   alert('in OnClientRecurrenceActionDialogShowing()'); 
                   eventArgs.set_cancel(true);   
                   
                   //Edit this instance only:   
                   eventArgs.set_editSeries(false);   
               }         
                
               function CalendarRadScheduler_AppointmentContextMenuItemClicked(sender, eventArgs) 
               { 
                alert('you click a menu button'); 
               } 
                
               function OnClientNavigationCommand(sender, eventArgs) 
               { 
                  alert('Navigation Command:'); 
                  alert(eventArgs.get_selectedDate().toString());               
               } 
                
            </script> 
     
        </telerik:RadScriptBlock> 
     
     
    <pro:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        <AjaxSettings> 
            <pro:AjaxSetting AjaxControlID="CalendarRadScheduler"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="CalendarRadScheduler" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </pro:AjaxSetting> 
        </AjaxSettings> 
    </pro:RadAjaxManager> 
     
            <pro:RadScheduler  
                ID="CalendarRadScheduler"  
                runat="server"  
                EnableAjaxSkinRendering="false" 
                Height="750px"  
                Width="578px"  
                ShowAllDayRow="False"  
                AllowDelete="True"  
                AllowEdit="True" 
                AllowInsert="True"  
                Skin="Office2007" 
                HoursPanelTimeFormat="h:mm tt"  
                MinutesPerRow="15"  
                ShowFullTime="True" 
                StartEditingInAdvancedForm="false" 
                DataKeyField="ID"  
                DataSubjectField="Subject"  
                DataStartField="Start"  
                DataEndField="End" 
                DataRecurrenceField="RecurrenceRule"  
                DataRecurrenceParentKeyField="RecurrenceParentID" 
                DayEndTime="18:30:00"  
                DayStartTime="08:00:00"  
                ShowFooter="false"  
                OnClientAppointmentInserting="OnClientAppointmentInserting" 
                OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick" 
                OnClientAppointmentEditing="OnClientAppointmentEditing"  
                OnClientAppointmentResizeEnd="OnClientAppointmentResizeEnd" 
                OnAppointmentCreated="CalendarRadScheduler_AppointmentCreated"  
                OnAppointmentDataBound="CalendarRadScheduler_AppointmentDataBound"  
                CustomAttributeNames="NetworkId"  
                OnAppointmentCommand="CalendarRadScheduler_AppointmentCommand"  
                OnFormCreating="CalendarRadScheduler_FormCreating"  
                OnAppointmentContextMenuItemClicked="CalendarRadScheduler_AppointmentContextMenuItemClicked"  
                OnAppointmentUpdate="CalendarRadScheduler_AppointmentUpdate" 
                OnClientRecurrenceActionDialogShowing ="OnClientRecurrenceActionDialogShowing"  
                OnClientNavigationCommand="OnClientNavigationCommand" 
                OnNavigationCommand="CalendarRadScheduler_NavigationCommand"
                 
                <AppointmentContextMenus> 
                    <%--The appointment context menu interaction is handled on the client in this example--%> 
                    <%--See the JavaScript code above--%> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu"
                        <Items> 
                            <telerik:RadMenuItem Text="View" Value="CommandView" /> 
                            <telerik:RadMenuItem IsSeparator="True" /> 
                            <telerik:RadMenuItem Text="Copy" Value="CommandCopy" ImageUrl="/images/copy.gif"/> 
                            <telerik:RadMenuItem IsSeparator="True" /> 
                            <telerik:RadMenuItem Text="Edit" Value="CommandEdit" ImageUrl="/images/edit.gif"/> 
                            <telerik:RadMenuItem IsSeparator="True" /> 
                            <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="/images/icon_trash.gif" /> 
                            <telerik:RadMenuItem IsSeparator="True" /> 
                            <telerik:RadMenuItem Text="Action" Visible="false"
                                <Items> 
                                    <telerik:RadMenuItem Text="Development" Value="1" /> 
                                    <telerik:RadMenuItem Text="Marketing" Value="2" /> 
                                    <telerik:RadMenuItem Text="Personal" Value="3" /> 
                                    <telerik:RadMenuItem Text="Work" Value="4" /> 
                                </Items> 
                            </telerik:RadMenuItem> 
                            
                        </Items> 
                    </telerik:RadSchedulerContextMenu> 
                </AppointmentContextMenus> 
                <AppointmentTemplate> 
                    <div> 
                        <%# FormatCalendarMessage() %> 
                    </div> 
                </AppointmentTemplate> 
                 
            </pro:RadScheduler> 
         
    <asp:Label ID="lbl" runat="server" Visible="false"></asp:Label> 
    <pro:RadAjaxLoadingPanel  
        ID="RadAjaxLoadingPanel1"  
        runat="server"  
        Transparency="30" 
        BackColor="#E0E0E0"  
        InitialDelayTime="500"
            <asp:Image ID="Image2" Style="margin-top: 200px" runat="server" ImageUrl="/images/loading.gif" BorderWidth="0px" AlternateText="Loading"></asp:Image> 
    </pro:RadAjaxLoadingPanel> 
     
     
     

    Server Side Code that binds data to calendar:
     private void GetMessagesForCalendar() 
            { 
                string strUserIdList = BuildUserList(); 
                MessageDAO daoMessage = new MessageDAO(); 
                DataTable dt = daoMessage.GetMessagesForCalendar(strUserIdList); 
     
                //Build list of appointments 
                List<Appointment> lstAppointments = new List<Appointment>(); 
     
                foreach (DataRow dr in dt.Rows) 
                { 
                    Appointment objApt = new Appointment(); 
                    objApt.Owner = CalendarRadScheduler; 
                    objApt.ID = Convert.ToInt32(dr["MessageId"]); 
                    objApt.Subject = Convert.ToString(dr["MessageText"]); 
                    //add custom attribute to hold the social network 
                    objApt.Attributes["NetworkId"] = Convert.ToString(dr["NetworkId"]); 
                    //objApt.Start = DateTime.SpecifyKind(Convert.ToDateTime(dr["Start"]), DateTimeKind.Utc); 
                    objApt.Start = Convert.ToDateTime(dr["Start"]); 
                    objApt.End = Convert.ToDateTime(dr["End"]); 
                    objApt.RecurrenceRule = Convert.ToString(dr["RecurrenceRule"]); 
                    objApt.RecurrenceParentID = dr["RecurrenceParentId"]; 
                    objApt.RecurrenceState = RecurrenceState.Master; 
     
                    lstAppointments.Add(objApt); 
                } 
     

                CalendarRadScheduler.DataSource = lstAppointments; 
                CalendarRadScheduler.Rebind(); 
            } 


    Thanks,

    Ryan


    rjb227s
    Top achievements
    Rank 1
     answered on 18 Jan 2010
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Simon
    Top achievements
    Rank 2
    Iron
    Iron
    Bob
    Top achievements
    Rank 3
    Iron
    Iron
    Veteran
    Marco
    Top achievements
    Rank 4
    Iron
    Iron
    Iron
    Grant
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Simon
    Top achievements
    Rank 2
    Iron
    Iron
    Bob
    Top achievements
    Rank 3
    Iron
    Iron
    Veteran
    Marco
    Top achievements
    Rank 4
    Iron
    Iron
    Iron
    Grant
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?