Telerik Forums
Community Forums Forum
1 answer
118 views
Hi Guys

I have not been able to use the themebuilder at http://demos.kendoui.com/mobilethemebuilder/index.html

Safari, Chrome and Firefox cannot open it. What should I do or is this an issue with the Themebuilder itself? Firefbug shows a lot of Javascript errors (see below).

Thanks

SyntaxError: unterminated string literal
TypeError: kendo is undefined
ReferenceError: kendo is not defined
ReferenceError: kendo is not defined
ReferenceError: kendo is not defined
ReferenceError: kendo is not defined
Kiril Nikolov
Telerik team
 answered on 08 Jul 2013
1 answer
68 views
Hi All,

We are using Telerik RadControls for ASP.NET Ajax Version - 2009.2.70 in VS2005.
Now we want to migrate VS2012.

Question

Will Telerik RadControls for ASP.NET Ajax Version - 2009.2.70 work for VS 2012 and IE 10 Browser?

I tried to migrate the source code,Rad Controls are working fine in Chrome and Firefox but getting some scripting errors in IE 10,

I want to know whether  Rad Controls Version 2009.2.70 will work for VS 2012 and IE 10 Browser or not?

Thank You
Varma

Marin Bratanov
Telerik team
 answered on 03 Jul 2013
1 answer
107 views
It was great meeting you all at BUILD this week. Thanks for making cool stuff :D
Teodor
Telerik team
 answered on 03 Jul 2013
1 answer
80 views
 is there a French version of telerik rad  ?
Stefan
Telerik team
 answered on 03 Jul 2013
5 answers
154 views
I can´t find a threat to post this.

The last week we buy the UI Edition licence but sometimes appears the message that says that we use a trial version.
In the telerik control manager we have installed:
 ASP.NET AJAX
Silverlight
WPF
Windows Forms
Kendo UI

Some solution?

Mike.
Yuliyana
Telerik team
 answered on 02 Jul 2013
0 answers
92 views
Hello Telerk,
            I am using two use controls GoogleMaps.ascx and GMaps.ascx.The GMaps.ascx is inside the GoogleMaps.ascx.I am using a RadListbox on 
GoogleMaps.ascx to load the map on GMaps.ascx.Everything was working fine but my client requested to ajaxify the RadListBox so I have added a 
RadAjaxManagerProxy to the GoogleMaps.ascx.But after adding this my map is not showing if i added another control below or upper to the map that is
working fine but map still not showing(ResponseScript not coming) please suggest ASAP.......
Here is my code.....
GoogleMaps.ascx-:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GoogleMaps.ascx.cs"
    Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GoogleMaps" %>
<%@ Register Src="~/Assets/Controls/Mapping/GMaps.ascx" TagName="GMaps" TagPrefix="uc1" %>
 
 
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="radListBoxSites">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="RadAjaxLoadingPanel1"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
 <div id="mapSitename">
       <telerik:RadListBox  ID="radListBoxSites" runat="server" DataTextField="Name" AutoPostBack="true"
            DataValueField="SiteID" Height="219" Width="150"  Font-Bold="True" OnSelectedIndexChanged="radListBoxSites_SelectedIndexChanged" >
        </telerik:RadListBox>    
</div>
<asp:Panel ID="panel1" runat="server">
    <uc1:GMaps ID="gmapSites" runat="server" Width="800" Height="370" ></uc1:GMaps>
</asp:Panel>


GMaps.ascx-:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GMaps.ascx.cs" Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GMaps" %>
<%@ Register Assembly="Reimers.Google.Map" Namespace="Reimers.Google.Map" TagPrefix="Reimers" %>
 
<Reimers:Map ID="mapSites" runat="server" Width="100%" Height="400px"
 OnOverlayClick="HandleOverlayClick" MapLanguage="en-GB" >
    <Center Latitude="0" Longitude="0" />
</Reimers:Map>


Shivam
Top achievements
Rank 1
 asked on 26 Jun 2013
0 answers
100 views

Hi

Help about rad editor :

Our company use the rad editor in cms project and it work correctly in some host and in one server  host the rad editor not working correctly ..my rad editor open in popup and show  it  but i cant type any thing in TextArea and when i click on objects of toolbar in rad editor the page jump to up and the object  toolbar  not  working on click   and when i want to get object the  rad editor by bellow code:

var editor = $find("<%= NewsDetail.ClientID%>"); undefined

editor.set_html(value);   undefined

editor.html() ; undefined

cant get the object by that and i get error undefined from set_html and $find("<%= NewsDetail.ClientID%>"); Coud not find the object and for this editor.set_html i have problem undefined too... but in another server it work correctly and every thing work but in one of server it doenst work .

 

my rad editor is exist in my Control by Name ManageNewsNew.ascx

and i load this Control from ShowModule.aspx page and Control Send TO You By source code, you can See That.


my source user control is bellow source code by name ManageNewsNew.ascx  and my rad editor in this control


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManageNewsNews.ascx.cs"
    Inherits="AZWCMS.Web.UI.Modules.News.Management.ManageNewsNews" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
   

<h1 class="icons content_right_box_h1 azw_border_crv10">
    <a href="javascript:void()"  id="newRec" class=" icons icon_add azw_margin_rl_1per newRec" title="   <%=HttpContext.GetGlobalResourceObject("Announcement", "newRecTootip", CurrentPanelCulture)%>  ">
    </a><a href="javascript:void()"   id="editRec" class=" icons icon_edt azw_margin_rl_1per editRec " title="   <%=HttpContext.GetGlobalResourceObject("Announcement", "editRecTootip", CurrentPanelCulture)%>  ">
    </a><a href="javascript:void()"   id="deleteRec" class=" icons icon_dlt azw_margin_rl_1per deleteRec" title="   <%=HttpContext.GetGlobalResourceObject("Announcement", "delRecTootip", CurrentPanelCulture)%>   "></a>
        <a href="javascript:void()"   id="sendnews" class=" icons icon_sndnews azw_margin_rl_1per sendnews" title="   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_SendNews", CurrentPanelCulture)%>   ">
        </a>
      
     <a href="javascript:void()" id="A8" class=" icons icon_down azw_margin_rl_1per UpRaise" title="   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_UpNews", CurrentPanelCulture)%>   ">
    </a>
    <a  href="javascript:void()" id="A52" class=" icons icon_up azw_margin_rl_1per DownRaise" title="   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_DownNews", CurrentPanelCulture)%>  ">
    </a>
        
        <a href="#"   id="Search" class=" icons icon_srch azw_margin_rl_1per searchRec " objname="News_NewsAccess"
            searchtype="Dynamic" title="<%=HttpContext.GetGlobalResourceObject("Announcement", "searchRecTootip", CurrentPanelCulture)%>"></a><a   href="#" onclick="printpage()" class=" icons icon_prnt azw_margin_rl_1per"
                title="<%=HttpContext.GetGlobalResourceObject("Announcement", "printRecTootip", CurrentPanelCulture)%>   "></a>
    <div class="azw_float_l azw_25per">
        <div class="icons icon_language">
        </div>
        <span>    <%=HttpContext.GetGlobalResourceObject("Announcement", "Language", CurrentPanelCulture)%>  : </span>
        <select id="dataLanguage" class="azw_font_9pt azw_input_normalgray azw_65per azw_border_1px_lightgray azw_margin_3px">
        </select>
    </div>
</h1>
 <input type="hidden" id="IdTelerik" value="" />
<script type="text/javascript">

    // $('#newRec').click(function() { ClearFields(); $('.azw_main_modal').fadeIn('medium'); })
    $('.azw_modal_btncncl').click(function() { $('.azw_main_modal').fadeOut('medium'); })
    $('.azw_modal_close').click(function() { $('.azw_main_modal').fadeOut('medium'); })

    $(function() {
        $("#azw_modal").draggable({ handle: ".azw_modal_header" });
        $("#azw_modal").resizable({

            animate: false,
            maxHeight: 790,
            maxWidth: 950,
            minHeight: 790,
            minWidth: 610
        });
        $("#azw_modal").width(600);

    });

</script>

<div class="azw_row azw_mar_tb_5px azw_font_9pt ">
    <div class="azw_row">
        <span class="azw_float">   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_GroupDrp", CurrentPanelCulture)%>  : </span>
        <select id="drpNewsGroup" class=" azw_20per azw_input_normalgray ">
        </select>
    </div>
    <div id="printpage_area">
        <table id="tblNews_News" style="display: none">
        </table>
    </div>
    <div id="dialog3">
    </div>
    <div class="azw_main_modal">
        <div id="azw_modal">
            <div class="azw_modal_content">
                <div class="azw_modal_header ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span id="ui-id-1" class="ui-dialog-title"><%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_ModalHeader", CurrentPanelCulture)%>   : </span><a href="#" class="ui-dialog-titlebar-close ui-corner-all azw_modal_close"
                        role="button"></a><span class="ui-icon ui-icon-closethick azw_modal_close"><%=Resources.Announcement.Close%></span></div>
                    <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A111" title="<%=HttpContext.GetGlobalResourceObject("Announcement", "Status", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("Announcement", "Status", CurrentPanelCulture)%>  :<span class="azw_font_color_red">*</span> </span>
                    <label for="rdoStatusActive">
                          <%=HttpContext.GetGlobalResourceObject("Announcement", "Active", CurrentPanelCulture)%>   </label>
                    <input type="radio" id="rdoStatusActive" class="" name="rdoStatus" value="0" />
                    <label for="rdoStatusDeActive">
                        <%=HttpContext.GetGlobalResourceObject("Announcement", "Deactive", CurrentPanelCulture)%> </label>
                    <input type="radio" id="rdoStatusDeActive" tabindex="6" class="TabOnEnter" name="rdoStatus"
                        value="1" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per">
                    <a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A1" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsTitleToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsTitle", CurrentPanelCulture)%>   : </span>
                    <input id="NewsTitle" maxlength="200" tabindex="0" type="text" class="TabOnEnter azw_input_normalgray azw_border_1px_gray azw_70per" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"> <a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A2" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsBriefToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsBrief", CurrentPanelCulture)%>   :</span>
                    <textarea id="NewsBrief" tabindex="1" class="TabOnEnter azw_input_normalgray azw_border_1px_gray azw_70per"></textarea>
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt" >
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A3" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsDetailToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsDetail", CurrentPanelCulture)%>  : </span>
                
 
                
            
                
               
                    <telerik:RadEditor TabIndex="2" CssClass="TabOnEnter RadEditorTelerik" AllowScripts="true" OnClientLoad="OnClientLoad"   ID="NewsDetail" runat="server"
                        Width="95%">
                        <DocumentManager UploadPaths="~/Editor/UploadFiles/News/Pic/" ViewPaths="~/
                        /News/Pic/" DeletePaths="~/Editor/UploadFiles/News/Pic/" />
                        <Content>
                        </Content>
                        <CssFiles>
                            <telerik:EditorCssFile Value="~/css/Azw_editor.css" />
                        </CssFiles>
                        <FlashManager UploadPaths="~/Editor/UploadFiles" ViewPaths="~/Editor/UploadFiles/News/Pic/"
                            DeletePaths="~/Editor/UploadFiles/News/Pic/" />
                        <ImageManager UploadPaths="~/Editor/UploadFiles/News/Pic/" ViewPaths="~/Editor/UploadFiles/News/Pic/"
                            DeletePaths="~/Editor/UploadFiles/News/Pic/" />
                        <MediaManager UploadPaths="~/Editor/UploadFiles/News/Pic/" ViewPaths="~/Editor/UploadFiles/News/Pic/"
                            DeletePaths="~/Editor/UploadFiles/News/Pic/" />
                    </telerik:RadEditor>
                
               
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <%--  <telerik:RadEditor runat="server" ID="NeswDescription"></telerik:RadEditor>--%>
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A4" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_SeoKeywordsToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>    <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_SeoKeywords", CurrentPanelCulture)%>   : </span>
                    <input id="SeoKeywords" maxlength="150" type="text" tabindex="3" class="TabOnEnter azw_input_normalgray azw_border_1px_gray azw_70per" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A5" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_SeoDescriptionToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_SeoDescription", CurrentPanelCulture)%>  : </span>
                    <input id="SeoDescription" maxlength="160" type="text" tabindex="4" class="TabOnEnter azw_input_normalgray azw_border_1px_gray azw_70per" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt" style="display: none;">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A6" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_RaiseCounterToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_RaiseCounter", CurrentPanelCulture)%>  : </span>
                    <input id="RaiseCounter" value="1" type="text" tabindex="5" class="TabOnEnter azw_input_normalgray azw_border_1px_gray azw_70per" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A7" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_RaiseDateToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_RaiseDate", CurrentPanelCulture)%>   : </span><span id="displayRaiseDate" class="display_area cursor_pointer  azw_h_17px azw_border_1px_lightgray azw_20per azw_font_9pt azw_font_color_darkgray">
                    </span>
                    <input type="hidden" id="date_input_RaiseDate" name="date" />
                </div>
            
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A9" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsPicToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>    <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_NewsPic", CurrentPanelCulture)%>   : </span>
                    <input type="button" id="UploadButtonSingleFile"
                        FilePath="News" HaveThumbnail="true" Width="82" Height="30" class="UploadButton icon_upload" />
                    <div id="UploadStatus">
                    </div>
                    <div id="UploadedFile">
                    </div>
                    <input type="hidden" value="" id="hdnFileList" />
                </div>
                <div class="azw_row azw_mar_tb_5px azw_font_9pt">
                    <span class="azw_25per"><a href="javascript:void()" class="azw_normalTip attention_icon"
                                id="A10" title="<%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_HotNewsToolTip", CurrentPanelCulture)%>">
                                &nbsp;</a>   <%=HttpContext.GetGlobalResourceObject("CoreModule", "Pnl_News_News_HotNews", CurrentPanelCulture)%> : </span>
                    <input id="HotNews" type="checkbox" class=" azw_input_normalgray azw_border_1px_gray " />
                </div>
                <div class="ui-dialog-buttonset  azw_border_top_1px_gray azw_float azw_row azw_mar_tb_5px">
                    <button type="button" title="Press 'S' to save" id="btnsave" class=" azw_modal_btnok ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                        role="button" aria-disabled="false">
                        <span class="ui-button-text">   <%=HttpContext.GetGlobalResourceObject("Announcement", "Save", CurrentPanelCulture)%> </span></button>
                    <button type="button" title="Press 'X' to Cancel" class="azw_modal_btncncl ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                        role="button" aria-disabled="false">
                        <span class="ui-button-text">   <%=HttpContext.GetGlobalResourceObject("Announcement", "Cancel", CurrentPanelCulture)%> </span></button>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {

        $(document).on("keypress", ".TabOnEnter", function(e) {
            //Only do something when the user presses enter
            if (e.keyCode == 13) {

                var nextElement = $('input[tabindex="' + (this.tabIndex + 1) + '"]');

                if (nextElement.length)
                    nextElement.focus();
                //                else
                //                    $('input[tabindex="1"]').focus();
            }
        })
        //        $(".TabOnEnter").keypress(function(event) {
        //            if (event.keyCode == 13) {
        //                textboxes = $("input.TabOnEnter");
        //                debugger;
        //                currentBoxNumber = textboxes.index(this);
        //                
        //                if (textboxes[currentBoxNumber + 1] != null) {
        //                    nextBox = textboxes[currentBoxNumber + 1]
        //                    nextBox.focus();
        //                    nextBox.select();
        //                    event.preventDefault();
        //                    return false
        //                }
        //            }
        //        });
    })
</script>

<script type="text/javascript">

    var prefCulure = $("#hdnLanguageCulture").val();
    if (prefCulure == "fa-IR") {
        Calendar.setup({
            inputField: "date_input_RaiseDate",   // id of the input field
            displayArea: 'displayRaiseDate',
            ifFormat: "%m/%d/%Y",       // format of the input field
            dateType: 'jalali',
            ifDateType: 'gregorian',
            weekNumbers: false
        });
    } else {

        Calendar.setup({
            inputField: "date_input_RaiseDate",   // id of the input field
            displayArea: 'displayRaiseDate',
            ifFormat: "%m/%d/%Y",       // format of the input field
            dateType: 'gregorian',
            ifDateType: 'gregorian',
            weekNumbers: false
        });
    }

    $(document).ready(function() {
        //start shortcut keys

        var isalt = false;
        document.onkeyup = function(e) {
            e = e || window.event;
            var keyCode = e.keyCode || e.which;

            if (keyCode == 18) {
                isalt = false;
            }
            if (keyCode == 16) {
                isalt = false;
            }

        }
        document.onkeydown = function(e) {
            e = e || window.event;
            var keyCode = e.keyCode || e.which;
            if (keyCode == 18) {
                isalt = true;

            }

            if (keyCode == 27) {
                closemodal(); isalt = false;
            }
            /*if (keyCode == 88 && isalt == true) {
            closemodal(); isalt = false;
            }*/
            else if (keyCode == 71 && isalt == true) {
                // checkall() ; isalt = false;
            }
            else if (keyCode == 68 && isalt == true) {
                deleteselectedrow(); isalt = false;
            }
            else if (keyCode == 78 && isalt == true) {
                newrow(); isalt = false;
            }
            else if (keyCode == 69 && isalt == true) {
                editrow(); isalt = false;
            }
            else if (keyCode == 80 && isalt == true) {
                printpage(); isalt = false;
            }
        }

        // end shortcut keys

        //----------------- SaveBtnClick
        function saverow() {

            var hdnGuidRecID = $("#hdnGuidRecID").val();
            var editor = $find("<%= NewsDetail.ClientID%>");

            var NewsDetail = editor.get_html();




            $("#NewsDetailContent").empty().append(NewsDetail);


            if (hdnGuidRecID == "") {  // Insert
                AjaxSubmit("insert", "News_News", "azw_main_modal");
            } else { // Update
                AjaxSubmit("update", "News_News", "azw_main_modal");
            }
        }
        $('#btnsave').click(function() {
            saverow();
        })


        // --------------------End Save Click

        //  new nicEditor({ fullPanel: true }).panelInstance('AreaEdit');

        $('#dataLanguage').change(function() {
            LoadNewsGroup('Reload');

        })
        $('#drpNewsGroup').change(function() {

            ReloadGrid();
        })

       

        ShowAjaxByID("selectDataLanguage", "dataLanguage");

        $(".UpRaise").click(function() {

            if ($('.trSelected').length > 0 && $('.trSelected').length == 1) {

                UpRaiserow();
            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }

        })


        $(".DownRaise").click(function() {
            if ($('.trSelected').length > 0 && $('.trSelected').length == 1) {

                DownRaiserow();
            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }

        })


        $(".sendnews").click(function() {
            if ($('.trSelected').length > 0) {

                SendNewsLetter();
            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }

        })

        function newrow() {
            var fk_News_Group = $('#drpNewsGroup').val();

            CheckAccessDynamics("News_NewsAccess", fk_News_Group, "insert");
            $('#rdoStatusActive').attr('checked', 'checked');
        }

        $(".newRec").click(function() {
            newrow();
        })

        function editrow() {
            if ($('.trSelected').length > 0 && $('.trSelected').length == 1) {

                var fk_News_Group = $('#drpNewsGroup').val();

                CheckAccessDynamics("News_NewsAccess", fk_News_Group, "edit");

            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }
        }
        $(".editRec").click(function() {
            editrow();
        })



        function UpRaiserow() {

            if ($('.trSelected').length > 0 && $('.trSelected').length == 1) {

                var fk_News_Group = $('#drpNewsGroup').val();

                CheckAccessDynamics("News_NewsAccess", fk_News_Group, "editUpOrderID");


            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }
        }


        function DownRaiserow() {

            if ($('.trSelected').length > 0 && $('.trSelected').length == 1) {

                var fk_News_Group = $('#drpNewsGroup').val();

                CheckAccessDynamics("News_NewsAccess", fk_News_Group, "editDownOrderID");


            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }
        }

        function SendNewsLetter() {

            if ($('.trSelected').length > 0) {

                var fk_News_Group = $('#drpNewsGroup').val();

                CheckAccessDynamics("News_NewsAccess", fk_News_Group, "sendnewsletter");


            } else {

                ShowAlert(RowSelectError["Select_onerow"], "Error", 'True');
            }
        }


        function closemodal() {
            $('.azw_main_modal').fadeOut('medium');
            $('.ui-widget-overlay').fadeOut('medium');
            $('.ui-dialog').fadeOut('medium');
        }

        function deleteselectedrow() {
            if ($('.trSelected').length > 0) {
                var fk_News_Group = $('#drpNewsGroup').val();
                CheckAccessDynamics("News_NewsAccess", fk_News_Group, "del");
            }
            else {
                ShowAlert(RowSelectError["Select_row"], "Error", 'True');
            }
        }
        $(".deleteRec").click(function() {
            deleteselectedrow()
        })

    });

    // Start Sort Function -->    
    function sortAlpha(com) {
        $('#tblNews_News').flexOptions({ newp: 1, params: [{ name: 'letter_pressed', value: com }, { name: 'qtype', value: $('select[name=qtype]').val()}] });
        $("#tblNews_News").flexReload();
    }

    // End Sort Function -->            


    // End btns  Function -->


    function GetSelectedRowData(guidRow, ElementID) {
        if (ElementID == "News_News") {
            $.ajax({
                type: "POST",
                url: "Modules/News/Handler/NewsNewsHandler.ashx",
                data: { Mod: 'getRowInfo', guidRow: guidRow },
                cache: false,
                success: function(data) {
                    var json = $.parseJSON(data);
                    $(json).each(function(i, val) {
                        $.each(val, function(k, v) {


                            if (k == "NewsDetail") {
                                var editor = $find("<%= NewsDetail.ClientID%>");

                                editor.set_html(v);
                            }

                            else if (k == "NewsTitle")
                            { $('#NewsTitle').val(v); }

                            else if (k == "NewsBrief")
                            { $('#NewsBrief').val(v); }

                            else if (k == "NewsPic") {
                                //                                $("#hdnFileList").val(v);
                                // Todo Add File List
                                SetUploadField(v);
                            }

                            else if (k == "RaiseDate") {

                                SetDateByCultureForCalendar(v, "displayRaiseDate", "date_input_RaiseDate");
                            }

                            else if (k == "RaiseCounter")
                            { $('#RaiseCounter').val(v); }

                            else if (k == "HotNews") {
                                if (v.toString() == 'true')
                                    $('#HotNews').attr('checked', 'checked')
                                else
                                    $('#HotNews').removeAttr('checked')

                            }

                            else if (k == "SeoKeywords")
                            { $('#SeoKeywords').val(v); }

                            else if (k == "GuidNews_News")
                            { $('#hdnGuidRecID').val(v); }

                            else if (k == "seoDescription") {

                                $('#SeoDescription').val(v);
                            }
                            else if (k == "Status") {
                                if (v.toString() == "1")
                                    $('#rdoStatusDeActive').attr('checked', 'checked');
                                else
                                    $('#rdoStatusActive').attr('checked', 'checked');
                            }
                        });
                    });
                }
            });
        }
    }


//    Sys.Application.add_load(function() {
//        var editor = $find("<%=NewsDetail.ClientID%>"); //get a reference to RadEditor's client object
//        alert(editor.get_id()); //returns RadEditor Client ID
//    }
//);

    function ClearFields() {

        $('#hdnGuidRecID').val("");
        $('#NewsTitle').val("");
        $('#NewsBrief').val("");

        var id = $('#IdTelerik').val();
       
      var editor = $find(id);
       
        editor.set_html("");

 // alert($('.RadEditorTelerik').attr("ID"));

      
     //  $find("<%= NewsDetail.ClientID%>").set("html", "loading...")


        
        clearUploadField();
        $('#date_input_RaiseDate').val("");
        $('#RaiseCounter').val("1");
        $('#HotNews').removeAttr('checked')
        $('#SeoKeywords').val("");
        $('#SeoDescription').val("");

        ClearDateByCultureForCalendar("displayRaiseDate", "date_input_RaiseDate")


    }

    // End Check All Checkbox -->

    function ShowAjaxByID(Mod, ContentName) {

        if (Mod == "selectDataLanguage") {

            $('#' + ContentName).empty().append('<center>Loading ... <img src=Images/loading.gif></center>');

            $.ajax({
                type: "POST",
                url: "CoreModule/Handler/LanguageHandler.ashx",
                data: { Mod: Mod },
                cache: false,
                success: function(data) {

                    var jsonList = eval("(" + data + ")");

                    var listItems = "";

                    for (var i = 0; i < jsonList.length; i++) {

                        listItems += "<option value='" + jsonList[i].GuidLanguage + "'>" + jsonList[i].LanguageName + "</option>";
                    }

                    $('#' + ContentName).empty().append(listItems);
                    // Set DefaultLanguage Selected
                    try {
                        $('#' + ContentName).val($('#hdnLanguagePanelID').val());
                    } catch (e) {
                    }

                    LoadNewsGroup('load');
                }
            });
        }
    }

    function LoadNewsGroup(strAction) {

        $('#drpNewsGroup').empty().append('<center>Loading ... <img src=Images/loading.gif></center>');
        var Loadfk_Language = $('#dataLanguage').val()  //; $('#dataLanguage').find("option:selected").text();

        $.ajax({
            type: "POST",
            url: "Modules/News/Handler/NewsGroupHandler.ashx",
            data: { Mod: 'SelectNewsGroup', fk_Language: Loadfk_Language },
            cache: false,
            success: function(data) {

                var jsonList = eval("(" + data + ")");

                var listItems = "";

                for (var i = 0; i < jsonList.length; i++) {

                    listItems += "<option value='" + jsonList[i].GuidNews_Group + "'>" + jsonList[i].GroupName + "</option>";
                }

                $('#drpNewsGroup').empty().append(listItems);
                if (strAction == 'load')
                    LoadGrid();
                else
                    ReloadGrid();
            }
        });


    }



    function ReloadGrid() {

        var fk_NewsGroup = $('#drpNewsGroup').val()  //; $('#dataLanguage').find("option:selected").text();
        if (fk_NewsGroup == null)
            fk_NewsGroup = "";
        //$("#tblNews_News").flexOptions({ params: [{ name: 'id', value: 23 }, { name: 'area', value: 'anywhere'}] }).flexReload();
        $("#tblNews_News").flexOptions({ url: 'Modules/News/Handler/NewsNewsHandler.ashx?fk_NewsGroup=' + fk_NewsGroup }).flexReload();

    }
    function LoadGrid() {

        var fk_NewsGroup = $('#drpNewsGroup').val();
        if (fk_NewsGroup == null)
            fk_NewsGroup = "";

        var arStatus = { 0: strstatus["Active"], 1: strstatus["DeActive"] };

        $("#tblNews_News").flexigrid({
            /*    p:{det:tre}*/

            url: 'Modules/News/Handler/NewsNewsHandler.ashx?fk_NewsGroup=' + fk_NewsGroup,


            // ----- if set searchable=false this item will not show in search dropdown but if searchable=true or dosent set any value this item  show in search dropdown

            //------ if set editable=true this item will show in edit box but if editable=false  or dosent set any value this item doesnt show in edit box

            dataType: 'json',
            colModel: [
                                { display: 'GuidNews_News', name: 'GuidNews_News', width: 40, sortable: true, align: 'center', hide: true, datatype: 'numeric', searchable: 'false' },
                                { display: newsnews["NewsTitle"], name: 'NewsTitle', width: 200, sortable: true, align: 'center', datatype: 'string', searchable: 'true', editable: 'true' },
                                { display: newsnews["NewsBrief"], name: 'NewsBrief', width: 200, sortable: true, align: 'center', datatype: 'string', searchable: 'true', editable: 'true' },
                                { display: newsnews["NewsPic"], name: 'NewsPic', width: 100, sortable: true, align: 'center', datatype: 'pic', searchable: 'true', editable: 'true' },
                                { display: newsnews["OrderID"], name: 'OrderID', width: 100, sortable: true, align: 'center', datatype: 'string', searchable: 'true', editable: 'true' },
                                { display: newsnews["RaiseDate"], name: 'RaiseDate', width: 100, sortable: true, align: 'center', datatype: 'date', searchable: 'true', editable: 'true' },
                                { display: newsnews["Status"], name: 'Status', width: 40, sortable: true, align: 'center', datatype: 'select', searchable: 'true', editable: 'true', dropval: arStatus }

                          ],

            searchitems: [

                ],

            sortname: "OrderID",
            sortorder: "desc",
            usepager: true,
            usechkboxcol: true,
            userownumcol: true,
            title: newsnews["GridTitle"], // Mauin Title For Gride for Grid
            useRp: true,
            rpOptions: [10, 20, 30, 40, 50],
            rp: 10, //------ set default for number of rows in page
            onDragCol: false,
            showTableToggleBtn: true, // There is icon For minimize and maximize Gride
            width: 960, //  Default Width of table-->
            height: 350 //  Default Height of table-->
        });
    }



    function AjaxSubmit(Mod, objectName, ModalID) {

        var strdata = "%";
        if (Mod == "insert") {

            if (objectName == 'News_News') {

                var NewsTitle = $('#NewsTitle').val();
                var NewsBrief = $('#NewsBrief').val();
                var NewsDetail = $("#NewsDetailContent").html();
                var NewsPic = $("#hdnFileList").val();
                var RaiseDate = $('#date_input_RaiseDate').val();
                var RaiseCounter = $('#RaiseCounter').val();
                var HotNews = $('#HotNews').is(':checked')
                var SeoKeywords = $('#SeoKeywords').val();
                var seoDescription = $('#SeoDescription').val();

                var Status = $("input:radio[name='rdoStatus']:checked").val();
                var fk_News_Group = $('#drpNewsGroup').val();

                $.ajax({
                    type: "POST",
                    url: "Modules/News/Handler/NewsNewsHandler.ashx",
                    data: { Mod: Mod, NewsTitle: NewsTitle, NewsBrief: NewsBrief, NewsDetail: NewsDetail, fk_News_Group: fk_News_Group, NewsPic: NewsPic, RaiseDate: RaiseDate, RaiseCounter: RaiseCounter, HotNews: HotNews, SeoKeywords: SeoKeywords, seoDescription: seoDescription },
                    cache: false,
                    success: function(data) {
                        var splitedData = data.toString().split("%");
                        if (splitedData[0] == "success") {
                            ClearFields();
                            $('.azw_main_modal').fadeOut('medium');
                            $("#tblNews_News").flexReload();
                        }

                        else {
                               ShowAlert(splitedData[1], "Info", 'True');
                        }
                    }
                });
            }
        }
        else if (Mod == "update") {

            if (objectName == 'News_News') {


                var NewsTitle = $('#NewsTitle').val();
                var NewsBrief = $('#NewsBrief').val();

                var NewsDetail = $("#NewsDetailContent").html();
                var NewsPic = $("#hdnFileList").val();
                var RaiseDate = $('#date_input_RaiseDate').val();
                var RaiseCounter = $('#RaiseCounter').val();
                var HotNews = $('#HotNews').is(':checked')
                var SeoKeywords = $('#SeoKeywords').val();
                var seoDescription = $('#SeoDescription').val();
                var Status = $("input:radio[name='rdoStatus']:checked").val();
                var fk_News_Group = $('#drpNewsGroup').val();
                var guidRow = $('#hdnGuidRecID').val();


                $.ajax({
                    type: "POST",
                    url: "Modules/News/Handler/NewsNewsHandler.ashx",
                    data: { Mod: Mod, guidRow: guidRow, NewsTitle: NewsTitle, NewsBrief: NewsBrief, NewsDetail: NewsDetail, fk_News_Group: fk_News_Group, NewsPic: NewsPic, RaiseDate: RaiseDate, RaiseCounter: RaiseCounter, HotNews: HotNews, SeoKeywords: SeoKeywords, seoDescription: seoDescription },
                    cache: false,
                    success: function(data) {
                        var splitedData = data.toString().split("%");
                        if (splitedData[0] == "success") {
                            ClearFields();
                            $('.azw_main_modal').fadeOut('medium');
                            $("#tblNews_News").flexReload();
                        }
                        else {
                               ShowAlert(splitedData[1], "Info", 'True');
                        }
                    }
                });
            }

        }

        return strdata;
    }

 
</script>

<script src="Js/Global/ajaxupload.js" type="text/javascript"></script>

<script src="Js/Global/UploadSingleFile.js" type="text/javascript"></script>

<script type="text/javascript">
    Telerik.Web.UI.Editor.CommandList["RTL"] = function(commandName, editor, args) {
        var oElem = editor.getSelectedElement();

        if (oElem && oElem.tagName == "P") {
            oElem.setAttribute("dir", "rtl");
            oElem.style.textAlign = "right";
        }
        else if (editor.getSelectionHtml())//There is some selection
        {

            var toPaste = "<p dir='rtl' style='text-align: right'>" + editor.getSelectionHtml() + "</p>";
            editor.pasteHtml(toPaste);
        }
        if (oElem && oElem.tagName == "BODY") {
            oElem.setAttribute("dir", "rtl");
            oElem.style.textAlign = "right";
        }
        else if (editor.getSelectionHtml())//There is some selection
        {

            var toPaste = "<BODY dir='rtl' style='text-align: right'>" + editor.getSelectionHtml() + "</BODY>";
            editor.pasteHtml(toPaste);
        }
    };

    Telerik.Web.UI.Editor.CommandList["LTR"] = function(commandName, editor, args) {
        var oElem = editor.getSelectedElement();

        if (oElem && oElem.tagName == "P") {

            oElem.setAttribute("dir", "ltr");
            oElem.style.textAlign = "left";
        }
        else if (editor.getSelectionHtml())//There is some selection
        {

            var toPaste = "<p dir='ltr' style='text-align: left'>" + editor.getSelectionHtml() + "</p>";
            editor.pasteHtml(toPaste);
        }

        if (oElem && oElem.tagName == "BODY") {

            oElem.setAttribute("dir", "ltr");
            oElem.style.textAlign = "left";
        }
        else if (editor.getSelectionHtml())//There is some selection
        {

            var toPaste = "<BODY dir='ltr' style='text-align: left;'>" + editor.getSelectionHtml() + "</BODY>";
            editor.pasteHtml(toPaste);
        }
    };
</script>

<div id="NewsDetailContent" style="display: none">
</div>
  <script src="Js/Global/azw_tooltip.js" type="text/javascript"></script>
 
  <script type="text/javascript">
      function OnClientLoad(editor, args) {
         // editor.attachEventHandler("onkeydown", function(e) {
        //  alert(editor.get_id());
          $('#IdTelerik').val(editor.get_id());
      }
</script>




and i load my user control from page bellow


sing System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using AZWFramework.Framework;

namespace AZWCMS.Web.UI.CoreModule.Pages
{
    public partial class Showmodule : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadContent();
        }

        private void LoadContent()
        {
            try
            {
                UserControl uc = new UserControl();
                switch (Request.QueryString["Mid"].ToLower())
                {


                 
                    case "newsgrouplist":
                        uc = (UserControl)Page.LoadControl("~/Modules/News/Management/ManageNewsNews.ascx");
                        plcTabs.Controls.Add(uc);
                        litMid.Text = "<input type=\"hidden\" id=\"hdnSeletedTemplate\" value=\"news_template\" />";
                        break;
                  
                    default:
                        break;
                }

            }
            catch (Exception)
            {
            }
        }
    }
}


------please help me





Hosein
Top achievements
Rank 1
 asked on 26 Jun 2013
9 answers
234 views
I do not like this Download Conrol Center.

How do you download previous versions?    Please go back to the old way or put a link where we can find the download options.
Missing User
 answered on 25 Jun 2013
1 answer
74 views
Some minor suggestions:

1) sub-skins for menus.   i.e be able to specify a different skin for each menu level without creating custom skins.  This would be handy especially when the topmost menu is defined with the transparent skin but you want the submenus to have some zazz...  For now css styling works fine but would be nice to eventually be able to quickly change skins to one of the defined ones on the fly. (yes I know this would probably  be a major pain to implement :P )

2) radwindows positioning.  Currently you can anchor said window to a parent element, but it would be nice when the parent moves (from the user changing the browser size), the radwindow moves with it.  ie. if page is defined with auto margin to center in browser, resizing the browser will move everything except the rad window :<   

3) radwindow position viewstate.  if a page is reloaded it would be nice if the control could keep its previous position (user positioned) rather than resetting to its default position.  this could be done with temporary cookies but would be nice to have the feature built in.

Thanks.  - H .'.
Ivan Zhekov
Telerik team
 answered on 21 Jun 2013
3 answers
176 views

Hi,

 I have a question for all of you. Since you are all serious programmers I figure this is the right forum for this question.

 My boss has (after about 6 months of nagging) given me about 5000 USD to purchase a new computer. Since I love programming and could not care less about hardware I don’t know how to get the most ‘bang for the buck’.

What should I focus on, processor, ram or what?

Any great ideas?

Regards

Kalle, Sweden

Troy
Top achievements
Rank 1
 answered on 13 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?