Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
261 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
231 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
77 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
148 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
272 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
133 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
1 answer
85 views
Hi,

I'm displaying the reults in the radgrid based on the dropdown value change
for example one of my dropdown value "INS1" giving the 200 records.So in my grid i'm displaying the 200 records as 20 pages(means 10 records per page(ISSUE1.png)) and i navigated to 15th page.
after that i selected one more value "INS2" from dropdown which gives 100 records( in my grid i suppose to  display the 100 records as 10 pages(means 10 records per page),like ISSUE3.png).But i not able to see the results in grid as i was on 15th page of previous selected value("INS1") results.but  INS2 has 10 pages only So i not able to see the results(no results are showing(ISSUE2.png)).

For Reference Please find the below 3 screen shots

Tsvetoslav
Telerik team
 answered on 04 Jul 2012
3 answers
166 views
I want to achieve the following:

I have two Listboxes, one contains available items, the other contains 'current' items. The user must be able to transfer available items into the current items' listbox, or back again to the available items' listbox, which is standard functionality, so no problem there.

HOWEVER, the current items may not be transferred into the available items' listbox, so I need a way to prevent this, but I don't see how.. Is this possible?
CRMR
Top achievements
Rank 1
 answered on 04 Jul 2012
1 answer
170 views
Hey,

I call a method OnItemDatabound that loads a Control for the ItemTemplate. This works fine, however always at the top of the list the default ItemTemplate from the Markup shows?
Why is my default ItemTemplate showing in my list??
I always see the default "THIS IS THE DEFAULT TEMPLATE" at the top of my list and then the real list items display below that.
If I remove the <ItemTemplate> Then I see the contents of the EmptyDataTemplate only, and If I remove that my list becomes empty all together?

<telerik:RadListView ID="rlvJobsListPage" runat="server" ItemPlaceholderID="phJobsList" DataSourceId="objJobList"
    OnItemDataBound="rlvJobsListPage_ItemDataBound" AllowCustomPaging="true" AllowPaging="true" PageSize="20" AllowSorting="True">
    <LayoutTemplate>
        <div id="searchList">
            <div id="phJobsList" runat="server">

            </div>
        </div>
    </LayoutTemplate>
    <EmptyDataTemplate>
        No records found
    </EmptyDataTemplate>
    <ItemTemplate>
        THIS IS THE DEFAULT TEMPLATE<br />
    </ItemTemplate>    
</telerik:RadListView>
protected void rlvJobsListPage_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e)
{
    // Set each bound item to status "Loaded"
    if (e.Item is RadListViewDataItem)
    {
 
        RadListViewDataItem thisDataItem = (RadListViewDataItem)e.Item;
        Job thisListing = (Job)thisDataItem.DataItem;
         
        //Determine which template to get from cache
        Templating listingTemplate = Templating.GetTemplateForListing(thisListing.ListingTemplate);
        rlvJobsListPage.ItemTemplate = Templating.Render_ITemplate(listingTemplate.TemplatePath, TemplateType.Summary, this);
        e.Item.DataBind();
    }
}
Marin
Telerik team
 answered on 04 Jul 2012
2 answers
119 views
Hi,

I have a grid on which i have put by default group by functionality. But the problem is that, It showing the expend collapse button just left on the grouped text

I have use in the grid for set the default group by functionality

  <GroupByExpressions>
             <telerik:GridGroupByExpression >
                             <GroupByFields >
                                    <telerik:GridGroupByField FieldName="DateSubmitted" SortOrder="Descending" />
                              </GroupByFields>
              </telerik:GridGroupByExpression>
 </GroupByExpressions>

So please tell me to hide the   expend collapse button.
PLEASE SEE ATTACHED IMAGE YOU WILL UNDERSTAND THE ACTUAL PROBLEM
Manish
Top achievements
Rank 2
 answered on 04 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?