Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Im trying to get the contents of a radgrid from a child window and am having some problems.  I cant access the mastertable view to get the contents... The gridPsap var picks up the element, but I cant get the master table.

Here is part of my code:
<body onload="formOnLoad();">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">   
        <script language="javascript" type="text/javascript">
            function formOnLoad() {
 
                var gridPsap = window.opener.document.getElementById("GridPsapHistory");
                var gridPsapTableView = gridPsap.get_masterTableView();
                var gridAli = window.opener.document.getElementById("GridAliHistory");
 
                //window.close();
            }
        </script>
        </telerik:RadCodeBlock>
        <table>

Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Apr 2013
3 answers
151 views

Telerik.Web.UI.RadGrid with ID='RadGridResizing' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.


Description: 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. 

Exception Details: System.InvalidOperationException: Telerik.Web.UI.RadGrid with ID='RadGridResizing' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[InvalidOperationException: Telerik.Web.UI.RadGrid with ID='RadGridResizing' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.]
   Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType, Boolean designTime) +752
   Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +246
   Telerik.Web.UI.RadGrid.ControlPreRender() +51
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394


Efren
Top achievements
Rank 1
 answered on 17 Apr 2013
3 answers
145 views
Hi,

I am using a RadCalendar in one of my pages where I am unable to select a year before 1980.

Please help,
Ben.
Angel Petrov
Telerik team
 answered on 17 Apr 2013
1 answer
209 views

I need to create a wpf diagram designer which consist multiple layers design (user can add layers according to their need, can switch among layers and can also show/ hide layers) and each layer can have different diagram but they are part of single design. Now my question is that how we can create multiple layers like we have different layers in Photoshop where layers are used to work on individual parts of an image while not affecting other parts. And the same thing I have to create in wpf diagram designer if it's possible or also looking for any alternative solution.... 

Lancelot
Top achievements
Rank 1
 answered on 17 Apr 2013
3 answers
85 views
Hi,

I seem to have noticed that in the Q1.2013 release the action of visible on the RadGrid has changed. I am discovering that every bound column with the visible="false" attribute, which used to work previously, now returns &nbsp;

I am having to change all of these columns to Display="false" instead, which fixes the issue where I need to access those columns, but I have over 100 pages which use grids and all of them have until now been using visible="false"

Is this change of behavior deliberate in this release? Is there anything I can do as a work around short of searching for all occurences within grids and changing them from visible to display?

David Penny
Maria Ilieva
Telerik team
 answered on 17 Apr 2013
10 answers
503 views
Hi all,

I have a scenario with the radButton radio buttons. When I press one, the postback is done (=ok) but after the postback the buttons are all unchecked.

<telerik:RadButton ID="rbt_Toggle_OrgPers_Orga" Value="1" ToggleType="Radio" ButtonType="StandardButton" GroupName="Toggle_OrgPers" ToolTip="Organisation" Width="56px" Height="56px" Icon-PrimaryIconUrl="~/Style/img/office_building_48.png" UseSubmitBehavior="false" AutoPostBack="true" Icon-PrimaryIconWidth="44" Icon-PrimaryIconHeight="48" Icon-PrimaryIconTop="3" runat="server" />
<telerik:RadButton ID="rbt_Toggle_OrgPers_Male" Value="2" ToggleType="Radio" ButtonType="StandardButton" GroupName="Toggle_OrgPers" ToolTip="Male" Width="56px" Height="56px" Icon-PrimaryIconUrl="~/Style/img/male_48.png" UseSubmitBehavior="false" AutoPostBack="true" Icon-PrimaryIconWidth="44" Icon-PrimaryIconHeight="48" Icon-PrimaryIconTop="3" runat="server" />
<telerik:RadButton ID="rbt_Toggle_OrgPers_FMle" Value="3" ToggleType="Radio" ButtonType="StandardButton" GroupName="Toggle_OrgPers" ToolTip="Female" Width="56px" Height="56px" Icon-PrimaryIconUrl="~/Style/img/Female_48.png" UseSubmitBehavior="false" AutoPostBack="true" Icon-PrimaryIconWidth="44" Icon-PrimaryIconHeight="48" Icon-PrimaryIconTop="3" runat="server" />

This scenario is within a usercontrol that is within a ajax updatepanel.

Why is the button not selected (checked) on postback?

Erik
Danail Vasilev
Telerik team
 answered on 17 Apr 2013
1 answer
85 views
Hello,

I am rather new to this, so if this is not the right place for this question, please let me know where and how I should proceed.
I have a problem since the last upgrade (v2013.1.403.40).
I have the following:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <script>
        function someCallback(panelId) {
            var panel = $find(panelId);
            if (panel) {
                panel.set_value('');
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" OnSelectedDateChanged="datechanged"
            AutoPostBack="true" EnableViewState="true" >
        </telerik:RadDatePicker>
        <telerik:RadXmlHttpPanel ID="rxhp" runat="server" Value="" OnServiceRequest="serviceRequest"
            RenderMode="Block" EnableClientScriptEvaluation="true" Width="100%">
            <br />
            <input runat="server" id="test_input" type="text" />
        </telerik:RadXmlHttpPanel>
    </div>
    </form>
</body>
</html>

with this code:

using System;
using Telerik.Web.UI;
using Telerik.Web.UI.Calendar;
 
public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.test_input.Attributes.Add("onclick", string.Format("someCallback('{0}');", this.rxhp.ClientID));
        if (!IsPostBack)
        {
            RadDatePicker1.SelectedDate = DateTime.Now;
        }
    }
    protected void datechanged(object sender, SelectedDateChangedEventArgs e)
    {  
    }
    protected void serviceRequest(object sender, RadXmlHttpPanelEventArgs e)
    {  
    }
}

My problem is that whenever the service request is made (in this case onclick on the input) also the SelectedDateChanged event of the date picker is raised and the selected date is null.
Can you possibly tell me what can cause this or how to fix this?
Vasil
Telerik team
 answered on 17 Apr 2013
2 answers
155 views
I'm not seeing functional support for IE10 drag-and-drop in 2013.1.  Specifically, the following test returns FALSE in IE10:

Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()

Am I doing something wrong, or should I not expect this to work in IE10?
David
Top achievements
Rank 1
 answered on 17 Apr 2013
1 answer
129 views
I have an issue where I have a radcombobox on a web user control inside a radgrid. The radgrid is inside a radmultipage. I am using a radajaxpanel as well. I noticed that the selectedindexchanged event of the combobox is not triggering. Furthermore, once I move the radgrid outside of the multipage, it is working fine. Is this a bug? I do need to use a multipage so is there a way for me to get this to work? See code snippets below.

Thanks!

ASPX:


    <telerik:RadAjaxPanel ID="rpnlTest" runat="server" Width="100%">
        <telerik:RadTabStrip ID="rtabRegistration" runat="server" Skin="Windows7" MultiPageID="rmpTest">
            <Tabs>
                <telerik:RadTab Text="Step 1" PageViewID="rpvStep1" Value="Step1">
                </telerik:RadTab>
                <telerik:RadTab Text="Step 2" PageViewID="rpvStep2" Value="Step2">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="rmpTest" runat="server">
            <telerik:RadPageView ID="rpvStep1" runat="server" TabIndex="0" Selected="true" >
<asp:Panel ID="pnlTest" runat="server" Visible="false">
<telerik:RadGrid ID="rgrdTest" runat="server" AutoGenerateColumns="false">
                                <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top">
                                    <Columns>
....
                                    </Columns>
    <EditFormSettings EditFormType="WebUserControl" UserControlName="test.ascx">
                                        <EditColumn UniqueName="EditCommandColumn1">
                                        </EditColumn>
                                        <PopUpSettings Modal="true" Width="800px" />
                                    </EditFormSettings>
                </asp:Panel>
            </telerik:RadPageView>

ASCX source:


            <telerik:RadComboBox ID="rcbTypeBusActivity" runat="server" AutoPostBack="True" MarkFirstMatch="true" 
                OnSelectedIndexChanged="rcbTypeBusActivity_SelectedIndexChanged" >
                <Items>
                    <telerik:RadComboBoxItem Text="Individual" Value="Individual" />
                    <telerik:RadComboBoxItem Text="Business Entity" Value="Business Entity" />
                    <telerik:RadComboBoxItem Text="Industry" Value="Industry" />
                    <telerik:RadComboBoxItem Text="Other" Value="Other" />
                </Items>
            </telerik:RadComboBox>

ASCX code:

    protected void rcbTypeBusActivity_SelectedIndexChanged1(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        pnlIndividual.Visible = false;
        pnlIndustry.Visible = false;
        pnlOther.Visible = false;
        if (e.Value == "Individual" || e.Value == "Business Entity")
            pnlIndividual.Visible = true;
        else if (e.Value == "Industry")
            pnlIndustry.Visible = true;
        else
            pnlOther.Visible = true;
    }
Maria Ilieva
Telerik team
 answered on 17 Apr 2013
1 answer
184 views
Hi.
I have the problem that the RadCombobox with Autocomplete has some strange behaviours. The dropdown is shown correctly when it is displayed below the input field but if there is not enough space and it jumps above the input field, I have the following problem which is shown in the attached picture. I know that the picture looks a bit strange but you can see that after some value was entered the dropdown is pinned to the top (which is not the right place!).
Is that a bug or did I something wrong in my code?
Thanks for your help.

All the best,
Jochen

Jochen
Top achievements
Rank 1
 answered on 17 Apr 2013
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?