Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
167 views
When clicking on a link in my RadGrid I am getting very slow performance.  I've done some performance profiling in VS 2010 and with Fiddler and I've found the following. 

First, there is a large amount of data being sent to the client (about 250kb) for an AJAX enable grid that can be paged, filtered and sorted.  Bandwidth however isn't the problem because this is all running locally in my debug environment. 

Since bandwidth wasn't the issue I decided to profile the code.  When running VS Profiler and looking at the slow operations it tells me that the following functions are mostly responsible for the slow results:

gridItem.onBubbleEvent
system.text.regularexpressions.matchenumerator.movenext
system.text.regularexpressions.regex.match

Where onBubbleEvent is calling the functions beneath it and those function are responsible for 70% of the time it takes to render the page.  Can anybody suggest ideas for improving the performance?  If I had to guess I'd say that given the large amount of data that RadGrid is just having a tough time slogging through it all and rendering html.
Pavlina
Telerik team
 answered on 26 Jan 2011
1 answer
55 views
Hello,

When Grid Export to Excel a Message Box Will apper

Pls Sent a Solution

**File Attached
Daniel
Telerik team
 answered on 26 Jan 2011
4 answers
264 views
Greetings,

I created a custom filter menu that I want to use for one of my radgrid columns. It works fine, but the problem is the menu appears for all columns. I only want this menu to appear for the column "Constituents." Note that I can't use "VaryByDataType" because my columns are all strings. Is it possible to create a custom filter menu for just one column?

ASPX:
<telerik:RadGrid ID="radGridForms" runat="server" AutoGenerateColumns="false"
                GridLines="None" Skin="Windows7" AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True" EnableLinqExpressions="False" Font-Bold="False" Font-Italic="False"
                 Font-Overline="False" Font-Size="Small" Font-Strikeout="False" Font-Underline="False" 
                 OnItemDataBound="radGridForms_ItemDataBound" OnNeedDataSource="radGridForms_NeedDataSource">
                <ClientSettings Selecting-AllowRowSelect="false" EnableRowHoverStyle="true">
                    <ClientEvents />
                </ClientSettings>
                <PagerStyle Position="Top" />
                <MasterTableView PageSize="10" AllowSorting="true" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"
                    Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Size="Small"
                    Font-Strikeout="False" Font-Underline="False" DataKeyNames="FormID" >
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="FormID" UniqueName="FormID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridHyperLinkColumn DataNavigateUrlFields="PDFLink"
                            DataNavigateUrlFormatString="http://webcms/{0}" UniqueName="PDFLink"
                            AllowFiltering="false" HeaderText="Download" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description"
                            CurrentFilterFunction="Contains" AutoPostBackOnFilter="True" ItemStyle-Font-Size="XX-Small" 
                            AllowSorting="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="State" HeaderText="State" UniqueName="State"
                            CurrentFilterFunction="Contains" AutoPostBackOnFilter="True" ItemStyle-Font-Size="XX-Small" 
                            AllowSorting="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Constituents" HeaderText="Constituents" UniqueName="Constituents"
                            CurrentFilterFunction="Contains" AutoPostBackOnFilter="True" ItemStyle-Font-Size="XX-Small" 
                            AllowSorting="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Keywords" HeaderText="Keywords" UniqueName="Keywords"
                            CurrentFilterFunction="Contains" AutoPostBackOnFilter="True" ItemStyle-Font-Size="XX-Small" 
                            AllowSorting="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Version" AllowFiltering="false" ItemStyle-Font-Size="XX-Small" 
                            HeaderText="Ver" UniqueName="Version" >
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Type" AllowFiltering="false" ItemStyle-Font-Size="XX-Small" 
                            HeaderText="Type" UniqueName="Type" AllowSorting="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Secure" UniqueName="Secure" Visible="false">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>


C# CodeBehind:
protected void Page_Init(object senderEventArgs e)
        {
            radGridForms.FilterMenu.Items.Clear();
            GridFilterMenu filterMenu = radGridForms.FilterMenu;
            RadMenuItem onlyEmployerMenuItem = new RadMenuItem();
            RadMenuItem onlyProducerMenuItem = new RadMenuItem();
            RadMenuItem onlyIndividualsMenuItem = new RadMenuItem();
            
            radGridForms.FilterMenu.Items.Add(onlyEmployerMenuItem);
            radGridForms.FilterMenu.Items.Add(onlyProducerMenuItem);
            radGridForms.FilterMenu.Items.Add(onlyIndividualsMenuItem);
            
            onlyEmployerMenuItem.Text = "Show Only Employers";
            onlyEmployerMenuItem.Value = "Employers";
            onlyProducerMenuItem.Text = "Show Only Producers";
            onlyProducerMenuItem.Value = "Producers";
            onlyIndividualsMenuItem.Text = "Show Only Individuals";
            onlyIndividualsMenuItem.Value = "Individuals";
            filterMenu.ItemClick += new RadMenuEventHandler(filterMenu_ItemClick);

        }

        protected void filterMenu_ItemClick(object senderRadMenuEventArgs e)
        {
            if (e.Item.Value.ToString() == "Employers")
            {
                radGridForms.MasterTableView.FilterExpression = "([Constituents] = 'Employers') ";
                GridColumn column = radGridForms.MasterTableView.GetColumnSafe("Constituents");
                column.CurrentFilterFunction = GridKnownFunction.Contains;
                radGridForms.DataSource = null;
                radGridForms.Rebind();
            }
            else if(e.Item.Value.ToString() == "Producers")
            {
                radGridForms.MasterTableView.FilterExpression = "([Constituents] = 'Producers') ";
                GridColumn column = radGridForms.MasterTableView.GetColumnSafe("Constituents");
                column.CurrentFilterFunction = GridKnownFunction.Contains;
                radGridForms.DataSource = null;
                radGridForms.Rebind();
            }
            else if (e.Item.Value.ToString() == "Individuals")
            {
                radGridForms.MasterTableView.FilterExpression = "([Constituents] = 'Individuals') ";
                GridColumn column = radGridForms.MasterTableView.GetColumnSafe("Constituents");
                column.CurrentFilterFunction = GridKnownFunction.Contains;
                radGridForms.DataSource = null;
                radGridForms.Rebind();
            }
        }

Jon
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
115 views
I stumbled upon a previous question that dealt with forcing spellcheck in a RadEditor here: http://www.telerik.com/community/forums/aspnet/editor/force-spell-check.aspx, however the link provided by the Telerik team (http://www.telerik.com/Default.aspx?PageId=2202&b311D=FJIfc) has since expired.

Is there an updated solution (preferrably for ASP.NET AJAX controls) that will allow me to force a RadEditor to be spellchecked prior to allowing a web form submit?

Rumen
Telerik team
 answered on 26 Jan 2011
3 answers
92 views

 

protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                taskGrid.DataSource = myDAL.GetTask(0);
                taskGrid.Rebind();
  
                           }
 This is how I am  populating my grid. When I use paging, it disappears.

Please help,
 
     
Smiely
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
58 views
Hi,
I am using the rad numeric textboxes and i want it to to be able to add ',000' when numbers are added into the box. So i entered 34, it would then automatically format it to 34,000 and i can't work out what would be the best way to do this. Either by having a event handler after the focus has been lost or by some javascript or if there is already a telerik method for doing this.

Any help would be great.

Thanks

Simon
Daniel
Telerik team
 answered on 26 Jan 2011
2 answers
109 views
Hello Guys,
Ich read several articles and coded a lot but there is one question which nobody wants to answer i believe!
I hope someone can help me!

I have a sharepoint webpart like the one in the Telerik tutorial. When i click a button, the page do not postback completely BUT, every time when i click into any webpart of the page, all webparts will start a new lifecycle. That means every webpart calls its OnInit - CreateChildControl - OnLoad .... method. And AFTER that  the event-handler of the control is called which were clicked. Is there a way that ONLY the handler of the control is called and ONLY the control is updated instead of calling every time all webparts OnInit ..... .?

Please help me and hopefully answer with NO it is not possible to update only one control IN a webpart or YES it is possible and then please show me how!

Thank you guys!

Jan
Top achievements
Rank 1
 answered on 26 Jan 2011
3 answers
103 views
I am currently using the RadAjaxLoadingPanel as a busy indicator.  This is all working great. 

However, I was asked to display status messages telling the user what is happening (as the busy indicator is displaying).

I added a Label in the RadAjaxLoadingPanel, like so:

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
  <asp:Label ID="progressLabel" runat="server" Text="Doing something...." />
</telerik:RadAjaxLoadingPanel>


My question: is there any way to update the progressLabel text while I am carrying out the various steps in my code-behind file?  I carry out about 5 specific steps and would like to inform the user what step the process it on.
Maria Ilieva
Telerik team
 answered on 26 Jan 2011
5 answers
145 views

Hi

I have a RadGrid, I have now been tasked with putting a Right Click Context menu in place. What I need to figure out is:


1)     How can I get a value from the either the DataItem or the DataKeyValues from client side for the row that has fired off the
        context menu?   

    
Any thoughts / pointers most appreciated

Tsvetina
Telerik team
 answered on 26 Jan 2011
1 answer
75 views
Hi,
    I am using this rad grid for display things which uses linq to sql. 
http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx


But in this source code count (total no of rows is hardcoded) and it is not changing when we are applying filtering. How do we correct it?
Vasil
Telerik team
 answered on 26 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?