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

This week I test ASP.NET free trial Q2 2010, i used Black embedded skin who works perfectly in FireFox(last version) but not in Ie8.

First, display is not the same (color in textBox, radioButton look)between them.

Second, in Ie8 when my page is loading the textbox are first white and then goes black after a second wich is not very professionnal.

All componants are asp, excepts radEditor and radUpload.

Thanks
Bozhidar
Telerik team
 answered on 14 Oct 2010
3 answers
239 views
Hello,

I have a RadScheduler in a modal popup. On the first occasion of the popup being displayed the RadScheduler doesn't appear, but if I close (hide) the popup then bring it up again, the RadScheduler displays. It should also be noted that the width of the RadScheduler increases after each subsequent closure and re-opening of the popup that it is contained within, until it is 100% of the screen width.

I'm assuming that the RadScheduler isn't being instantiated properly, or binded to a data source properly.

Please can you offer any advice?

Regards
Peter
Telerik team
 answered on 14 Oct 2010
6 answers
354 views
I have just studied  RadControl for 1 week. So I have a lot of thing that I don't know. Sorry If my questions don't fit.

This is my problem:
How could you rebind a radgrid on a User Control from another User Control ?

I have an Content ASPX page( create from Master Page)  with two user controls pages. The first User Control Page is "Register Page", and the second UserControl Page is "Information Page". When I click Register Button on "Register Page" and Successfull , " Information Page" will rebind  RadGrid .

OK, I had Succeeded If Register and  RadGrid Information were on a ASPX page . But with this situation, I don't know how to do it . Thanks a lot !!!
Maria Ilieva
Telerik team
 answered on 14 Oct 2010
3 answers
97 views
I am attempting to create a RadGrid with a pager at the bottom. I'm having a hard time getting the pager to appear the way I want. If you look at the screen shot, you'll see the pager on the left side of the grid with 4 blank buttons, the pages 1 & 2 are right next to each other and the pager wraps onto multiple lines. I want to align the pager with the right side of the grid, get rid of the blank buttons (which I think are first page, prev page, next page and last page), separate the page numbers and display the pager on 1 line only. Please help me! Here is my aspx:

<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="WebApplication1.Default" %>
  
<%@ Register TagPrefix="rad" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>Review Consumers Registered</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
    <meta content="C#" name="CODE_LANGUAGE" />
    <meta content="JavaScript" name="vs_defaultClientScript" />
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
    <link href="Styles/RadStyles.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        div.RadGrid .rgPager .rgAdvPart
        {
            display: none;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <rad:RadScriptManager ID="RadScriptManager1" runat="server" />
    <rad:RadGrid ID="grdConsumers" runat="server" EnableEmbeddedSkins="False" AutoGenerateColumns="False"
        Width="100%" OnNeedDataSource="grdConsumers_NeedDataSource" OnItemDataBound="grdConsumers_ItemDataBound"
        CellPadding="0" GridLines="None">
        <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" Height="20px" />
        <PagerStyle CssClass="RadGridPager" Mode="NextPrevAndNumeric" NextPageText="Next >"
            PrevPageText="< Prev" PagerTextFormat="{4} | Page {0} of {1}" HorizontalAlign="Right" />
        <MasterTableView TableLayout="Fixed" AllowPaging="true" AllowCustomPaging="true"
            PageSize="10" GridLines="None" DataKeyNames="Id">
            <ItemStyle VerticalAlign="Middle" />
            <AlternatingItemStyle BackColor="#e6e6e6" VerticalAlign="Middle" />
            <Columns>
                <rad:GridBoundColumn UniqueName="Id" DataField="Id" Visible="False" />
                <rad:GridTemplateColumn HeaderStyle-Width="200" UniqueName="ConsumerName" HeaderText="Consumer Name">
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkConsumerName" runat="server" /><br />
                        <asp:Label ID="lblAddress" runat="server" /><br />
                        <asp:Label ID="lblCityStateZip" runat="server" />
                    </ItemTemplate>
                </rad:GridTemplateColumn>
                <rad:GridTemplateColumn HeaderStyle-Width="200" UniqueName="Employer" HeaderText="Employer">
                    <ItemTemplate>
                        <asp:Label ID="lblEmployer" runat="server" />
                    </ItemTemplate>
                </rad:GridTemplateColumn>
                <rad:GridBoundColumn HeaderStyle-Width="150" UniqueName="CreatedDate" DataField="CreatedDate"
                    HeaderText="Date Created" DataFormatString="{0:d} {0:t}">
                </rad:GridBoundColumn>
                <rad:GridTemplateColumn HeaderStyle-Width="250" UniqueName="Enrollment" HeaderText="Enrollment">
                    <ItemTemplate>
                        <asp:Label ID="lblEnrollment" runat="server" />
                    </ItemTemplate>
                </rad:GridTemplateColumn>
                <rad:GridTemplateColumn UniqueName="Actions" HeaderText="Actions">
                    <ItemTemplate>
                        <asp:Button ID="btnDelete" runat="server" Text="Delete" />
                    </ItemTemplate>
                </rad:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </rad:RadGrid>
    </form>
</body>
</html>
Pavlina
Telerik team
 answered on 14 Oct 2010
3 answers
143 views
In the examples, all I see are edit item templates and validation on those fields in the template.  What about if you are using the autogenerated edit form?  Any examples like that?  Thanks.
Vasil
Telerik team
 answered on 14 Oct 2010
6 answers
114 views
I have upgraded my project from 2010.1.519 to 2010.2.713.
After that I found that some strings in RadScheduler control cannot be localized.
Most of these strings relates to Recurrence part in the edit appointment form.
For example, you can try something like:

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" >
<Localization 
    AdvancedRecurrence ="Localize String 1" 
   AdvancedYearly="Localize String 2" 
/></telerik:RadScheduler>

 

 

 I tried the latest  hot- fixed release 2010.2.817, but it didn't help.
Nikolay Tsenkov
Telerik team
 answered on 14 Oct 2010
3 answers
168 views
  I have been working on creating a Data Provider by following the instructions under: Implementing a provider that supports multivalued resources. I am now ready to use it. However the only documentation that I have found is the article on Using a Data Provider which only describes how to use an XML file for a provider.  I have tried adapting it but I obviously don't know my way around the web.config enough to finesse it into working.  Are there other directions that I am missing?
 The Data Provider I created uses a SQL database and is named ACMESchedulerProvider.
 I am using RadControls for ASP.NET AJAX Q2 2010 NET35.

Thanks!

Don

Veronica
Telerik team
 answered on 14 Oct 2010
2 answers
215 views
Hi
I have a lstCentre in dropdown and txtOnDate as datepicker.
Based on these values the grid should display data.
I am using Linqdatasource with where clause
I tried all the following:
1. Where="Centre == @Centre && ExpectedDate == (DateTime.Parse(@ExpectedDate))"
2. Where="Centre == @Centre && (DateTime.Parse(ExpectedDate)) == @ExpectedDate"
3. Where="Centre == @Centre && ExpectedDate == Convert.ToDateTime(@ExpectedDate)"

None of them work and give me error as shown in screen shot attached.
Below is the code:
Visitors.aspx
******************************************************************
<li>
        <asp:Label ID="lbCentre" runat="server" Text="Centre:" AssociatedControlID="lstCentre"></asp:Label><telerik:RadComboBox ID="lstCentre" runat="server" AppendDataBoundItems="True" DataSourceID="LinqCentre"
            DataTextField="Centre" DataValueField="Centre" DataKeyField="Centre" DataSortField="Centre" ReadOnly="true"
            CausesValidation="False" onselectedindexchanged="lstCentre_SelectedIndexChanged" AutoPostBack="true"><Items><telerik:RadComboBoxItem Text="Choose One..." Value="10" /></Items></telerik:RadComboBox>
        </li><li></li>
        <li><asp:Label ID="lbOnDate" runat="server" Text="On (Date):" AssociatedControlID="txtOnDate"></asp:Label>
            <telerik:RadDatePicker ID="txtOnDate" runat="server" DateFormat="dd/MM/yyyy" 
                Enabled="true" Culture="English (United Kingdom)" AutoPostBack="true"
                onselecteddatechanged="txtOnDate_SelectedDateChanged"></telerik:RadDatePicker>
        </li>
 <asp:LinqDataSource ID="LinqVisitors" runat="server" 
            ContextTypeName="CWC.Staffnet.Forms.StaffnetDataContext" 
            TableName="tblVisitors"  
                Where="Centre == @Centre && ExpectedDate == (DateTime.Parse(@ExpectedDate))" 
                onselecting="LinqVisitors_Selecting">
            <WhereParameters>
                <asp:ControlParameter ControlID="lstCentre" Name="Centre" 
                    PropertyName="SelectedValue" Type="String" />
                <asp:ControlParameter ControlID="txtOnDate" Name="ExpectedDate" 
                    PropertyName="SelectedDate" Type="DateTime" />
            </WhereParameters>
        </asp:LinqDataSource
*****************************************************
Visitors.aspx.cs
*****************************************************
protected void LinqVisitors_Selecting(object sender, LinqDataSourceSelectEventArgs e)
       {
           foreach (KeyValuePair<string, object> kvp in e.WhereParameters) 
           
               if (kvp.Value == null) 
               { e.Cancel = true; return; } 
           }
       }

Please help me.
Thanks in advance..
S
Sucheta Patil
Top achievements
Rank 1
 answered on 14 Oct 2010
3 answers
314 views
I am trying to hide the DataPager if not results are being returned.  Here is my markup:

<telerik:RadListView ID="ProductResults" Width="100%" AllowPaging="True" runat="server" AllowSorting="true" ItemPlaceholderID="ProductsHolder" DataKeyNames="Key.Id"
            <LayoutTemplate> 
                <div class="PagingContainer" id="RadListView1"
                    <asp:Panel ID="ProductsHolder" runat="server" /> 
                    <asp:Panel ID="PagingPanel" runat="server"
                        <div id="Paging" runat="server" style="float: left; clear: both;"
                        <telerik:RadDataPager Skin="Default" AllowSEOPaging="true" SEOPagingQueryPageKey="page" 
                            Font-Bold="false" BackColor="#FFFFFF" BorderColor="#FFFFFF" ID="ProductResultsPager" 
                            runat="server" PagedControlID="ProductResults" PageSize="12"
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerTemplatePageField> 
                                    <PagerTemplate> 
                                        <div style="float: right; text-align: right; font-family: Arial;"
                                            <b>Products 
                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> 
                                                to 
                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" /> 
                                                of 
                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> 
                                                <br /> 
                                            </b> 
                                        </div> 
                                    </PagerTemplate> 
                                </telerik:RadDataPagerTemplatePageField> 
                            </Fields> 
                        </telerik:RadDataPager> 
                    </div> 
                    </asp:Panel> 
                </div> 
            </LayoutTemplate> 
            <ItemTemplate> 
                <div class="itemPicker" style="float: left; height: 75px; width: 215px; margin: 7px; padding: 10px 5px 10px 5px; border: solid 1px #ccc;"
                    <div style="width: 75px; float: left; margin: 0 0 0 5px;"
                        <id="ProductImageLink" runat="server"
                            <img border="0" src="<%# Eval("Value")%>"></a> 
                    </div> 
                    <div style="width: 120px; float: left; padding-left: 10px;"
                        <id="ProductLink" class="ProductSearchGridResultTitle" runat="server"
                            <%# Eval("Key.Title")%> 
                        </a> 
                    </div> 
                </div> 
            </ItemTemplate> 
        </telerik:RadListView> 

I am using FindControl to get access to the DataPager, and when I step through my code, and value.count  is 0, I get a null exception  on dataPager:

if (value.Count == 0) 
                { 
                    NoResults.Visible = true
                    RadDataPager dataPager = (RadDataPager)ProductResults.FindControl("ProductResultsPager"); 
                    dataPager.Visible = false
                } 

Ideas?

Thanks in advance!




Pavlina
Telerik team
 answered on 14 Oct 2010
1 answer
226 views
How to fill the color in the Pie-Chart series ...
Evgenia
Telerik team
 answered on 14 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?