Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
I have a radComboBox containing a radTreeView for selection. It is based very strongly on one of the demos. It worked beautifully until I decided to enable/disable it in the client, based on other page events. Once the radComboBox has been disabled and re-enabled, the following lines of code in the radComboBox's OnClientDropDownOpened event handler throw an error because it can no longer find the control "rtvRights" in the item (oTreeView is undefined):
var oTreeView = sender.get_items().getItem(0).findControl("rtvRights");
var oSelectedNode = oTreeView.get_selectedNode();
As I said, this code works fine unless you disable and then enable the radComboBox using it's client-side disable/enable methods.
Plamen
Telerik team
 answered on 04 Jul 2012
3 answers
82 views
Hi,

Using checkboxes within a combo and Checkall turned on I find that if I press the icon to open the combo box then click elsewhere without checking any entries in the combo box it the closes the box and displays the text of the first item in the list even though it was not checked.

Having AllowCustomText="True" prevents this from happening however when using checkboxes this shouldn't be needed should it?

Regards,

Jon
Nencho
Telerik team
 answered on 04 Jul 2012
12 answers
353 views
 Hi, i have a page that loads user controls, like in this demo: http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx . The User control have a form (RadListView with EditTemplate) with validator controls and a ValidatorSummary control.
  The problem is, the ValidatorSummary only works with ShowSummary="True" and i need to have ShowMessageBox="True". Is it the expected behavior ? How can i get it to work?

Thanks in advance.


Andrey
Telerik team
 answered on 04 Jul 2012
1 answer
81 views
Hi,

in CreateChildControls i add the sort expressions to the grid. Because the unique name of a column could change (because the current datasource was removed from the cache because of a timeout), I clear the SortExpressions and add the new ones. But in the DataBound event, only the old sort expressions are set but not my new ones. I think they are set because of the viewstate.
How can I prevent that the Grid overrides my new SortExpressions with them from the viewstate?

Thanks!
Maria Ilieva
Telerik team
 answered on 04 Jul 2012
5 answers
255 views
Getting the following error when I am using RadAjaxPanel

Cannot unregister UpdatePanel with ID 'RadWindow1$C$rdDemoPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel


My design is as follows
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="radajaxpanel1.aspx.cs" Inherits="radajaxpanel1" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default"
            InitialBehavior="None">
            <Shortcuts>
                <telerik:WindowShortcut CommandName="CloseAll" Shortcut="Esc" />
            </Shortcuts>
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Default" InitialBehaviors="None"
                    OpenerElementID="btn" Width="650" Height="480" VisibleOnPageLoad="false">
                    <ContentTemplate>
                        <telerik:RadAjaxPanel ID="rdDemo" runat="server"  LoadingPanelID="RadAjaxLoadingPanel1">
                            <telerik:RadComboBox ID="rdcmb" runat="server" AutoPostBack="true" OnSelectedIndexChanged="sel">
                                <Items>
                                    <telerik:RadComboBoxItem Text="One" Value="One" />
                                    <telerik:RadComboBoxItem Text="Two" Value="Two" />
                                    <telerik:RadComboBoxItem Text="Three" Value="Three" />
                                    <telerik:RadComboBoxItem Text="Four" Value="Four" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadTextBox ID="rdText" runat="server">
                            </telerik:RadTextBox>
                            <telerik:RadButton ID="radbtn" runat="server" Text="Save" OnClick="btn_Click">
                            </telerik:RadButton>
                        </telerik:RadAjaxPanel>
                    </ContentTemplate>
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    </form>
</body>
</html>

My code is as follows

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class radajaxpanel1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void sel(object sender, EventArgs e)
    {
        rdText.Text = rdcmb.SelectedItem.Text;
    }
    protected void btn_Click(object sender, EventArgs e)
    {
        RadWindowManager1.Windows[0].VisibleOnPageLoad = false;
        RadWindowManager1.Windows[0].Visible = false;
    }
}

Maria Ilieva
Telerik team
 answered on 04 Jul 2012
8 answers
220 views
Hi,

Using the latest internal build (June 26th I think), I get the checkbox looking too big in Chrome.  It doesn't skin properly and also the box is oversized....  Simple to replicate...  It looks fine in IE9.

Regards,

Jon

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager>
    <asp:CheckBox ID="uxRememberMe" runat="server" Text="Remember Me"></asp:CheckBox>       
    <telerik:RadFormDecorator ID="uxRadFormDecorator" Runat="server" DecoratedControls="CheckBoxes, Buttons, Scrollbars, Label,Textbox" />
</form>
Jon
Top achievements
Rank 1
 answered on 04 Jul 2012
1 answer
75 views
Hi - I have a combobox in the template for a new record on the RadGrid. The value selected in this combobox should be taken from a control outside the grid. Where and how can I set the default for the new record control?Thanks,
Paul
Eyup
Telerik team
 answered on 04 Jul 2012
1 answer
140 views
I'm working with a RadAsyncUpload control and currently have a javascript function attached to OnClientValidationFailed which pops up an alert with an error message.

At the time OnClientValidationFailed fires, there is a cancel button for the file that has called it rather than the remove button once it has failed validation.  Is there any event that can be captured after a file has failed and the remove button has replaced the cancel button?
Plamen
Telerik team
 answered on 04 Jul 2012
3 answers
264 views
got my radscheduler working fine with objectdatasource against my sql-db.

One small drawback: When i right click to add a new appointment,
it opens a basic form. there i have to click "options" to open my advanced
form. I want my advanced form opened just after click to my "add new appoinment"
context menu item, as the basic form cannot provide all required data.

how can i achieve this?
(the less java the better :-) else please be explicit)




Plamen
Telerik team
 answered on 04 Jul 2012
1 answer
131 views
Hello All,

My requirement is to use RadGrid and RadScheduler webparts as static webparts. Rather configure them on webpart page, can I deploy them as static webparts in application pages.

I have the following code, but it is failing. please help. thank you.


 <%@ Register Tagprefix="telerik" Namespace="Telerik.Ajax.SharePoint" Assembly="Telerik.Ajax.SharePoint, Version=2012.1.215.35, Culture=neutral, PublicKeyToken=aa9e5f693af67c7b" %>

<telerik:TelerikSPRadSchedulerWebPart runat="server"  __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{AC47AB64-8B3A-4E9D-802F-F0A958B948DD}">
  <Title>Telerik SPRadSchedulerWebPart Web Part</Title>
  <FrameType>Default</FrameType>
  <Description>Telerik SPRadSchedulerWebPart Web Part</Description>
  <IsIncluded>true</IsIncluded>
  <ZoneID>FullPage</ZoneID>
  <PartOrder>2</PartOrder><FrameState>Normal</FrameState><Height /><Width />
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>true</AllowMinimize>
  <AllowConnect>true</AllowConnect>
  <AllowEdit>true</AllowEdit>
  <AllowHide>true</AllowHide>
  <IsVisible>true</IsVisible><DetailLink />
  <HelpLink /><HelpMode>Modeless</HelpMode>
  <Dir>Default</Dir><PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge /><IsIncludedFilter />
  <ExportControlledProperties>true</ExportControlledProperties>
  <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
  <ID>g_ac47ab64_8b3a_4e9d_802f_f0a958b948dd</ID>
  <BindingMode xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart">SPList</BindingMode>
  <DayStartTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
  <DayEndTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
  <WorkDayStartTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
  <WorkDayEndTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
  </WebPart>
  </telerik:TelerikSPRadSchedulerWebPart>

Error : Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.
Cat Cheshire
Top achievements
Rank 1
 answered on 04 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?