Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
211 views
Hello. I'm using RadGrid with detail table and paging. The problem: all detail tables have the same number of pages and items in pager:
<telerik:RadGrid ID="radGridFolders" runat="server" AutoGenerateColumns="False" AllowSorting="True"
    GridLines="None" ShowGroupPanel="False" OnDetailTableDataBind="RadGridFoldersDetailTableDataBind"
    OnNeedDataSource="RadGridFoldersNeedDataSource" OnItemCreated="RadGridFoldersItemCreated"
    AllowPaging="True" PageSize="5">
    <MasterTableView DataKeyNames="EventFolderId">
        <DetailTables>
            <telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="EventId" Width="100%">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="EventFolderId" MasterKeyField="EventFolderId" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="EventName" HeaderText="Event Name" DataField="EventName"
                        UniqueName="EventName">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="Action" HeaderText="Action" HeaderStyle-HorizontalAlign="Right">
                        <ItemTemplate>
                            <ul class="actions">
                                <li>
                                    <telerik:RadButton ID="radBtnEventEdit" runat="server" Text="Edit" ButtonType="LinkButton"
                                        ForeColor="#0067be" CausesValidation="False" BorderStyle="None">
                                        <Icon PrimaryIconUrl="../images/img_rename.gif" />
                                    </telerik:RadButton>
                                </li>
                                <li>
                                    <telerik:RadButton ID="radBtnEventDuplicate" runat="server" Text="Duplicate" ButtonType="LinkButton"
                                        ForeColor="#0067be" CausesValidation="False" BorderStyle="None">
                                        <Icon PrimaryIconUrl="../images/img_duplicate.gif" />
                                    </telerik:RadButton>
                                </li>
                                <li>
                                    <telerik:RadButton ID="radBtnEventRemove" runat="server" Text="Remove" ButtonType="LinkButton"
                                        ForeColor="#0067be" CausesValidation="False" BorderStyle="None">
                                        <Icon PrimaryIconUrl="../images/img_remove.gif" />
                                    </telerik:RadButton>
                                </li>
                                <li>
                                    <telerik:RadButton ID="radBtnEventRegional" runat="server" Text="Regional" ButtonType="LinkButton"
                                        ForeColor="#0067be" CausesValidation="False" BorderStyle="None">
                                        <Icon PrimaryIconUrl="../images/img_regional.gif" />
                                    </telerik:RadButton>
                                </li>
                                <li>
                                    <telerik:RadButton ID="radBtnEventView" runat="server" Text="View" ButtonType="LinkButton"
                                        ForeColor="#0067be" CausesValidation="False" BorderStyle="None">
                                        <Icon PrimaryIconUrl="../images/img_view.gif" />
                                    </telerik:RadButton>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridTemplateColumn HeaderText="Event Folder" DataField="EventFolder" UniqueName="EventFolder">
                <ItemTemplate>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td style="width: 25%">
                                <img src="../images/img_folder_closed.gif" border="0" alt="<%# Eval("EventFolder") %>" />
                            </td>
                            <td style="width: 75%">
                                <%# Eval("EventFolder")%>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
As you can see on screenshot: first detaible is correct: there are 8 records in it, 2 pages. but next table contains only one record, and next is empty. And pagers for both of them show 8 records in 2 pages.
And one more question: is it possible to collapse one row when another is expanding?
Yaroslav
Top achievements
Rank 1
 answered on 11 Oct 2011
4 answers
652 views
I can't seem to add Telerik.Web.UI to a .Net Framework 4 class library. Doesn't appear in the list. It does appear in Recent, in the Add Reference dialog, but when I double click, it says it's not compatible with .Net Framework 4.

I've installed the only .msi I seem to be able to find on my Products page: Telerik.Web.UI_2011_2_915_Dev

What am I missing?
Jerome
Top achievements
Rank 1
 answered on 11 Oct 2011
14 answers
157 views
I am having an issue when trying to edit recurring appointments. Well actually only when selecting "Edit only this occurrence" option. The issue is that the AdvancedEdit form does not show up when I select this option. It does show up fine if I chose "Edit the series" option. Am I supposed to create a brand new form for that purpose? If yes, what Container.Mode should be used in this case? Also, after I am done editing the occurrence, what data should be saved to the database? Will that be considered an exception? Thanks
Ilya
Top achievements
Rank 1
 answered on 11 Oct 2011
8 answers
152 views
Dear Telerik Team,

we have unresolved problem by single value show in the RadChart in according to the next code snippet:

            radChart.ClearSkin();

            radChart.Skin = Skin;

            radChart.SeriesOrientation = ((RadChartEntity)Session[radChart.ID]).Orientation;

            radChart.AutoLayout = true;

           

            radChart.PlotArea.Appearance.Dimensions.Width = 500;

            radChart.ChartTitle.Appearance.Position.AlignedPosition = AlignedPositions.TopLeft;

            radChart.ChartTitle.Appearance.Position.Auto = false;

            radChart.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;

            radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;

            radChart.PlotArea.XAxis.Appearance.LabelAppearance.CompositionType = LabelItemsCompositionTypes.RowImageText;

            radChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;

            radChart.Appearance.FillStyle.FillType = FillType.Solid;

            radChart.Appearance.TextQuality = TextQuality.ClearTypeGridFit;

            radChart.Appearance.Border.Visible = false;

            radChart.Legend.Appearance.ItemTextAppearance.MaxLength = 20;

            radChart.Legend.Appearance.Position.AlignedPosition = AlignedPositions.TopRight;

            radChart.ChartTitle.TextBlock.Text = "";

            RadChart2.PlotArea.XAxis.IsZeroBased = false;

            RadChart2.PlotArea.XAxis.AutoScale = true;

We need the AutoScale property turn on, because of very large acceptable values scope on the X-Axis. Can you advice us what is required to do in order to show the values correctly (in case of single value), please?
Let us remark that optimal solution for us appears as centered value which is enclosed by two same time intervals (e.g. one year) , in case of single value.
In all the other cases, the AutoScale property initialized to true works fine.

Thank you in advance.

Kind regards,
SCT
Evgenia
Telerik team
 answered on 11 Oct 2011
1 answer
119 views
hi,

how do i get a element with javascript in radscheduler advanced form (in <div class="rsAdvancedEdit" ...  in ascx) from pagent aspx page... 
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
95 views
Hi,
On RadScheduler1_DataBound Even i set GroupBy Property like
If(Session["Provider"] != null)
{
If( RadScheduler1.Resources.Count>0)
RadScheduler1.GroupBy="provider";
else
RadScheduler1.GroupBy="";
}
else
{
RadScheduler1.GroupBy="";
}

Now when i mouse over on Appointments this gives me error
n=this.getAppointmentFromDomElement(k); 

n is null.

Can you please tell me the reason and fix of this.

Thanks
Dheeraj
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
80 views
Hi,

When I use 2 radcomboboxes on the same pages with the same skin; 1 with LoadOnDemand and 1 with static content, they look different. Please see the screenshot below. How can I make them look exactly the same?

<telerik:RadComboBox ID="ddAVPFilter" runat="server" EmptyMessage="Choose AVP Area" 
            AutoPostBack="true" Skin="Sunset">
        <Items>
            <telerik:RadComboBoxItem Text="WNEN" Value="WNEN" ></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="WNES" Value="WNES"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="GBRN" Value="GBRN"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="GBRS" Value="GBRS"></telerik:RadComboBoxItem>
        </Items>       
    </telerik:RadComboBox>
  
  
  
    <telerik:RadComboBox ID="ddMgrFilter" runat="server" EmptyMessage="Choose the Manager" 
    AutoPostBack="true" ShowMoreResultsBox="True" ItemRequestTimeout="500"
    EnableVirtualScrolling="true" MarkFirstMatch="False" EnableLoadOnDemand="True"
    AllowCustomText="False" IsCaseSensitive="False" Skin="Sunset" />


Thanks,
Paul
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
246 views
Hi,
I have a page, that has 2 update panels, first with toolbar and second with tabstrip and multipage, from 1 item of my toolbar a usercontrol is loaded in a dinamically created pageview, this usercontrol has a telerik:combobox and a button. When I click the combobox nothing happens, the combobox don't displays items. The items are static, defined in the sme control.

I paste part of the codes.

Default.aspx (parent page)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <telerik:RadAjaxPanel ID="ContentPanel" runat="server" Height="100%" Width="100%" EnableAJAX="true" LoadingPanelID="ContentLoading">
                        <telerik:RadTabStrip ID="ContentTabStrip" runat="server" 
                            CausesValidation="False" MultiPageID="ContentMultiPage" SelectedIndex="0" 
                             Width="100%" ShowBaseLine="True">
                            <Tabs>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage ID="ContentMultiPage" runat="server" SelectedIndex="0" Height="100%" Width="100%" ScrollBars="Hidden">
                        </telerik:RadMultiPage>
                        </telerik:RadAjaxPanel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="MenuBar" />
                    </Triggers>
                </asp:UpdatePanel>

ConfigTemplate.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ConfigTemplate.ascx.vb" Inherits="ConfigTemplate" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div style="padding: 5px; font-family: Caibri, Arial; font-size: 9pt; border: 1px solid gray; border-top-width: 0px;">
    Plantillas:
    <telerik:RadComboBox ID="RadComboBox1" runat="server" 
        LoadingMessage="Cargando..." Sort="Ascending">
   <Items>
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  />
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" />
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" />
   </Items>
</telerik:RadComboBox>
    <br /><br />

    <div id="Resultado" runat="server"></div>
    <telerik:RadButton ID="TemplatesCerrar" EnableAjaxSkinRendering="true" runat="server" Text="Cerrar"></telerik:RadButton>
    Se aplicara instantaneamente.
</div>

Is some way to make it work? I'm using 2011 Q2 version of AJAX RadControls
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
87 views
Hello Every One ,

RadAjaxManager1.Alert how to give two line

RadAjaxManager1.Alert("Data Successfully Saved " +
                                                      "Client : " + odsdatamaster.clientname);

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 11 Oct 2011
1 answer
209 views
When I press the spell check button in the rad editor I get the following JS error...

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
            <h2> <i>No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/</i> </h2></span>
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
   <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
<b> Exception Details: </b>System.ArgumentException: No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/<br><br>
<b>Source Error:</b>
<table width=100% bgcolor="#ffffcc">
<tr><td>

I've seen various other posts on this issue and tried the following:
  • Making sure the http handler is set in the web.config
  • Copying the dictionary file into /App_Data/RadSpell/
  • Given the 'everyone' user full access to the RadSpell folder and the dictionary file in it
  • Setting the related spell checker tags in side the rad editor: 
    <SpellCheckSettings DictionaryLanguage="en-GB" DictionaryPath="~/App_Data/RadSpell/" />
    <Languages>
        <telerik:SpellCheckerLanguage Code="en-GB" Title="English" />
    </Languages>
    I tried Languages on it's own, SpellCheckerSettings on it's own and also both of them together
  • I've tried programmatically adding the language on page load...
    txtDescription.Languages.Add(new Telerik.Web.UI.SpellCheckerLanguage("en-GB", "English"));
The project doesn't use any kind of url re-writing, it's asp.net 4.0 and I'm using the very latest version of the rad tools.

Thanks.
Rumen
Telerik team
 answered on 11 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?