Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
285 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
140 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
223 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
511 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
6 answers
246 views
We have need to use ComboBox, DateTimePicker, Grid, Window, Tooltip, RadFormDecorator, and Scheduler controls all possibly on the same page.

What is the best way to manage adding the required scripts for these controls to a RadScriptManager to cut down on the total requests hitting the webserver?

Thanks,
Jason
Jason Denney
Top achievements
Rank 1
 answered on 18 Jan 2010
8 answers
114 views
Hi All

I am try to use rad editor. the problem is once i click on the upload button on image manager nothing happen( I mean no more window will open). i have configure all the upload view delete paths.

Thanks
Regards
Rukman
Rumen
Telerik team
 answered on 18 Jan 2010
6 answers
329 views
I have a page with the following layout:

Header
RadMenu
RadToolbar
RadGrid
Footer

Header and footer are divs positioned with CSS.  RadMenu, RadToolbar, and RadGrid sit inside a content div size to fit between the header and footer with CSS rules.

Anytime I set a height for the RadGrid using its Height property, I see very poor rendering performance for the grid (in the 1-2 second range).  Grid column headers are set to remain static for vertical scrolling and scroll horizontally with horizontal scrolling.  The grid contains about 40 columns and 100 rows of data so both horizontal and vertical scroll bars are present.

If a remove any explicit height value, the grid renders very quickly, but it does not fill the content area between the toolbar and footer.  I assume the resizing is controlled with JavaScript.  Any suggestions for speeding this up without a hack?

James Pearson
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
111 views
Hello, i'm having a problem with the RadGrid, i have several columns, one of them has only numeric data, and the RadGrid sort it as text not as number. All columns are TemplateColumns, here is the code

        <telerik:RadGrid 
            ID="radGridShoppingCart" 
            runat="server" 
            Height="100%" 
            Width="100%" 
            GridLines="Both" 
            DataSourceID="oDsInfoDetalleCesta" 
            Skin="Default" 
            ShowStatusBar="true" 
            PageSize="5" 
            OnItemDataBound="radGridShoppingCart_ItemDataBound">             
            <MasterTableView 
                AutoGenerateColumns="false" 
                AllowAutomaticDeletes="false" 
                AllowAutomaticInserts="false" 
                AllowAutomaticUpdates="false" 
                AllowSorting="true" 
                AllowNaturalSort="true" 
                AllowPaging="true" 
                CellPadding="0" 
                CellSpacing="0" 
                PagerStyle-AlwaysVisible="true" 
                PagerStyle-Mode="NextPrevAndNumeric" 
                PagerStyle-Position="Bottom"> 
                <Columns> 
                    <telerik:GridTemplateColumn 
                        DataField="colItemNumber" 
                        DataType="System.Int32" 
                        Resizable="true" 
                        UniqueName="colItemNumber" 
                        HeaderStyle-HorizontalAlign="Center" 
                        ShowSortIcon="true" 
                        SortExpression="ITEM_NUMBER" 
                        HeaderStyle-Width="10%"> 
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblItemNumber" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("ITEM_NUMBER") %>'> 
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="colDescription" 
                        Resizable="true" 
                        UniqueName="colDescription" 
                        HeaderStyle-HorizontalAlign="Left" 
                        HeaderStyle-Width="45%" 
                        ShowSortIcon="true" 
                        SortExpression="DESCRIPTION"> 
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblDescription" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("DESCRIPTION") %>'> 
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Left" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="colQuantity" 
                        Resizable="true" 
                        UniqueName="colQuantity" 
                        HeaderStyle-HorizontalAlign="Right" 
                        HeaderStyle-Width="15%" 
                        ShowSortIcon="true" 
                        SortExpression="QUANTITY"> 
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblQuantity" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("QUANTITY") %>'> 
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Right" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="colUnit" 
                        Resizable="true" 
                        UniqueName="colUnit" 
                        HeaderStyle-HorizontalAlign="Center" 
                        HeaderStyle-Width="10%" 
                        ShowSortIcon="true" 
                        SortExpression="UNIT"> 
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblUnit" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("UNIT") %>'> 
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="colPrice" 
                        Resizable="true" 
                        UniqueName="colPrice" 
                        HeaderStyle-HorizontalAlign="Right" 
                        HeaderStyle-Width="20%" 
                        ShowSortIcon="true" 
                        SortExpression="PRICE"> 
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblPrice" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #(((double.Parse(Eval("QUANTITY").ToString())) * (double.Parse(Eval("PRICE").ToString()))).ToString("N")) + " " + Eval("CURRENCY").ToString()%>'> 
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Right" /> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                <HeaderStyle 
                    Font-Bold="true" 
                    Font-Names="Verdana" 
                    Font-Size="6.5pt" 
                    ForeColor="#000000" 
                    VerticalAlign="Middle" 
                    Wrap="true"/> 
                <ItemStyle 
                    Font-Names="Verdana" 
                    Font-Size="6.5pt" 
                    VerticalAlign="Middle" /> 
                <PagerStyle 
                    Font-Bold="true" 
                    Font-Names="Verdana" 
                    Font-Size="7.5pt" 
                    HorizontalAlign="Left" 
                    VerticalAlign="Middle" 
                    Mode="NumericPages" /> 
                <CommandItemStyle 
                    Font-Bold="true" 
                    Font-Names="Verdana" 
                    Font-Size="7.5pt "/> 
            </MasterTableView> 
        </telerik:RadGrid> 

The problem is with the colItemNumber column. Thanks in advance.
Pavlina
Telerik team
 answered on 18 Jan 2010
3 answers
160 views
the combo box works fine in  IE. but when in FF, it doesn't go over my flash.
If flash wmode=transparent it works, but i need it not to be tranparant for speed issues. works fin ein IE.

I saw that the non ajax has overlay property, but the ajax one doesn't?

how can i make the dropdown show over flash in FF?


Schlurk
Top achievements
Rank 2
 answered on 18 Jan 2010
1 answer
94 views

Hi,

I wonder how to prohibit drag and drop using mouse in RadScheduler which version is 2009 V2.
Is there any solution about this?

Please, refer to the below source code.

Many thanks,
Joey

<%@ Page Title="" Language="C#" MasterPageFile="~/Master/RootMasterPage.master" AutoEventWireup="true" 
    CodeFile="ScheduleList.aspx.cs" Inherits="Schedule_ScheduleList" %> 
 
<%@ Register Assembly="HunetPager" Namespace="HunetPager" TagPrefix="pager" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Reference Control="~/Control/ScheduleToolTip.ascx" %> 
<%@ Import Namespace="Hunet.GW.UserInfo" %> 
<%@ Import Namespace="System.Collections.Generic" %> 
<%@ Import Namespace="System.Linq" %> 
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">  
 
    <script type="text/javascript">  
        //<![CDATA[
        function hideActiveToolTip() {
            var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
            if (tooltip) {
                tooltip.hide();
            }
        }
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
        function beginRequestHandler(sender, args) {
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            if (args.get_postBackElement().id.indexOf('RadScheduler1') != -1) {
                hideActiveToolTip();
            }
        }
        function clientBeforeShow(sender, eventArgs) {
            w = $telerik.$(window).width() / 2;
            h = $telerik.$(window).height() / 2;
            if ((sender._mouseX > w) && (sender._mouseY > h)) {
                sender.set_position(Telerik.Web.UI.ToolTipPosition.TopLeft);
                return;
            }
            if ((sender._mouseX < w) && (sender._mouseY > h)) {
                sender.set_position(Telerik.Web.UI.ToolTipPosition.TopRight);
                return;
            }
            if ((sender._mouseX > w) && (sender._mouseY < h)) {
                sender.set_position(Telerik.Web.UI.ToolTipPosition.BottomLeft);
                return;
            }
            sender.set_position(Telerik.Web.UI.ToolTipPosition.BottomRight);
        }
        //]]> 
    </script> 
 
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">  
 
        <script type="text/javascript">  
            function WriteForm(startDate) {  
                location.href = 'ScheduleWrite.aspx?startDate=' + startDate;  
            }  
            function EditForm(scheduleSeq) {  
                location.href = 'ScheduleModify.aspx?scheduleSeq=' + scheduleSeq;  
            }  
        </script> 
 
    </telerik:RadScriptBlock> 
    <div class="search_top">  
        <asp:DropDownList ID="ddlHeadquarter" runat="server" OnSelectedIndexChanged="ddlHeadquarter_selectedIndexChanged" 
            AutoPostBack="true">  
            <asp:ListItem Text="본부 선택" Value=""></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlTeam" runat="server" Visible="false" OnSelectedIndexChanged="ddlTeam_selectedIndexChanged" 
            AutoPostBack="true">  
            <asp:ListItem Text="팀 선택" Value=""></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlOpenType" runat="server" OnSelectedIndexChanged="ddlOpenType_selectedIndexChanged" 
            AutoPostBack="true" Visible="false">  
            <asp:ListItem Text="공개유형" Value=""></asp:ListItem> 
            <asp:ListItem Text="전체" Value="1"></asp:ListItem> 
            <asp:ListItem Text="팀" Value="2"></asp:ListItem> 
            <asp:ListItem Text="본부" Value="3"></asp:ListItem> 
            <asp:ListItem Text="비공개" Value="4"></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlScheduleType" runat="server" OnSelectedIndexChanged="ddlScheduleType_selectedIndexChanged" 
            AutoPostBack="true">  
            <asp:ListItem Text="일정유형" Value=""></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlSearch" runat="server">  
            <asp:ListItem Text="검색항목" Value=""></asp:ListItem> 
            <asp:ListItem Text="일정명" Value="title"></asp:ListItem> 
            <%--<asp:ListItem Text="등록자명" Value="regNm"></asp:ListItem>--%> 
            <asp:ListItem Text="등록자ID" Value="regId"></asp:ListItem> 
        </asp:DropDownList> 
        <asp:TextBox ID="txtSearchNm" runat="server" Width="200px"></asp:TextBox> 
        <asp:CheckBox ID="chkMine" runat="server" AutoPostBack="true" Checked="true" />내일정  
        <asp:ImageButton ID="ibtSearch" runat="server" OnClick="ibtSearch_click" ImageUrl="/image/btn/btn_s_search.gif" 
            ImageAlign="absmiddle" CssClass="searchBtn" /> 
    </div> 
    <div class="contents_sub clearfix">  
        <h3> 
            일정관리  
            <p> 
                <span class="btnBGrey"><a href="ScheduleWrite.aspx"><span></span><strong>일정등록</strong></a></span> 
            </p> 
        </h3> 
        <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">  
            <ContentTemplate> 
                <telerik:RadScheduler runat="server" ID="RadScheduler1" Height="571px" AllowDelete="False" 
                    OnAppointmentCreated="RadScheduler1_AppointmentCreated" DataKeyField="ID" DataSubjectField="Subject" 
                    DataStartField="Start" DataEndField="End" CustomAttributeNames="TypeCd, OpenType, WorkSeq, ScheduleSeq, RegId" 
                    OnClientBeforeShow="clientBeforeShow" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" 
                    AdvancedForm-Enabled="false" OnFormCreating="RadScheduler1_FormCreating" OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
                    EnableEmbeddedSkins="True" OverflowBehavior="Expand" 
                    EnableAdvancedForm="False" 
                    DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId">  
                    <timelineview userselectable="false" /> 
                    <resourcestyles> 
                        <telerik:ResourceStyleMapping Type="Calendar" Text="All" ApplyCssClass="rsCategoryGreen" /> 
                        <telerik:ResourceStyleMapping Type="Calendar" Text="Headqurter" ApplyCssClass="rsCategoryRed" /> 
                        <telerik:ResourceStyleMapping Type="Calendar" Text="Team" ApplyCssClass="rsCategoryOrange" /> 
                        <telerik:ResourceStyleMapping Type="Calendar" Text="Secreat" ApplyCssClass="rsCategoryOrange" /> 
                    </resourcestyles> 
                    <appointmenttemplate> 
                        <DataTemplate>    
                            <Grid> 
                        <TextBlock Height="100">   
                <asp:Label ID="lblTitle" runat="server"></asp:Label> 
                </TextBlock> 
                </Grid> 
                </DataTemplate>    
                  
            </appointmenttemplate> 
                    <timelineview userselectable="false" /> 
                    <dayview userselectable="false" /> 
                    <weekview userselectable="true" /> 
                    <monthview userselectable="true" visibleappointmentsperday="2" /> 
                </telerik:RadScheduler> 
                <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" 
                    Skin="Web20" Animation="None" Position="BottomCenter" Sticky="True" Text="Loading..." 
                    OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" /> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
        <p class="tbl_list_btn">  
            <span class="btnBGrey"><a href="ScheduleWrite.aspx"><span></span><strong>일정등록</strong></a></span> 
        </p> 
    </div> 
</asp:Content> 
 
Peter
Telerik team
 answered on 18 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?