Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
322 views
I have a grid setup for managing users of a website. If you come to the page as an admin, the grid loads a couple thousand records and because of this, takes a couple minutes for the grid to load and is even slower when you try to filter on one of the columns. How can I prevent this? I need to do something like load only the current page of users being shown while still maintaining paging and filtering abilities. Is this something that can be done easily? If not, any suggestions on how to code this? 
Pavlina
Telerik team
 answered on 05 Jun 2012
6 answers
152 views
Hi Telerik,

I am using a license Telerik RadControls for SharePoint Q1 2012, v. 12.1.216.0.
My questions are below.

1. How do I apply a default styling for table? What I expect is to add a table, and it will be populated with the default class. Is this achiavable?

2. I have the below control and styling, and I want the user experience that we can just click, then the <a class=".."><span class="button-inner"> will be populated for me. Can you advice a better way to achieve this?

<a class="button"><span class="button-inner">Button</span></a>

3. I have a duplicated entry in "Apply CSS Style", and the "Dropdown List" is not listed. Please advice.
    Here is my classes in ToolsFile.xml. And please look at the attached screenshot ApplyCSSStyle.jpg.
    

<classes>

   <class name="Clear Class" value="" />

   <class name="Dropdown List" value="dl.list" />

   <class name="Ordered List" value="ol.list" />

   <class name="Ordered List (Steps)" value="ol.steps" />

   <class name="Unordered List" value="ul.list" />

</classes>


This is the CSS

ul.list,
ol.list { margin-left: 1.5em; }
ul.list li,
ol.list li { margin-bottom: 0.5em; }
ul.list { list-style-type: disc; }
ol.list { list-style-type: decimal; }
ol.list ol.list { list-style-type: lower-alpha; }
dl.list dt { background: url(images/bullet.png) 0 7px no-repeat; padding-left: 10px; font-weight: bold; }
dl.list dd { padding-left: 10px; margin-bottom: 1em; }

ol.steps {
    list-style-type: none;
    }
ol.steps li { padding-left: 55px; margin-bottom: 0.5em; }
ol.steps li:nth-child(1) { background: url(images/olsteps-1.gif) 0 0 no-repeat; }
ol.steps li:nth-child(2) { background: url(images/olsteps-2.gif) 0 0 no-repeat; }
ol.steps li:nth-child(3) { background: url(images/olsteps-3.gif) 0 0 no-repeat; }
ol.steps li:nth-child(4) { background: url(images/olsteps-4.gif) 0 0 no-repeat; }
ol.steps li:nth-child(5) { background: url(images/olsteps-5.gif) 0 0 no-repeat; }
ol.steps li:nth-child(6) { background: url(images/olsteps-6.gif) 0 0 no-repeat; }
ol.steps li:nth-child(7) { background: url(images/olsteps-7.gif) 0 0 no-repeat; }
ol.steps li:nth-child(8) { background: url(images/olsteps-8.gif) 0 0 no-repeat; }
ol.steps li:nth-child(9) { background: url(images/olsteps-9.gif) 0 0 no-repeat; }
ol.steps li:nth-child(10) { background: url(images/olsteps-10.gif) 0 0 no-repeat; }
ol.steps li:nth-child(11) { background: url(images/olsteps-11.gif) 0 0 no-repeat; }
ol.steps li:nth-child(12) { background: url(images/olsteps-12.gif) 0 0 no-repeat; }

#navbar ul.list,
#content-list ul.list { margin: 0; list-style-type: none; }
#navbar ul.list li,
#content-list ul.list li { background: url(images/bullet.png) 0 7px no-repeat; margin: 0; padding-left: 10px; } 

Andy
Top achievements
Rank 1
 answered on 05 Jun 2012
1 answer
95 views

Yesterday, I upgraded our C# ASP.NET solution from .NET 2.0 to .NET 4.0. Other things work fine. But all auto postbacks are suppressed after that.

Our telerik controls are kind of out dated. But because of project timeline, we don’t have time to upgrade our telerik controls for now. I just checked, our RadAjax.Net2 runtime version is v2.0.50727. Out Telerik.Web.UI runtime version is also v2.0.50727.

The following is the code. As you can see with my comments, the drop down list inside the RadAjaxPanel does Not do postback after I select a different value in the list. But the drop down list outside of the RadAjaxPanel works fine.
And this problem is not just for drop down list. It’s for other controls such as radio button DateTimePicker etc. But our buttons are working fine. So it looks like it's the autoposts are suppressed.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Position.ascx.cs" Inherits="Oaccac.WebPmi.Controls.Position" %>
<%@ Register TagPrefix="rad" Namespace="Telerik.WebControls" Assembly="RadAjax.Net2" %>
<%@ Register Src="~/Controls/TelerikAjax/LoadingPanelContent.ascx" TagPrefix="uc" TagName="LoadingPanelContent" %>

<rad:RadAjaxPanel ID="ajaxServiceOfferPanel" LoadingPanelID="ajaxServiceOfferLoadingPanel" runat="server" UseEmbeddedScripts="true" EnableOutsideScripts="true">
<!--This DropDownList does Not do post back.-->
<asp:DropDownList ID="ddlTest" runat="server" AutoPostBack="true">
    <asp:ListItem>One</asp:ListItem>
    <asp:ListItem>Two</asp:ListItem>
</asp:DropDownList>
</rad:RadAjaxPanel>

<!--This DropDownList does post back.-->
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
    <asp:ListItem>Three</asp:ListItem>
    <asp:ListItem>Four</asp:ListItem>
</asp:DropDownList>

<rad:AjaxLoadingPanel ID="ajaxServiceOfferLoadingPanel" runat="server" InitialDelayTime="0">
 <uc:LoadingPanelContent ID="loadingServiceOfferPanelContent" runat="server" />
</rad:AjaxLoadingPanel>

Maria Ilieva
Telerik team
 answered on 05 Jun 2012
2 answers
64 views
I am getting more time to close the add/edit popup, while cancel the popup in radgrid.For all grids getting same problem and getting timeout while binding more than 5000 records in radgrid from the database.Please some one give me the solution.I am using Telerik 2011.3 version.
Guru
Top achievements
Rank 1
 answered on 05 Jun 2012
1 answer
243 views
Hi,

I have a gridview with image button to edit.My source code for the grid is

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="False"

 

 

 

CellSpacing="0" GridLines="None" Height="520px" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

OnUpdateCommand="RadGrid1_UpdateCommand" PageSize="20" Skin="WebBlue" Visible="False"

 

 

 

OnPreRender="RadGrid1_PreRender">

 

 

 

<ClientSettings>

 

 

 

<Selecting CellSelectionMode="None" />

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

</ClientSettings>

 

 

 

<MasterTableView Width="100%">

 

 

 

<CommandItemSettings ExportToPdfText="Export to PDF" />

 

 

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit" HeaderStyle-Width="4%"

 

 

 

HeaderText="Edit" Text="Edit" UniqueName="EditButton" Visible="true">

 

 

 

<HeaderStyle Width="4%" />

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridBoundColumn DataField="Total Items" FilterControlAltText="Filter Total_Items column"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Mapped Items"

 

 

 

ReadOnly="true" SortExpression="Total_Items" UniqueName="Total_Items">

 

 

 

<HeaderStyle Font-Bold="True" Width="6%" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat1" UniqueName="Ariba_Cat1">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catone" runat="server" Text='<%#Eval("Ariba_Cat1") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatone" runat="server" DataSourceID="Ariba_Cat1"

 

 

 

DataTextField="ariba_cat1" DataValueField="ariba_cat1" SelectedValue='<%# Bind("Ariba_Cat1") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat2" UniqueName="Ariba_Cat2">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_cattwo" runat="server" Text='<%#Eval("ariba_Cat2") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacattwo" runat="server" DataSourceID="aribacat2"

 

 

 

DataTextField="ariba_cat2" DataValueField="ariba_cat2" SelectedValue='<%# Bind("ariba_Cat2") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat3" UniqueName="Ariba_Cat3">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catthree" runat="server" Text='<%#Eval("Ariba_Cat3") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatthree" runat="server" DataSourceID="SubCategory"

 

 

 

DataTextField="ariba_cat3" DataValueField="ariba_cat3" SelectedValue='<%# Bind("Ariba_Cat3") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat4" UniqueName="Ariba_Cat4">

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatfour" runat="server" DataSourceID="ds_aribafour"

 

 

 

DataTextField="ariba_cat4" DataValueField="ariba_cat4" SelectedValue='<%# Bind("Ariba_Cat4") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catfour" runat="server" Text='<%#Eval("Ariba_Cat4") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat5" UniqueName="Ariba_Cat5">

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatfive" runat="server" DataSourceID="ds_catfive"

 

 

 

DataTextField="ariba_cat5" DataValueField="ariba_cat5" SelectedValue='<%# Bind("Ariba_Cat5") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catfive" runat="server" Text='<%#Eval("Ariba_Cat5") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

<FilterMenu EnableImageSprites="False">

 

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid><%--</asp:Panel>--%>

 


My problem is the edit button working fine in my local mechine but after deploying the application I was trying to edit data.But getting error while clicking on edit button.Error message is

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.3)

Timestamp: Fri, 1 Jun 2012 16:01:18 UTC

 

 

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Line: 6

Char: 84093

Code: 0

URI: http://10.9.16.61:8082/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2



Please anybody give me the solution.

Thanks.
Marin
Telerik team
 answered on 05 Jun 2012
3 answers
187 views
Hi everyone, im new to telerik, was just building a web application, i want to include the top bar in the picture in my web form..
which control is used to do so can anyone please tell me??
I am using VB dot net.
Please help...
rdmptn
Top achievements
Rank 1
 answered on 05 Jun 2012
1 answer
90 views
Hello,

I'm using a RagGrid on a dynamically loaded UserControl. To keep row selected after postback I followed this: 
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-on-sorting.html

The selected state on the server-side is succesfully set only client-side the record is not selected. When I check the select-item on the OnGridCreated event the count of selected-items is zero.

Can someone help me with this.

Regards,
  Jos Meerkerk
Maria Ilieva
Telerik team
 answered on 05 Jun 2012
1 answer
138 views
Hello,

I am having tooltips in my page. I have rad ajax panel with textboxes, labels and radio buttons.

If I click on button and radajaxpanel showsup. After that tooltips are not working.

TIA
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2012
1 answer
83 views
Hello,
I have a textbox which is in invisible mode. I am making it visible on code behind.

RadTooltip is not working for that textbox. Is it because of the textbox is invisible initially ?

If so, how can I solve this ?
Princy
Top achievements
Rank 2
 answered on 05 Jun 2012
2 answers
63 views
I am using RadScheduler to bind to Exchange server via Exchange Web Services. The idea is to pull out appointments from different mailboxes on Exchange and display them in the scheduler. I've managed to accomplish this by putting all appointments into a generic list and use that list as a DataSource for RadScheduler. This works like a charm. I need to be able to group these appointments by mailbox (e-mail address of the owner of that appointment). First, I tried to display appointment owner as a resource. There were no way I could accomplish this. Then, it came to my mind that I could display appointment owner as a Custom Attribute.
My question is, how can I programmatically insert Custom Attribute value while appointments are binding?
asimptota
Top achievements
Rank 1
 answered on 05 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?