Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hello, I am using the latest RADControls.  I have created a simple page as shown below with a RadScriptManager and a RadMenu.  After this page loads there are about 15 items in the menu.  When the user hovers over one of the main menu  items and the sub-menu (contining about 5 of those items) pops up the CPU jump to near 100%.  If the user then moves the mouse away and then back the CPU consistently remains extremely high.  The application is running in debug=false mode and the ViewState for the menu is disabled.  Those were the only two perfomrance tips that I have been able to find.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
 
        <asp:ObjectDataSource ID="dsNavMenu" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="Get" TypeName="NavMenu_BLL">
            <SelectParameters>
                <MyUser:CurrentUserParameter Name="UserName" />
            </SelectParameters>
        </asp:ObjectDataSource>
            <telerik:RadMenu runat="server" ID="mNav" DataFieldParentID="ParentId" DataSourceID="dsNavMenu"
                DataTextField="Link" DataFieldID="Id" DataNavigateUrlField="NavigateUrl" Skin="Default"
                CssClass="Menu" EnableViewState="false">
            </telerik:RadMenu>

Kate
Telerik team
 answered on 03 Oct 2011
3 answers
145 views
Dear All,
I have a grid on my website, This grid uses paging, When I'm on page three and then try to press enter on a text box in a row in the grid,
it moves to page 1 because the default button in grid paging panel is go to first page, I need to disable this button while pressing enter
Thanks
Vasil
Telerik team
 answered on 03 Oct 2011
2 answers
263 views
Hi Team,

Please find the attached image below.
I am using radgrid to show data from database.I only need show scrolling when the height exceeds 300px when data available.
But the grid maintains the same height 300px even when no data available or with empty space when less data available.
(I dont want to show empty space when no enough data available for Grid)

I used the below code in HTML.
<telerik:RadGrid ID="RadGridWebsiteVisit" runat="server" GridLines="None" AutoGenerateColumns="False"
                            Width="450px" Skin="Black" OnNeedDataSource="RadGridWebsiteVisit_NeedDataSource"
                            AllowSorting="True">
                            <%--<PagerStyle Mode="NumericPages"></PagerStyle>--%>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" />
                            </ClientSettings>
                            <MasterTableView DataKeyNames="Rank">
                                <RowIndicatorColumn Visible="false">
                                </RowIndicatorColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Rank" UniqueName="Rank" HeaderText="Rank" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="80px" ItemStyle-Width="80px">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="BaseURL" HeaderText="Website" ReadOnly="True" ItemStyle-Wrap="true"
                                        UniqueName="BaseURL" HeaderStyle-Width="250px" ItemStyle-Width="300px" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="UrlCount" HeaderText="Visits" ReadOnly="True"
                                        UniqueName="UrlCount" HeaderStyle-Width="50px" ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

Please help to solve this urgently.

Thanks,
Dhamodharan.
dhamo
Top achievements
Rank 1
 answered on 03 Oct 2011
3 answers
349 views
I'm needing a Separator to show up on a verticle menu, but I'm struggling to figure out how to do it when the menu's source is a standard SiteMap file at the root of the web application.

What I want is something like:

First
Second
__________
Third
Fourth
Fifth
__________
Sixth


What do I need to put in the siteMapNode element to make this work?  I've tried using attribute IsSeparator="true", but that did not seem to help.  I have also tried a series of values for the attribute "title".

Best Wishes,
Keith
Kate
Telerik team
 answered on 03 Oct 2011
3 answers
213 views
i want to generate series [Xaxis and YAxis] at runtime.
want to replace default XAxis label with date string.

and want to change the line color
Tsvetie
Telerik team
 answered on 03 Oct 2011
3 answers
149 views
i have a usercontrol placed in a pageview and this pageview is contained by an aspx page
Page ->PageView ->Usercontrol

i want to access "Page" textbox value from "Usercontrol" in Javascript function

Please guide me how can i access this

Thanks & Regards
Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
1 answer
92 views
Hello,

Could we please have another demo added to this page: http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx that shows how a RadGrid can be bound to an OData service containing links? That is, a master/detail (parent/child) relationship between two feeds?

Background: I have created an OData feed with WCF Data Services and Entity Framework. It contains a relationship (e.g. Product Categories, each containing multiple Products). I can't see how to configure the RadGrid to display this.

Thank you for any help!

Alex Angas.
Veli
Telerik team
 answered on 03 Oct 2011
1 answer
124 views
Dear Telerik,

The chart has been configured EmptyValue = true, ChartSeriesOrientation = Horizontal and Skin = Default.

Item label of series shows incorrectly when its value is empty. 

Can you check what issue with the chart?

Please refer my attached file for information.

Thanks / Phong Dang.
Peshito
Telerik team
 answered on 03 Oct 2011
2 answers
88 views
Hi Guys,

While uploading files with the Media Manager, I'm trying to upload a 4mb file and it constantly looses the connection and the upload fails. Is there something that I'm doing wrong with how I set this up?

Thanks for your time,
William
William
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
223 views
Hi Telerik,

I am confused. I was under the impression that if I had the following page declaration:

<%@ Page Title="Home Page" MasterPageFile="~/Views/Shared/WebForm.master" EnableViewState="False" Language="C#" AutoEventWireup="True" CodeBehind="Dashboard.aspx.cs" Inherits="CableSolve.Web.Dashboard.Dashboard"%>

that ViewState for controls on the page, at least when not explicitly stated, would be disabled. Is this an erroneous assumption? If so, what does setting ViewState at the Page level do?

If my assumption is not erroneous -- I am seeing the following behavior:

  • Inside of an event for RadTabStrip I set my RadTabStrip's selected index to 1 and my MultiPage.PageViews[1].Selected = true.
  • Instead of calling Update on an UpdatePanel to visually show the changes to the MultiPage, I register a StartupScript.
  • Now, client-side, I set the MultiPage's PageView. This now causes the PageView to visually change for the user.
  • I then refresh the page. In my control regeneration code I see that my TabStrip and MultiPage are both set with indices of 1.
  • The RadTabStrip shows the tab at index 1 selected, but the MultiPage shows the PageView at index 0.

If I call Update on an UpdatePanel, instead of doing the changes client-side, everything works great.
If I disable ViewState on the MultiPage, everything works great.

This was just a surprise to me because I thought that the ViewState was implicitly disabled for the control. I hadn't set the ViewState one way or the other, and I know it defaults to true, but I thought the Page would override this value.

/// <summary>
/// Performs one tick of a timer on the chart.
/// Ticks based on time for testability and to prevent
/// weird cases when skipping the clock time forward.
/// </summary>
public void DoTimerCycleTick(object sender, TimerEventArgs eventArgs)
{
    GlobalSettings globalSettings = StateManager.GetStates<GlobalSettings>();
 
    if( globalSettings.CycleEnabled )
    {
        if (!Equals(DateTime.Now.CompareTo(globalSettings.TimeLastCycled.AddMinutes(globalSettings.CycleInterval)), -1)) //CompareTo returns -1 when time is earlier than.
        {
            int oldIndex = SelectedIndex;
            int newIndex = (oldIndex + 1) != Tabs.Count ? (oldIndex + 1) : 0;
 
            SelectedIndex = newIndex;
            LayoutManager.Instance.MultiPage.PageViews[newIndex].Selected = true;
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "KEY", string.Format("OnServerTabSelected({0});", newIndex), true);
            globalSettings.TimeLastCycled = DateTime.Now;
        }
    }
 
    StateManager.SaveGlobalSettings(globalSettings);
}

var showLoadingPanel = true;
function OnServerTabSelected(newIndex) {
    var oldID = $find(multiPageID).get_selectedPageView().get_id();
    var newID = $find(multiPageID).get_pageViews().getPageView(newIndex).get_id();
 
    if ($telerik.$("#" + oldID).is(":visible")) {
        $telerik.$("#" + oldID).fadeOut(1000, function () {
            $telerik.$("#" + newID).fadeIn(1000, function () {
                showLoadingPanel = true;
                $find(multiPageID).set_selectedIndex(newIndex);
            });
        });
 
        showLoadingPanel = false;
        FixSplitter($find(rightPaneID));
        return;
    }
}

Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?