Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
141 views
Hi!

We use your editor to dynamically create letters. In images 1A and 1B, we are setting the HTML and everything looks good. However, when we toggle through the Design, HTML, and Preview, it looks like you are injecting a style. (1) Why are you doing this?, and (2) is there a way to prevent it?

I would prefer that you not alter our HTML if possible :)

Thanks!
Michael O'Flaherty
Top achievements
Rank 2
 answered on 13 Aug 2012
2 answers
574 views
Hi Telerik,

      I have serious problem.......
I have used to RadPanes one as header and the other as main pane in which the content gets displayed.
i have a user control which shows some tabs,this is placed in the header radpane.
Now on clicking the tabs i need to change the content url of the main content in order to load a different page in it.
i'am using javascript to get the to get the element id of the pane from the main rad pane in the click event of the tabs of the user control.
but ia'm unable to change the url of the content pane

In user control
the script used to get the contentpane id is

 

function GetId()

 

{

 

var splitterPageWnd = window.parent;

 

 

var splitterObject = splitterPageWnd.GetRadSplitter();

 

splitterObject.SetcontentUrl=(

"http://www.google.com");

 

}


i'am calling this on the click event of tab.....


This is the code i have written in the maincontent pane to get the id of the pane

 

function GetRadSplitter ()

 

{

 

return document.getElementById("RadContentPane");

 

 

}



i'am getting the id but not able to load the content with the page required.....................



plz help me on this .............................asap...............plzzz

Thanks in Advance
Pushpa.
RAGHUNATH
Top achievements
Rank 1
 answered on 13 Aug 2012
1 answer
95 views

Hello.

I have  a problem with the radcombobox.

In the website there is a "date of birth" dropdown and it has the default value set to the middle of the "acceptable range". The problem is that the default value (which is 1960) is shown in this way when opening the dropdownlist:

http://i.imgur.com/YyYf1.png

When it really should be shown in this way:

http://i.imgur.com/mKvCr.png

Is there any good solutions to fix this problem?

Kalina
Telerik team
 answered on 13 Aug 2012
1 answer
165 views
Hi ,

I'm new to telerik. I have a template column in my radgrid and I would like to add a radeditor to the edittemplate. The problem is when I click edit, and enter some new data to the radeditor, in the code behind, the content property of the radeditor is always getting blank string. Could someone give me some help with this issue? I have wasted lots of time on this. Below is the code:

<telerik:GridTemplateColumn HeaderText="Email Customizable Field 1" UniqueName="EmailBody1">
                    <EditItemTemplate>
                        <telerik:RadEditor ID="txtBody1Edit" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus"
                            Width="315px" Height="65px" BorderStyle="None" EnableResize="False" Content='<% # bind ("EmailBody1") %>'>
                            <CssFiles>
                                <telerik:EditorCssFile Value="~/Styles/RichText.css" />
                            </CssFiles>
                            <Tools>
                                <telerik:EditorToolGroup Tag="Formatting">
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorSplitButton Name="ForeColor">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSplitButton Name="BackColor">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSeparator />
                                    <telerik:EditorDropDown Name="FontName">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="RealFontSize">
                                    </telerik:EditorDropDown>
                                </telerik:EditorToolGroup>
                            </Tools>
                            <ContextMenus>
                                <telerik:EditorContextMenu TagName="BODY">
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
                                    <telerik:EditorTool Name="Paste" />
                                    <telerik:EditorTool Name="SelectAll" />
                                </telerik:EditorContextMenu>
                            </ContextMenus>
                            
                            <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
                        </telerik:RadEditor>
                    </EditItemTemplate>

                    <ItemTemplate>
                        <asp:Label ID="lbBody1" runat="server" Text='<%# Eval("EmailBody1") %>' />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>


 Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
         
        Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim EmailID As String = editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("EmailID").ToString()
        Dim EmailTemplateName As String = (TryCast(editedItem("EmailTemplateName").Controls(0), TextBox)).Text
        Dim EmailSubject As String = TryCast(editedItem("EmailSubject").Controls(0), TextBox).Text
        Dim EmailBody1 As String = TryCast(e.Item.FindControl("txtBody1Edit"), RadEditor).Content.ToString
        Dim EmailBody2 As String = TryCast(e.Item.FindControl("txtBody2Edit"), RadEditor).Content.ToString
        Dim EmailBody3 As String = TryCast(e.Item.FindControl("txtBody3Edit"), RadEditor).Content.ToString
        Dim EmailBody4 As String = ""
        Dim Emailbody5 As String = ""

        Dim Footer As String = (TryCast(e.Item.FindControl("txtFooterEdit"), RadEditor)).Content.ToString

        Dim Attachment1 = (TryCast(e.Item.FindControl("fuAttachment1"), FileUpload)).FileName.ToString
        Dim Attachment2 = (TryCast(e.Item.FindControl("fuAttachment2"), FileUpload)).FileName.ToString
        Dim Attachment3 = (TryCast(e.Item.FindControl("fuAttachment3"), FileUpload)).FileName.ToString
        Dim Attachment4 = (TryCast(e.Item.FindControl("fuAttachment4"), FileUpload)).FileName.ToString
        Dim Attachment5 = (TryCast(e.Item.FindControl("fuAttachment5"), FileUpload)).FileName.ToString

        Dim EmailType As Integer = Integer.Parse((TryCast(e.Item.FindControl("dlEmailType"), DropDownList)).SelectedValue.ToString)

        Try
            QueryAdapters.SMS_DG_UpdateEmailTemplate(EmailID, EmailTemplateName, EmailSubject, EmailBody1, EmailBody2, EmailBody3, EmailBody4, Emailbody5, Footer, Attachment1, Attachment2, Attachment3, Attachment4, Attachment5, EmailType)
            Catch ex As Exception
                RadGrid1.Controls.Add(New LiteralControl("Unable to update the email template. Reason: " + ex.Message))
                e.Canceled = True
            End Try
    End Sub
Andrey
Telerik team
 answered on 13 Aug 2012
1 answer
47 views
Good afternoon,

I updated this last fix(2012_2_724) you, to solve a bug that was giving RadnumericTextbox, it seems that something messed up RadDatePicker.
Now RadDatePicker is not respecting the value set in the width property, visually in the way of "Design" in the browser it is normal but the project he is bugged ... This disrupts the very model of the form.
Galin
Telerik team
 answered on 13 Aug 2012
2 answers
392 views
I have a Radgrid with Advacned Data Binding. In the Update Command, If a column is changed, I have to change values of other rows too. I am handling the updates in a sql statement. However, after Update button is clicked, it only refreshes the current row and not the whole grid. I want to Refresh or REbind the whole grid on Update Command.

Tried adding inside UpdateCommand, but its not working,

UpdateRecords();
 e.Canceled = true;
RadGrid1.Rebind();

Also, I need to do the same on Insert Command too.

Thanks,
Sri!!!
Sravanthi
Top achievements
Rank 1
 answered on 13 Aug 2012
4 answers
187 views

Hi

I have a Radeditor in a table below, with a defined fixed width of 400px

<
telerik:RadEditor ID="radMyEditor" runat="server" Width="400px" Skin="Windows7" ContentAreaMode="Div" AutoResizeHeight="false" EnableResize="false" ToolsFile="~\Controls\Telerik\RadEditorButtons.xml" StripFormattingOnPaste="MSWordRemoveAll" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, ConvertFontToSpan, ConvertToXhtml, IndentHTMLContent, OptimizeSpans, ConvertCharactersToEntities">


Viewing source, the HTML renders initially at 400px, on IE

<div id="ctl00_MainContent_radObituary" class="RadEditor Windows7 reWrapper" style="height:400px;width:400px;">


However, it seems telerik runs a 'fix up script' after the page loading changes the width of the editor to 1000px. When viewing the page with IE 9 Dev Tools, the div has now become:

 

 

<div class="RadEditor Windows7 reWrapper" id="ctl00_MainContent_radObituary" style="width: 1000px; height: 394px; min-height: 394px; min-width: 400px;">

(The 1000px comes from inline, and is not inherited from a CSS)

So where does the 1000px come from? How can I stop this "post load" fix up step?
This problem only seems to happen in IE.

Thanks

Stuart

 

Rumen
Telerik team
 answered on 13 Aug 2012
6 answers
281 views
Sir,
I used a radwindow which is opened by clicking a button on the page1.aspx.
After I close tht radwindow,I perform an event in the page1.aspx for eg,a button click
The error Invalid JSON Primitive is coming
I didnt write any script in radwindow page and page1.aspx
help me...
Thanks....
p
Top achievements
Rank 1
 answered on 13 Aug 2012
3 answers
96 views
I have an issue where one of my panes inside splitter has an activex control. While resizing, the splitter anchor line hides behind the active control which prevents the user from releasing the anchor where they want to.

To overcome that, I am trying to make the activex control hide in the OnClientResizing event and then make it visible again after the resize has completed (OnClientResized). The problem is that the OnClientResizing event is not fired until the resize is complete (mouse button has been released.) This is true even on the telerik demo page based on what gets logged in the log console.

Can someone please help me here?

Thanks!!
Vessy
Telerik team
 answered on 13 Aug 2012
2 answers
397 views
Hi!
This is my scenario
- I have a Grid with a top menu as user control with options such as "Delete Selected"
- When user click on "Delete Selected" . a radwindows is open. The radwindow user COntentTemplate, because I need set height:150px and width.

My Grid:


the aspx of Grid:

<%@ Page Title="" Language="C#" MasterPageFile="~/UI/Doculex.Master" AutoEventWireup="true"
    CodeBehind="Fields.aspx.cs" Inherits="WebSearch.UI.Admin.Fields" %>

<%@ Register TagPrefix="UC" TagName="header" Src="~/UI/UserControls/Header.ascx" %>
<%@ Register TagPrefix="UC" TagName="AddButtons" Src="~/UI/Admin/UserControls/Grid/AddTopButtons.ascx" %>
<%@ Register TagPrefix="UC" TagName="DeleteDialog" Src="/UI/Admin/UserControls/Grid/Popups/DeleteSelected.ascx" %>
<%@ Register TagPrefix="UC" TagName="EnableDialog" Src="/UI/Admin/UserControls/Grid/Popups/EnableSelected.ascx" %>
<%@ Register TagPrefix="UC" TagName="DisableDialog" Src="/UI/Admin/UserControls/Grid/Popups/DisableSelected.ascx" %>
<%@ MasterType VirtualPath="~/UI/Doculex.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/UI/Style/Admin/Admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/UI/Admin/Scripts/Form.js"></script>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">

            function showDeleteSelectedDialog() {      //OPEN DELETE SELECTED RADWINDOW


                var rgGrid = $find("<%= Grid.ClientID %>");
                var oWindow = $find('<%=DeleteSelected.ClientID%>' + "_DeleteDialog");
                if (oWindow == null)
                    oWindow = $find("ctl00_" + '<%=DeleteSelected.ClientID%>' + "_DeleteDialog");
                if (rgGrid == null || oWindow == null) return false;

                ShowDeleteSelectedDialog(rgGrid, oWindow);
                return false;
            }

          
            function ShowEditForm(id, rowIndex) {
                var grid = $find("<%= Grid.ClientID %>");
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                var oWindow = window.radopen("FieldForm.aspx?ID=" + id, "FieldDialog");
                return false;
            }

            function showInsertForm() { var oWindow = window.radopen("FieldForm.aspx", "FieldDialog"); }



            function refreshGrid(arg) {

                if (arg != null) { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(arg); }
                else {
                    if (arg) {
                        $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(arg);
                    }
                    else {
                        $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("RebindAndNavigate");
                    }
                }
            }



            function rowDblClick(sender, eventArgs) {
                editedRow = eventArgs.get_itemIndexHierarchical();
                $find("<%= Grid.ClientID %>").get_masterTableView().editItem(editedRow);
            }



            function ValueChanged(sender, args) {
                //var SenderId = sender.get_element().id;
                var SenderId = sender.get_id();

                var txtNameId = $("#" + SenderId).get(0);

                var txtName = $telerik.findTextBox(SenderId.replace("txtName", "txtName"));
                var text = txtName.get_value();
                var txtId = $telerik.findTextBox(SenderId.replace("txtName", "txtId"));


                var txtHeader = $telerik.findTextBox(SenderId.replace("txtName", "txtHeader"));
                txtHeader.set_value(text);


            }


        </script>
    </telerik:RadCodeBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxLoadingPanel runat="server" Skin="Vista" ID="LoadginPanel1" IsSticky="true"
        CssClass="LoadingPanel" />
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnDelete">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <UC:header runat="server" ID="headerPage" />
    <div id="containerSubWHelp">
        <telerik:RadGrid ID="Grid" runat="server" AutoGenerateColumns="False" OnNeedDataSource="FieldsGrid_NeedDataSource"
            OnUpdateCommand="FieldsGrid_UpdateCommand" OnInsertCommand="FieldsGrid_InsertCommand"
            OnItemCommand="FieldsGrid_ItemCommand" OnPreRender="FieldsGrid_PreRender" OnItemCreated="FieldsGrid_ItemCreated"
            OnDeleteCommand="FieldsGrid_DeleteCommand" OnItemDataBound="FieldsGrid_ItemDataBound">
            <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id,Name,Header">
                <Columns>
                    <telerik:GridClientSelectColumn CommandName="Select" UniqueName="Select" HeaderStyle-Width="28px"
                        Resizable="false" Reorderable="false">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridTemplateColumn UniqueName="IsActive" DataField="IsActive" Reorderable="false"
                        HeaderStyle-Width="55px" AllowFiltering="true" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="ActiveIcon" runat="server" CommandName="Active"></asp:ImageButton>
                            <asp:CheckBox ID="lblIsActive" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem,"IsActive") is DBNull ?false:Eval("IsActive")) %>'
                                Visible="false" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="28px"
                        Reorderable="false" AllowFiltering="false" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="EditLink" runat="server" ImageUrl="/UI/Images/pencil.png"></asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn HeaderStyle-Width="28px" UniqueName="EditCommandColumn"
                        Reorderable="false" ButtonType="ImageButton" EditImageUrl="/UI/Images/grid_edit.png"
                        Resizable="false">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                        Reorderable="false" CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px"
                        HeaderStyle-Width="28px" Resizable="false" ImageUrl="/UI/Images/cross.png" />
                    <telerik:GridTemplateColumn DataField="Id" UniqueName="Id" Visible="false">
                        <InsertItemTemplate>
                            <telerik:RadTextBox ID="txtIdInsert" runat="server" Text='<%# Bind("Id") %>' ReadOnly="true"
                                Enabled="false" />
                        </InsertItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="txtId" runat="server" Text='<%# Eval("Id") %>' ReadOnly="true" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Name" DataField="Name">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtName" Width="120px" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'>                             
                            </asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="rfName" runat="server" ErrorMessage="*" Display="Dynamic"
                                ControlToValidate="txtName" CssClass="validator" />
                            <asp:CustomValidator ID="cvName" runat="server" Display="Dynamic" CssClass="validator"
                                ControlToValidate="txtName" OnServerValidate="cvName_ServerValidate" />
                            <asp:RegularExpressionValidator ID="reName" ControlToValidate="txtName" runat="server"
                                ValidationExpression="^[0-9a-zA-Z\s]{1,125}$" CssClass="validator" Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Header" DataField="Header">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtHeader" Width="120px" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Header") %>' />
                            <br />
                            <asp:RequiredFieldValidator ID="RFHeader" runat="server" ErrorMessage="*" CssClass="validator"
                                ControlToValidate="txtHeader" Display="Dynamic" />
                            <asp:CustomValidator ID="cvHeader" CssClass="validator" Display="Dynamic" runat="server"
                                ControlToValidate="txtHeader" />
                            <asp:RegularExpressionValidator ID="reHeader" ControlToValidate="txtHeader" runat="server"
                                ValidationExpression="^[0-9a-zA-Z\s]{1,125}$" CssClass="validator" Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblHeader" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Header") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="DataType" DataField="DataType">
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="cbDataType" EnableLoadOnDemand="True" DataTextField="DataType"
                                DataValueField="Id" HighlightTemplatedItems="true" Width="150px" AutoPostBack="true" />
                            <br />
                            <asp:RequiredFieldValidator ID="frSecurity" runat="server" ErrorMessage="*" CssClass="validator"
                                Display="Dynamic" ControlToValidate="cbDataType"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblDatatype" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DataType") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="IsInput" DataField="IsInput">
                        <EditItemTemplate>
                            <asp:CheckBox ID="chkIsInput" Width="120px" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem,"IsInput") is DBNull ?false:Eval("IsInput")) %>' />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblIsInput" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "IsInput") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="IsRequired" DataField="IsRequired">
                        <EditItemTemplate>
                            <asp:CheckBox ID="chkIsRequired" Width="120px" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem,"IsRequired") is DBNull ?false:Eval("IsRequired")) %>' />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblIsRequired" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "IsRequired") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <CommandItemTemplate>
                    <UC:AddButtons ID="AddButtons" runat="server" />
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <Resizing ResizeGridOnColumnResize="true" />
                <ClientEvents OnRowDblClick="rowDblClick" />
            </ClientSettings>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="FieldDialog" runat="server" Height="600px" Width="800px" Skin="Vista"
                    BackColor="Aquamarine" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                    VisibleStatusbar="false" Behaviors="Move, Close" Animation="FlyIn" />
                
            </Windows>
        </telerik:RadWindowManager>
        <UC:DeleteDialog ID="DeleteSelected" runat="server"></UC:DeleteDialog>
              
    </div>
</asp:Content>



Top Menu Ascx:
<div class="addSection">
    <div class="quickAdd">
        <asp:LinkButton ID="lnkqQuitInsert" runat="server" CommandName="InitInsert">
            <asp:ImageButton ID="imgQuickAdd" runat="server" ImageUrl="/UI/Images/add.png" />
            <asp:Label ID="lblQuickAdd" runat="server" class="TopMenuLabel" /></asp:LinkButton>&nbsp;&nbsp;
    </div>
    <div class="fullAdd" id="FullAdd" runat="server">
        <asp:LinkButton ID="lnkAdd" runat="server" CommandName="FullInsert">
            <asp:ImageButton ID="imgAddFull" runat="server" ImageUrl="/UI/Images/add.png" />
            <asp:Label ID="lblFullAdd" runat="server" class="TopMenuLabel"/>
        </asp:LinkButton></div>
    <div class="quickAdd">
        <asp:LinkButton ID="lnkDeleteSelected" runat="server"  OnClientClick="javascript:showDeleteSelectedDialog();"
>
            <asp:ImageButton ID="imgDeleteSelected" runat="server" ImageUrl="/UI/Images/cross.png" />
            <asp:Label ID="lblDeleteSelected" runat="server" class="TopMenuLabel"/></asp:LinkButton>&nbsp;&nbsp;
    </div>


    <div class="quickAdd">
        <asp:LinkButton ID="lnkEnabled" runat="server" OnClientClick="javascript:showEnableSelectedDialog();" >
            <asp:ImageButton ID="imgEnabled" runat="server" ImageUrl="/UI/Images/active.png" />
            <asp:Label ID="lblEnableSelected" runat="server" class="TopMenuLabel"/></asp:LinkButton>&nbsp;&nbsp;
    </div>

    
    <div class="quickAdd">
        <asp:LinkButton ID="lnkDiabled" runat="server" OnClientClick="javascript:showDisableSelectedDialog();">
            <asp:ImageButton ID="imgDisable" runat="server" ImageUrl="/UI/Images/notActive.png" />
            <asp:Label ID="lblDisableSelected" runat="server" class="TopMenuLabel"/></asp:LinkButton>&nbsp;&nbsp;
    </div>
       
       
</div>

The RadWindow as userControl ( I use this controls in every page)

      <script type="text/javascript" src="/UI/Admin/Scripts/Form.js"></script>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">

        function closeAndRebindDelete(args) {
          
         CloseAndRebindTopMenu(args); }

     function cancel() {    CancelTopMenu(); }    
    </script>
</telerik:RadCodeBlock>
<telerik:RadWindow ID="DeleteDialog" runat="server" Skin="Vista" BackColor="Aquamarine"
    ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false"
    Behaviors="Move, Close" Animation="FlyIn" Width="550px" Height="100px">
    <ContentTemplate>
        <div class="information">
            <center>
                <asp:Label ID="lblDeleteSelectInformation" CssClass="fontLabel" runat="server">
                </asp:Label>
            </center>
        </div>
        <br />
        <div style="width: 100%; text-align: center;">
            <telerik:RadButton ID="btnMarkForDelete" runat="server" Skin="Vista" Width="140px"
                OnClick="btnMarkForDelete_Click">
                <Icon PrimaryIconUrl="/UI/Images/markForDelete.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
            </telerik:RadButton>
            <telerik:RadButton ID="btnDeleteNow" runat="server" Skin="Vista" Width="140px" OnClick="btnDeleteNow_Click">
                <Icon PrimaryIconUrl="/UI/Images/cross.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
            </telerik:RadButton>
            <telerik:RadButton ID="btnCancel" runat="server" Skin="Vista" Width="100px" CausesValidation="False"
                ToolTip="Cancel" OnClientClicked="cancel">
                <Icon PrimaryIconUrl="/UI/Images/cancel.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
            </telerik:RadButton>
        </div>
    </ContentTemplate>
</telerik:RadWindow>


Form.js:

function GetRadWindow() {     //if I call this function to close an rebind I get an error window.radwindow == null
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

    return oWindow;
}

function Cancel() {
    GetRadWindow().close();
    return;
}



function CloseAndRebind(args) {

     GetRadWindow().BrowserWindow.refreshGrid(args);  //ERROR
     GetRadWindow().close();
     return;
 }


 function CancelTopMenu() {
     
     return false;
 }


 function CloseAndRebindTopMenu(args) {

     window.refreshGrid(args);  //I use this option as solution but I get other erros.
         
     return false;
 }

 function ShowDeleteSelectedDialog(grid, oWindow) {
     var MasterTable = grid.get_masterTableView();
     var selectedRows = MasterTable.get_selectedItems();
     if (selectedRows.length > 0) {
         oWindow.set_iconUrl("/UI/Images/delete.png");
         oWindow.show();
     }
 }


 3- Run the app, selecte a row, click on Delete Selected, the radWindow is open, click on the first Button



All is working fun, the raadwindow close (very slow), the radgrid rebind,  But when I try to use some of row action such as


The actions ( radajaxamanager) doesnt work, an in Javascript console show the following errors:




I need finish this urgent!

Where is the error????

regards

July
Top achievements
Rank 2
 answered on 13 Aug 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?