Telerik Forums
Community Forums Forum
0 answers
128 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
164 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
317 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
106 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
221 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
0 answers
79 views
We are seeking a developer or small team of developers who are experienced developing HTML5 + PhoneGap Mobile applications using the KendoUI Application framework and UI toolkits.

We have very complete UX/UI documentation and need a team or very experienced developer for the application development.

We are working with another team on the server components as this requires a different skill set, so this would only be the mobile portion of the project.

Please describe your experience with the following:
- PhoneGap
- PhoneGap Build Service
- KendoUI Mobile UI Toolkit
- KendoUI Mobile Application Framework

Please include your average or expected hourly rates as well.

You can email me at a-n-t-h-o-n-y at monition partners dot com (without the spaces or dashes).

Thank you,

Anthony
Anthony
Top achievements
Rank 1
 asked on 08 Jun 2013
4 answers
322 views
Hi Telerik Team,
How to Export asp:Repeater including RadHtmlChart and RadGrid to Excel in C# in Code Behind or JQUERY?
I am trying to export some data to Excel and my code is as below:
<asp:Repeater ID="repeaterStandardQuestion" runat="server" OnItemDataBound="repeaterStandardQuestion_ItemDataBound">
    <ItemTemplate>
        <div style="border: solid">
            <table>
                <tr>
                    <td>
                        <div style="text-align: left">
                            <asp:Label ID="lblTitleStandardQuestion" runat="server" />
                        </div>
                        <telerik:RadHtmlChart runat="server" ID="radHtmlChartStandardQuestion" Transitions="true" Width="400px" Height="200px" RegisterWithScriptManager="true">
                            <PlotArea>
                                <Series>
                                    <telerik:BarSeries Name="Average" DataFieldY="PercentageAccepted">
                                        <TooltipsAppearance DataFormatString="{0:##.##}%"></TooltipsAppearance>
                                        <LabelsAppearance DataFormatString="{0:##.##}%" Position="Center"></LabelsAppearance>
                                        <Appearance FillStyle-BackgroundColor="LightBlue"></Appearance>
                                    </telerik:BarSeries>
 
                                </Series>
                                <XAxis DataLabelsField="Name">
                                    <MajorGridLines Visible="false" />
                                    <MinorGridLines Visible="false" />
                                </XAxis>
                                <YAxis MaxValue="100">
                                    <LabelsAppearance DataFormatString="{0:#}%"></LabelsAppearance>
                                    <MinorGridLines Visible="false"></MinorGridLines>
                                    <MajorGridLines Visible="false" />
                                </YAxis>
                            </PlotArea>
                            <Legend>
                                <Appearance Position="Bottom" Visible="false" />
                            </Legend>
                        </telerik:RadHtmlChart>
                    </td>
                    <td>
                        <telerik:RadGrid ID="radGridStandardQuestion" runat="server" AutoGenerateColumns="false" Width="200px">
                            <MasterTableView>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Name" HeaderText="Answer Choices" HeaderStyle-Font-Bold="true"></telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Responses" HeaderStyle-Font-Bold="true">
                                        <ItemTemplate>
                                            <%#GetPercentage( Convert.ToDouble(Eval("PercentageAccepted"))) %>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="NumberAccepted" HeaderText=""></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
        </div>
        <br />
    </ItemTemplate>
</asp:Repeater>

Regards
Antoine Sweid
Antoine
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
127 views
Hello, has anyone ever come across a way to report on which projects in TFS are using some type of Telerik controls such that you can determine by project name the telerik/kendo control name and version used?

Thanks,
Jon
Teodor
Telerik team
 answered on 22 May 2013
1 answer
137 views
Sir/Mam,

I am adding telerik treeview in radpane inside radsliding zone dynamically whenever i re size it inwards i.e if i re size it and reduce its width then it distorts i.e it breaks half and we can see page behind it form half of its region and it sets properly if we again re size and increase its width.

summing up..Radsliding zone gets broken when we re size the radsliding zone and reduce its width 
I am not able to attach screenshot here otherwise it would have been more clear.

hopefully i'll get your help soon..


Best Regards,

Chandrashekar A Menga
Vessy
Telerik team
 answered on 22 May 2013
0 answers
144 views
%@ Page Language="VB" AutoEventWireup="false" CodeFile="Daily.aspx.vb" Inherits="Daily" %> <%@ 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"> <%@ Register Assembly="RJS.Web.WebControl.PopCalendar" Namespace="RJS.Web.WebControl" TagPrefix="rjs" %> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">   <title>Daily Fuel Log</title>   <style type="text/css" media="print">     ..noprint {DISPLAYnone}   </style> </head> <body>     <form id="form1" runat="server">          <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager>       <center>         <asp:Menu ID="MenuAvDaily" CssClass="noprint" runat="server" Orientation="Horizontal">           <StaticMenuStyle BackColor="#0066CC" BorderColor="#0066CC" BorderStyle="Outset" HorizontalPadding="10px"             VerticalPadding="4px" />           <StaticMenuItemStyle BackColor="#0066CC" BorderStyle="None" BorderWidth="0px" Font-Size="Smaller"             ForeColor="White" />           <DynamicHoverStyle Font-Bold="True" />           <Items>             <asp:MenuItem NavigateUrl="~/NewAircraft.aspx" Text="Planes" Value="Planes"></asp:MenuItem>                          <asp:MenuItem Text="Reports"  Value="Reports" Selectable="False">               <asp:MenuItem Text="Bulk Plant" Value="Daily" NavigateUrl="~/ReportBulkPlant.aspx"></asp:MenuItem>               <asp:MenuItem Text="Monthly" Value="Fuel Report" NavigateUrl="~/ReportFuelByPlane.aspx"></asp:MenuItem>               <asp:MenuItem Text="Fuel Used" Value="Fuel Used" NavigateUrl="~/ReportFuelUsed.aspx"></asp:MenuItem>               <asp:MenuItem Text="Fuel Received" Value="Fuel Received" NavigateUrl="~/ReportFuelReceived.aspx"></asp:MenuItem>             </asp:MenuItem>             <asp:MenuItem Text="Exit" Value="Exit"></asp:MenuItem>           </Items>           <StaticHoverStyle Font-Bold="True" />         </asp:Menu>         &nbsp;</center>       <center>         <asp:Label ID="Label1" runat="server" Text="My Aviation Daily Fuel Log" ForeColor="#0066CC" Font-Bold="True" Font-Size="X-Large" Font-Underline="True" ></asp:Label>       </center>       telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">   <AjaxSettings>     <telerik:AjaxSetting AjaxControlID="RadGrid1">       <UpdatedControls>         <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />       </UpdatedControls>     </telerik:AjaxSetting>   </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="EntityDataSourceCustomers"   GridLines="None" AllowPaging="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True"   AllowSorting="true" Width="750px" OnItemCreated="RadGrid1_ItemCreated">   <PagerStyle Mode="NextPrevAndNumeric" />   <MasterTableView DataSourceID="EntityDataSourceCustomers" AutoGenerateColumns="False"     DataKeyNames="PK" CommandItemDisplay="Top">     <Columns>       <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">       </telerik:GridEditCommandColumn>       <telerik:GridBoundColumn DataField="PK" HeaderText="PK" SortExpression="PK"         UniqueName="PK" Visible="false" MaxLength="5">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Plane" HeaderText="Plane" SortExpression="Plane"         UniqueName="Plane">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Fuel" HeaderText="Fuel" SortExpression="Fuel"         UniqueName="Fuel">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Total" HeaderText="Total" SortExpression="Total"         UniqueName="Total">       </telerik:GridBoundColumn>       <%--<telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" SortExpression="Phone"         UniqueName="Phone">       </telerik:GridBoundColumn> --%>     </Columns>     <EditFormSettings>       <EditColumn ButtonType="ImageButton" />     </EditFormSettings>   </MasterTableView> </telerik:RadGrid>       <center>         <br />          <%-- <clientsettings allowcolumnsreorder="True"                allowdragtogroup="True">                             </clientsettings>                             <mastertableview autogeneratecolumns="false"                commanditemdisplay="Bottom" datakeynames="PK" editmode="InPlace">                               <editformsettings captiondatafield="PK"                captionformatstring="Edit Connection: {0}" insertcaption="Add New Connection"                popupsettings-modal="true">                             <editcolumn uniquename="EditCommandColumn1"></editcolumn>                             <popupsettings modal="True"></popupsettings>                                           </editformsettings>                             <rowindicatorcolumn>                             <HeaderStyle Width="20px"></HeaderStyle>                             </rowindicatorcolumn>                                            <commanditemsettings exporttopdftext="Export to Pdf"></commanditemsettings>                             <expandcollapsecolumn visible="True">                             </expandcollapsecolumn>                                 <Columns>                                     <telerik:GridBoundColumn DataField="Plane" HeaderText="Plane" ReadOnly="true"                                          SortExpression="Key" UniqueName="Plane" Visible="false"                                          FilterControlAltText="Filter Plane column">                                     </telerik:GridBoundColumn>                                     <telerik:GridBoundColumn DataField="Fuel" HeaderText="Fuel"                                          ReadOnly="true" SortExpression="Fuel" UniqueName="Fuel"                                          FilterControlAltText="Filter Fuel column">                                     </telerik:GridBoundColumn>                                    <telerik:GridBoundColumn DataField="Total" HeaderText="Total"                                          ReadOnly="true" SortExpression="Total" UniqueName="Total"                                          FilterControlAltText="Filter Total column">                                     </telerik:GridBoundColumn>                                     <telerik:GridTemplateColumn AllowFiltering="False"                                          AndCurrentFilterFunction="Contains" AutoPostBackOnFilter="True"                                          ColumnEditorID="Inventory" CurrentFilterFunction="Contains"                                          DataField="Inventory" DataType="System.String"                                          FilterControlAltText="Filter Inventory column"                                          HeaderText="Inventory" UniqueName="Inventory">                                          <EditItemTemplate>                                             <telerik:RadTextBox ID="txtDecryptedString" runat="server" AllowCustomText="true"                                                   EnableLoadOnDemand="true" EnableScreenBoundaryDetection="true"                                                   Filter="contains" HighlightTemplatedItems="true" MarkFirstMatch="false"                                                   Text='<%# Bind("Inventory") %>' Width="100%">                                             </telerik:RadTextBox>                                             </EditItemTemplate>                                               <ItemTemplate>                                                   <div style="text-align: left">                                                   <asp:Label ID="Label2" runat="server" style="text-align:left"                                                            Text='<%# Bind("Inventory") %>'></asp:Label></div>                                               </ItemTemplate>                                          <HeaderStyle Width="100%" />                                       </telerik:GridTemplateColumn>                                 </Columns>                                 <commanditemsettings exporttopdftext="Export to PDF" />                                 <rowindicatorcolumn                filtercontrolalttext="Filter RowIndicator column">                                     <HeaderStyle Width="20px" />                                 </rowindicatorcolumn>                                 <expandcollapsecolumn                filtercontrolalttext="Filter ExpandColumn column">                                     <HeaderStyle Width="20px" />                                 </expandcollapsecolumn>                                 <editformsettings>                                     <editcolumn                filtercontrolalttext="Filter EditCommandColumn column">                                     </editcolumn>                                 </editformsettings>                             </mastertableview>                             <filtermenu enableimagesprites="False">                             </filtermenu>                             <headercontextmenu                cssclass="GridContextMenu GridContextMenu_Default">                             </headercontextmenu>                         </telerik:RadGrid>       </center>--%>     <%--<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Web20" GridLines="None" AllowPaging="True"   AllowSorting="True" Width="100%" OnNeedDataSource="RadGrid1_NeedDataSource"   OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand"   OnUpdateCommand="RadGrid1_UpdateCommand" AllowAutomaticDeletes="True"                AllowAutomaticInserts="True" AllowAutomaticUpdates="True"                AllowFilteringByColumn="True" AutoGenerateDeleteColumn="True"                AutoGenerateEditColumn="True" CellSpacing="0" ShowGroupPanel="True"                AutoGenerateColumns="False">   <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>       <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"            ReorderColumnsOnClient="True">           <Selecting AllowRowSelect="True" />           <Scrolling AllowScroll="True" UseStaticHeaders="True" />       </ClientSettings>   <MasterTableView DataKeyNames="PK" GridLines="None" Width="100%" CommandItemDisplay="Top">     <Columns>       <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete">       </telerik:GridButtonColumn>       <telerik:GridBoundColumn DataField="PK" HeaderText="PK" UniqueName="PK"         ReadOnly="True">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Date" HeaderText="Date" UniqueName="Date">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Fuel" HeaderText="Fuel" UniqueName="Fuel">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Gross" HeaderText="Gross" UniqueName="Gross">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Invoice" HeaderText="Invoice" UniqueName="Invoice">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Plane" HeaderText="Aircraft" UniqueName="Plane">       </telerik:GridBoundColumn>       <telerik:GridBoundColumn DataField="Inventory" HeaderText="Inventory" UniqueName="Inventory">       </telerik:GridBoundColumn>       <telerik:GridEditCommandColumn>       </telerik:GridEditCommandColumn>     </Columns>     <EditFormSettings ColumnNumber="2" CaptionFormatString="Edit details for Fuel for PK with ID {0}"       CaptionDataField="PK">       <FormTableItemStyle Wrap="False"></FormTableItemStyle>       <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>       <FormMainTableStyle CellSpacing="0" CellPadding="3" Width="100%" />       <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"         Height="110px" Width="100%" />       <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>       <FormStyle Width="100%" BackColor="#EEF2EA"></FormStyle>       <EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">       </EditColumn>       <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>     </EditFormSettings>     <ExpandCollapseColumn Visible="False">       <HeaderStyle Width="19px"></HeaderStyle>     </ExpandCollapseColumn> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>     <RowIndicatorColumn Visible="False">       <HeaderStyle Width="20px" />     </RowIndicatorColumn>   </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Web20"></HeaderContextMenu> </telerik:RadGrid>     %>           </form> </body> </html> 
HERMAN
Top achievements
Rank 1
 asked on 14 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?