Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
469 views
Hi,

I am using telerik radgrid. The radgrid performance is worst in following  scenarios. Please let me know if there is any other way to improve the performance.

1. I have radgrid with PagerStyle Mode="NextPrevAndNumeric" option, In dropdown i implemented "viewall" option to show all rows in a grid. When i selected view all option the radgrid performance is very slow in both  IE6, IE7 and Firefox. Even its getting stuck (See the attached image) in both browsers. I am showing around 6000 records in radgrid. Its taking around 30sec - 40sec to show the all rows in a grid and the grid is very slow for swapping, filtering, sorting and even for scrolling down.

2. I have GridClientSelectColumn in my radgrid. When I am showing all rows in a grid and when I am trying to select all rows in a grid using check box column its getting very slow in IE7(around 6 - 7 sec to select all rows) But in Firefox it is better( 2 sec).

Is there any better way to improve performance of a radgrid. Is there other way to bind the data to the grid when user select "viewall" option?

Please find my attached code.

.ASPX

<asp:Content ID="Content1" ContentPlaceHolderID="CSS_ScriptPlaceHolder" runat="Server"
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <link href="CSS/Css.css" rel="stylesheet" type="text/css" /> 
        <script type="text/javascript"
 
            function onAgrtypeOther() { 
                if (document.getElementById('tabTskDet_tabAgreInfo_ddlAgreementType').selectedIndex == 4) 
                    document.getElementById('trAgrTypeOther').style.visibility = 'visible'
                else 
                    document.getElementById('trAgrTypeOther').style.visibility = 'hidden'
                return false; 
            } 
            function onPertypeOther() { 
                if (document.getElementById('tabTskDet_tabPermit_ddlPermitType').selectedIndex == 3) 
                    document.getElementById('tdPerTypeOther').style.visibility = 'visible'
                else 
                    document.getElementById('tdPerTypeOther').style.visibility = 'hidden'
                return false; 
            } 
            function onSitetypeOther() { 
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlSiteType').selectedIndex == 4) 
                    document.getElementById('tabTskDet_tabGenTskDet_tdSiteTypeOth').style.visibility = 'visible'
                else 
                    document.getElementById('tabTskDet_tabGenTskDet_tdSiteTypeOth').style.visibility = 'hidden'
                return false; 
 
            } 
            function onPwrtypeOther() { 
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlPwrStatus').selectedIndex == 4) 
                    document.getElementById('tabTskDet_tabGenTskDet_tdPwrStatusOth').style.visibility = 'visible'
                else 
                    document.getElementById('tabTskDet_tabGenTskDet_tdPwrStatusOth').style.visibility = 'hidden'
                return false; 
            } 
            function onEqiLoctypeOther() { 
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlEquiLocDesc').selectedIndex == 3) 
                    document.getElementById('tabTskDet_tabGenTskDet_tdEquiLocDescOth').style.visibility = 'visible'
                else 
                    document.getElementById('tabTskDet_tabGenTskDet_tdEquiLocDescOth').style.visibility = 'hidden'
                return false; 
            } 
            function showOthRea() { 
                var dt1 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstSchCompDate").value); 
                var dt2 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstActCompDate").value); 
                if (dt1 < dt2) { 
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea306").style.display = "block" 
                } 
                else { 
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea306").style.display = "none" 
                    document.getElementById("tabTskDet_tabGenTskDet_lblDueDtLateRea").value = '' 
                } 
            } 
            function showOthRea303() { 
                var dt1 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtContSchComDt").value); 
                var dt2 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstActComDt").value); 
                if (dt1 < dt2) { 
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea303").style.display = "block" 
                } 
                else { 
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea303").style.display = "none" 
                    document.getElementById("tabTskDet_tabGenTskDet_lbl303DueDtLateRea").value = '' 
                } 
            } 
            function DisplayDateToday(sender, args) { 
                if (sender._selectedDate == null) { 
                    sender._selectedDate = new Date(); 
                } 
            } 
            function onRequestStart(sender, args) { 
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) { 
 
                    args.set_enableAjax(false); 
                } 
            } 
        </script> 
 
        <style> 
            .modalBackground 
            { 
                background-color: Gray; 
                filter: alpha(opacity=70); 
                opacity: 0.7; 
            } 
            .AjaxCalendar .ajax__calendar_container 
            { 
                border: 1px solid #646464; 
                background-color: White; 
                color: Black; 
            } 
            .AjaxCalendar .ajax__calendar_other .ajax__calendar_day, .AjaxCalendar .ajax__calendar_other .ajax__calendar_year 
            { 
                color: #999999; 
            } 
            .AjaxCalendar .ajax__calendar_hover .ajax__calendar_day, .AjaxCalendar .ajax__calendar_hover .ajax__calendar_month, .AjaxCalendar .ajax__calendar_hover .ajax__calendar_year 
            { 
                color: Red; 
            } 
            .AjaxCalendar .ajax__calendar_active .ajax__calendar_day, .AjaxCalendar .ajax__calendar_active .ajax__calendar_month, .AjaxCalendar .ajax__calendar_active .ajax__calendar_year 
            { 
                background-color: #78C43C; 
                color: Black; 
                text-align: center; 
                font-weight: bold; 
            } 
            .rgPageFirst, .rgPagePrev, .rgPageNext, .rgPageLast 
            { 
                display: none !important; 
            } 
            div.RadGrid_Default .rgHeader, div.RadGrid_Default th.rgResizeCol 
            { 
                background-image: none; 
            } 
        </style> 
    </telerik:RadCodeBlock> 
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="PagePlaceholder" runat="Server"
    <div style="width: 100%; padding-top: 20px"
        <table style="width: 98%"
            <tr> 
                <td colspan="2"
                    <asp:Label runat="server" Font-Bold="true" Font-Size="14pt" ID="lblTskName"></asp:Label> 
                </td> 
            </tr> 
            <tr> 
                <td colspan="2"
                    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
                    </telerik:RadScriptManager> 
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                        <ClientEvents OnRequestStart="onRequestStart" /> 
                        <AjaxSettings> 
                            <telerik:AjaxSetting AjaxControlID="rg209"
                                <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="rg209" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                </UpdatedControls> 
                            </telerik:AjaxSetting> 
                        </AjaxSettings> 
                    </telerik:RadAjaxManager> 
                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
                    </telerik:RadAjaxLoadingPanel> 
                    <telerik:RadGrid ID="rg209" runat="server" AutoGenerateColumns="false" Height="550px" 
                        OnNeedDataSource="rg209_NeedDataSource" Width="100%" AllowPaging="True" AllowSorting="True" 
                        AllowMultiRowSelection="True" EnableHeaderContextMenu="true" GridLines="None" 
                        EnableHeaderContextFilterMenu="true" AllowMultiRowEdit="true" AllowFilteringByColumn="True" 
                        OnPreRender="rg209_PreRender" OnItemCreated="rg209_ItemCreated" EnableViewState="false"
                        <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White" 
                            HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" /> 
                        <ExportSettings IgnorePaging="true" ExportOnlyData="true"
                            <Pdf AllowModify="false" AllowPrinting="true" PageBottomMargin="" PageFooterMargin="" 
                                PageHeaderMargin="" PageHeight="11in" PageLeftMargin="" PageRightMargin="" PageTopMargin="" 
                                PageWidth="14in" /> 
                        </ExportSettings> 
                        <MasterTableView DataKeyNames="orderId" CommandItemDisplay="Top" EditMode="InPlace" 
                            PageSize="10"
                            <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" 
                                ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> 
                            <Columns> 
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%" 
                                    ItemStyle-Width="3%"
                                </telerik:GridClientSelectColumn> 
                                <telerik:GridBoundColumn UniqueName="sId" HeaderText="sId" DataField="sId" Visible="false"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="orderId" HeaderText="orderId" DataField="orderId" 
                                    Visible="false"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Customer Name" HeaderText="Customer Name" DataField="Customer Name" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Market Name" HeaderText="Market Name" DataField="Market Name" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="LOB" HeaderText="LOB" DataField="LOB" ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Headend Name" HeaderText="Headend Name" DataField="Headend Name" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Project Name" HeaderText="Project Name" DataField="Project Name" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Site Name" HeaderText="Site Name" DataField="Site Name" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Task Status" HeaderText="Task Status" DataField="Task Status" 
                                    ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Sch SM Imp Date" HeaderText="Sch SM Imp Date" 
                                    DataField="Sch SM Imp Date" ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Target PTD" HeaderText="Target PTD" DataField="Target PTD"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Actual PTD" HeaderText="Actual PTD" DataField="Actual PTD"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Foc Date" HeaderText="Foc Date" DataField="Foc Date"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn UniqueName="Notification Date" HeaderText="Notification Date" 
                                    DataField="Notification Date"
                                </telerik:GridBoundColumn> 
                                <telerik:GridCheckBoxColumn UniqueName="Include FOC?" HeaderText="Include FOC?" DataField="Include FOC?"
                                </telerik:GridCheckBoxColumn> 
                                <telerik:GridCheckBoxColumn UniqueName="Include DLR?" HeaderText="Include DLR?" DataField="Include DLR?"
                                </telerik:GridCheckBoxColumn> 
                                <telerik:GridEditCommandColumn UniqueName="ECC209"
                                </telerik:GridEditCommandColumn> 
                            </Columns> 
                        </MasterTableView> 
                        <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="false" AllowDragToGroup="false" 
                            AllowColumnsReorder="True"
                            <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" /> 
                            <Selecting AllowRowSelect="True"></Selecting> 
                            <Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True" 
                                ResizeGridOnColumnResize="False"></Resizing> 
                        </ClientSettings> 
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle> 
                    </telerik:RadGrid> 
                </td> 
            </tr> 
            <tr> 
                <td colspan="2"
                    &nbsp; 
                </td> 
            </tr> 
        </table> 
    </div> 
</asp:Content> 
 


.CS

public partial class Tak209 : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        try 
        { 
            if (!IsPostBack) 
            { 
                Session["SearchRes"] = null; 
                if (Session["TaskName"] != null) 
                    lblTskName.Text = Session["TaskName"].ToString(); 
                Session["FilColms"] = null; 
                Session["SortExp"] = null; 
                Session["FilExp"] = null; 
                Session["ViewAll"] = null; 
                BindGrid(); 
            } 
        } 
        catch (Exception ex) 
        { 
            throw ex; 
        } 
    } 
 
    private void BindGrid() 
    { 
        try 
        { 
            DataSet dsResult = new DataSet(); 
 
            clsSearch_BL clsObj = new clsSearch_BL(); 
            clsObj.TaskID = (string)Session["TaskID"]; 
            clsObj.CustName = (string)Session["CustName"]; 
            clsObj.MarketName = (string)Session["MarketName"]; 
            clsObj.HeadendName = (string)Session["HeadendName"]; 
            clsObj.SiteName = (string)Session["SiteName"]; 
            clsObj.TaskStatus = (string)Session["TaskStatus"]; 
            clsObj.OrdType = (string)Session["OrdType"]; 
            clsObj.OrdStatus = (string)Session["OrdStatus"]; 
            clsObj.ProName = (string)Session["ProName"]; 
            clsObj.LOC = (string)Session["LOC"]; 
            clsObj.QuoteID = (string)Session["QuoteID"]; 
            clsObj.CMNumber = (string)Session["CMNumber"]; 
 
            if (Session["SearchRes"] == null) 
            { 
                dsResult = clsObj.getSearchResults_BL(clsObj); 
                Session["SearchRes"] = dsResult; 
            } 
            else 
                dsResult = (DataSet)Session["SearchRes"]; 
 
            DataView dataView = dsResult.Tables[0].DefaultView; 
            rg209.DataSource = dsResult
            //rg209.DataBind(); 
        } 
        catch (Exception ex) 
        { 
            throw ex; 
        } 
    } 
 
    protected void rg209_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
    { 
        BindGrid(); 
    } 
 
    protected void rg209_PreRender(object sender, EventArgs e) 
    { 
        rg209.MasterTableView.GetColumnSafe("RowIndicator").Display = false
 
    } 
 
    protected void rg209_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridPagerItem) 
        { 
            RadComboBox combo = (e.Item as GridPagerItem).FindControl("PageSizeComboBox") as RadComboBox; 
 
            // The number of items shown when all is selected  
            int allRowsCount = int.MaxValue; 
 
            // Remove duplicates  
            RadComboBoxItem duplicate = combo.Items.FindItemByValue(allRowsCount.ToString()); 
            if (duplicate != null) 
            { 
                duplicate.Remove(); 
            } 
 
            // Create a new item for showing all  
            RadComboBoxItem item = new RadComboBoxItem("All", allRowsCount.ToString()); 
            item.Attributes.Add("ownerTableViewId", e.Item.OwnerTableView.ClientID); 
            combo.Items.Add(item); 
 
            // Set the current pagesize as the selected value  
            combo.Items.FindItemByValue(rg209.PageSize.ToString()).Selected = true
        } 
    } 
 

Pavlina
Telerik team
 answered on 05 Jul 2010
2 answers
127 views
Hi,

I have a RadTabStrip control with 4 tabs in a asp.net page. In these tabs, 3 of them have child-tabs.   And 1 of them doesn't have any child-tabs.

Based on the child-tab selection, on tab click event, I am adding the user control dynamically into a AJAXified panel;
The same thing with the one that doesn't have any child-tabs.

The user controls get loaded dynamically and that part of it works fine.

But, in case of the following scenario where,

   I click on a tab with child tabs, the child tabs show up,
   I click on one of the child tabs, its corresponding user control shows up.  
   Now when I click on the tab that has NO child tabs, the corresponding user control shows up.  
   But the child tabs from my previous tab selection are still being displayed. 
   I am expecting only the root level parent tabs to showup on the page and the child level tabs to go away

Any idea what could be happening.  I appreciate any pointers to a solution.

Regards
-Athadu
Yana
Telerik team
 answered on 05 Jul 2010
8 answers
255 views
can someone please explain to me why it is that when I select a line of text and center align it, ALL the text in the RAD Editor get center aligned.

I only want to center align specific lines of text, not the whole thing, how can this be done ?
Rumen
Telerik team
 answered on 05 Jul 2010
2 answers
88 views
Hi,

I'm getting a strange issue in firefox, I have a formdecorator assigned to the page but checkbox and label aren't included. The page has a Checkboxlist held in a div overflow on the page. Now this list can be quite large so I wanted to add a select all checkbox/button using javascript and this works fine in IE, however in Firefox it styles the checkbox labels when I click select all and the javascript is fired so now I have the standard checkbox and a label which contains the FormDecorator styled checkbox. This does not happen if I select/deselect an individual checkbox. Is there any way around thing.

I have tried styling up the checkbox list however this leads to a separate issue as detailed in this thread
http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/formdecorator-not-working-with-checkbox-list-in-div-overflow.aspx

Is there a solution to this, the problem is only occuring for me in firefox.

Regards



Georgi Tunev
Telerik team
 answered on 05 Jul 2010
7 answers
217 views

I have built a scheduler with the telerik controls and everything went alright. But now I want to display appointments with recurrence. I'm able to add an appointment and add recurrence (save to database and databind ok). When I open my saved appointment the scheduler asks me to edit the series or just the current instance (all ok). When I open my appointment i can see that the recurrence is saved alright.

Now my problem has to do with the view of a recurring appointment. The appointment is only displayed on the day that it is created and not on the other(following) days. Now when the day begins it display all the appointments for that day (recurring. Like yesterday added). How can I let them display as long as they are recurring?

Example:
-> add appointment on (25/11).
-> Set recurring to every day
->I only see the appointment on 25/11 and not on 26/11,27/11,28/11,29/11, ...
-> When it gets to 26/11 (the day after) I’m able to see the appointment that I created on 25/11 but I don't see it on 25/11,27/11,28/11,29/11

it's get well stored and it databinds ok (checked with debugging). I can also change the recurring without any problem. I just want to now why it only displays on the today page and not on any other days

View: file

        <script type="text/javascript">  
            var selectedAppointment = null;  
     
       
                //Called when the user right-clicks an appointment  
            function appointmentContextMenu(sender, eventArgs) {  
                var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>");  
                selectedAppointment = eventArgs.get_appointment();  
    
                // menu.show(eventArgs.get_domEvent());  
            }  
 
                //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("<%= RadScheduler1.ClientID %>");  
 
                if (clickedItem.get_parent().get_text) {  
                    //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 Export(sender, e)  
            {  
                $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, "");  
            }              
        </script> 
    </telerik:RadScriptBlock> 
          
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
      
 
        <telerik:RadScheduler runat="server" style="z-index:1000" ID="RadScheduler1" SelectedDate="2009-06-04" FirstDayOfWeek="Monday" 
            LastDayOfWeek="Sunday" OnClientAppointmentContextMenu="appointmentContextMenu" 
            DataKeyField="ID" DataSubjectField="Subject" Height="375px" 
            DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" 
            DataRecurrenceParentKeyField="RecurrenceParentID" AllowDelete="false" 
            OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked" 
           Skin="Default" StartInsertingInAdvancedForm="True" ShowFullTime="True" EditFormTimeFormat="HH:mm" HoursPanelTimeFormat="HH:mm" MinimumInlineFormHeight="35" DataDescriptionField="Description" EnableDescriptionField="True" CustomAttributeNames="FileType,DownloadLink,Owner" DayEndTime="1.00:00:00" DayStartTime="00:00:00" WorkDayEndTime="00:00:00" WorkDayStartTime="00:00:00" Culture="(Default)">  
                <AppointmentTemplate> 
                   <u><font size="large"><%#Eval("FileType")%>:</font></u>&nbsp;&nbsp;&nbsp;<b><%# Eval("Subject") %></b><%#Eval("DownloadLink")%> 
                    <div style="text-align: right;"><asp:Button runat="server" ID="btnExport" CssClass="rsExportButton" ToolTip="Export to iCalendar" Style="cursor: pointer;cursor: hand;" CommandName="Export" OnClientClick="Export(this, event); return false;" /></div>  
                    <div>&nbsp;&nbsp;&nbsp;<%# Eval("Description") %></div>  
                </AppointmentTemplate> 
                  
                <AppointmentContextMenus> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">  
                        <Items>                          
                            <telerik:RadMenuItem Text="Open" Value="CommandEdit" runat="server" /> 
                            <telerik:RadMenuItem IsSeparator="True" runat="server" /> 
                            <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="~/Images/delete.gif" runat="server" /> 
                        </Items> 
                    </telerik:RadSchedulerContextMenu> 
                </AppointmentContextMenus> 
                <TimeSlotContextMenus> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">  
                        <Items> 
                            <telerik:RadMenuItem Text="New Appointment" ImageUrl="~/Images/calendar.png" Value="CommandAddAppointment" runat="server" /> 
                        </Items> 
                    </telerik:RadSchedulerContextMenu>   
                </TimeSlotContextMenus>     
            <AdvancedForm TimeFormat="HH:mm" />         
            <MultiDayView DayEndTime="10:00:00" DayStartTime="00:00:00" /> 
            <DayView DayEndTime="1.00:00:00" DayStartTime="00:00:00" /> 
       </telerik:RadScheduler> 
 
T. Tsonev
Telerik team
 answered on 05 Jul 2010
3 answers
97 views
Hi
This code in the page load and I am not control page postback.
 
.......  
RadGrid1.Columns.Clear();  
RadGrid1.MasterTableView.Columns.Clear();  
RadGrid1.AutoGenerateColumns = false;  
 
GridBoundColumn boundColumn;  
for (int i = 0; i < dt.Columns.Count; i++)  
{  
if (Request.QueryString["calc"].ToString().Contains(dt.Columns[i].ColumnName.ToString()))  
{  
    boundColumn = new GridBoundColumn();  
    boundColumn.DataField = dt.Columns[i].ColumnName.ToString();  
    boundColumn.HeaderText = dt.Columns[i].ColumnName.ToString();  
    boundColumn.Groupable = true;  
    boundColumn.UniqueName = dt.Columns[i].ColumnName.ToString();  
 
    string[] sumColums = Request.QueryString["calc"].ToString().Split('-');  
 
    for (int a = 0; a < sumColums.Length; a++)  
    {  
        if (sumColums[a].Contains(dt.Columns[i].ColumnName.ToString()))  
        {  
            string[] colFormat = sumColums[a].Split(',');  
            boundColumn.FooterAggregateFormatString = colFormat[1].ToString();  
 
            if (colFormat[2].ToString() == "sum")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Sum;  
            }  
            else if (colFormat[2].ToString() == "count")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Count;  
            }  
            else if (colFormat[2].ToString() == "avg")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Avg;  
            }  
        }  
    }  
 
    RadGrid1.MasterTableView.Columns.Add(boundColumn);  
}  
 
.... 

So my problem is, when I filter a columns is ok, but when I filter other columns, my before filter values gone. I miss my before filter values. My question, how can I set again before filter columns values?

Hashtable hsFiltering = new Hashtable();  
for (int i = 0; i < RadGrid1.Columns.Count; i++)  
{  
    hsFiltering[RadGrid1.Columns[i].HeaderText] = RadGrid1.Columns[i].CurrentFilterValue;  
I get before filter values via this code, but I can not bind filter value again after postback.

Thank you.

Pavlina
Telerik team
 answered on 05 Jul 2010
1 answer
92 views
Hi,

My RadRotator suddendly stopped displaying with Internet Explorer on 3 differents sites located on the same server. Everything seems fine with all the other browsers. I did not make any change in the code and I've ask my server manager, and no change or update has been made.

If you can, at least, give me some direction where I can start looking for the solution, I would really appreciate it.

Thx!

Jeff

Fiko
Telerik team
 answered on 05 Jul 2010
3 answers
117 views
Hi,

I tried setting-up the RadScheduler for an ASP.Net MVC website using the sample provided by the Telerik team in the following thread:


...and most features seem to work as expected except for tracking the availability of resources (http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx). For some reason, the date in the header shows in week range format (e.g. 3/25/2007 - 3/31/2007) and not in day format (e.g. Friday, March 30, 2007). Also, when I click on the next/previous buttons in the scheduler header, it is advanced a full week and not a day.

I've tried updating to the latest version of the "Telerik.Web.UI" assembly and still no luck.

Any clues as to what could be causing this?

BTW, you can test this by taking the sample provided in the thread above and adding a "GroupBy" for one of the available resources.
Peter
Telerik team
 answered on 05 Jul 2010
1 answer
112 views
I am trying to replace the background-image in a modal AdvancedEdit form
I have tried adjusting the following styles with no results:
..RadScheduler_Outlook .rsAdvTitle, RadScheduler_Outlook .rsAdvInnerTitle, RadScheduler_Outlook .rsAdvancedEdit, RadScheduler .rsAdvTitle, RadScheduler .rsAdvInnerTitle, RadScheduler .rsAdvancedEdit
        {
            background-image: url('gradient.png') !important;
            background-position: 0 0 important;
        }
       
Nothing seems to have any impact on that bar - I've tried it with/without skin, same results.
Kamen Bundev
Telerik team
 answered on 05 Jul 2010
1 answer
96 views
I have a problem with a RADTimePicker, when I click the icon 'open time view popup'  the popup menu has no styling, I get a list of times displayed, but the background is transparent

<telerik:RadTimePicker ID="RadTimePicker1" runat="server" Skin="Sunset" 
            Culture="English (United Kingdom)">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" runat="server"></Calendar>

<TimeView CellSpacing="-1" Culture="English (United Kingdom)" BorderStyle="Solid" runat="server"></TimeView>

<TimePopupButton CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton>

<DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton>

<DateInput Width="" LabelCssClass="" runat="server"></DateInput>
        </telerik:RadTimePicker>
Dimo
Telerik team
 answered on 05 Jul 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?