Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
163 views
Hi

i did one project in telirik .I am using Radscriptmanager in master page .i gave cdnsettings to radscriptmanager .but i face problem that empty in browser .it's no display the controls i gave this in master .

 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
   <CdnSettings BaseUrl="http://my.favorite.cdn" BaseSecureUrl="https://my.favorite.cdn" TelerikCdn="Enabled" />
</telerik:RadScriptManager>

in my master  am using Radspilter in radspliter am calling one javascript method.

when ever am remove cdnsettings it's display the screen on borwser .than agin give cdnsetting that screen is not display

this my master page source 
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
<%@ 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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="Stylesheet" href="css/styles.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server"  EnableScriptCombine="True" EnableHandlerDetection="false" >
   <CdnSettings BaseUrl="http://my.favorite.cdn" BaseSecureUrl="https://my.favorite.cdn" TelerikCdn="Enabled" />
</telerik:RadScriptManager>
    <div style="height: 100%;" id="splitterContainer">
        <telerik:RadAjaxManager ID="radAjMan" runat="server" UpdatePanelsRenderMode="Inline"
            DefaultLoadingPanelID="logPan">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="horMenu">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="leftMenu" />
                        <telerik:AjaxUpdatedControl ControlID="horMenu" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:radformdecorator id="RadFormDecorator2" DecoratedControls="all" runat="server" decorationzoneid="ZoneID2"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
         <telerik:radformdecorator id="RadFormDecorator1" DecoratedControls="all" runat="server" decorationzoneid="ZoneID3"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
        <telerik:RadWindowManager ID="radWin" runat="server">
            <Windows>
                <telerik:RadWindow ID="defFacWnd" OffsetElementID='<%#lnk_def_facility.ClientID%>'
                    OpenerElementID='<%#lnk_def_facility.ClientID%>' NavigateUrl="~/User/DefFacility.aspx"
                    OnClientClose="onDefFacClose" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <telerik:RadFormDecorator ID="rad_decorator" runat="server" DecoratedControls="all" ControlsToSkip="Select">
        </telerik:RadFormDecorator>
        <telerik:RadSplitter ID="contentSplitter" runat="server" Height="100%" Width="100%"
           VisibleDuringInit="false" OnClientLoaded="initSplitter">
            <telerik:RadPane ID="navigationPane" runat="server" Width="190">
                <div style="margin: 5px;">
                 <br/>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/img/company_logo.jpg" />
                    
                   
                    <br />
                    <asp:LinkButton ID="lnk_def_facility" runat="server"></asp:LinkButton>
                </div>
                <telerik:RadPanelBar ID="leftMenu" runat="server" Width="180px">
                </telerik:RadPanelBar>
                 <br/>
                 <br/>
                  <br/>
                 
                <div >
                <asp:Button runat="server" ID="btn_logout" Text="Logout"  />  
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="splitter" runat="server" CollapseMode="Forward" />
            <telerik:RadPane ID="contentPane" runat="server" MinWidth="400">
                <div style="margin: 5px;">
                  <div id="ZoneID4" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="right">
                    <asp:Image ID="Image1" runat="server" 
                        ImageUrl="~/img/studentdatasuite_header.PNG" /> 
                    </fieldset>
                    </div>
                    <telerik:RadTabStrip ID="horMenu" runat="server" SelectedIndex="0" DataFieldID="module_id">
                        <DataBindings>
                            <telerik:RadTabBinding TextField="module" ValueField="module_id" />
                        </DataBindings>
                    </telerik:RadTabStrip>
                   
                </div>
                <div style="margin: 5px;">
                    <h2>
                        <asp:Literal runat="server" ID="ltTitle"></asp:Literal></h2>
                    <asp:ContentPlaceHolder ID="centerContent" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
                <div id="ZoneID3" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="center">
                    <p> © 2009 Sama IT Group. All rights reserved.
<a target="_self" title="Home" href="http://www.samaitgroup.com/">Home</a> 
<a target="_self" title="Products" href="http://www.samaitgroup.com/products.html">Products</a> 
<a target="_self" title="Aboutus" href="http://www.samaitgroup.com/aboutus.html">Aboutus</a>
<a target="_self" title="Support" href="http://www.samaitgroup.com/support.html">Support</a>
<a target="_self" title="Contacts" href="http://www.samaitgroup.com/contactus.html">Contacts</a>
         </p>
                    </fieldset>
                    </div>
                 
            </telerik:RadPane>
        </telerik:RadSplitter>
      
       <telerik:RadAjaxLoadingPanel ID="logPan" runat="server" IsSticky="true" Transparency="30"
            Style="position: absolute; top: 0; left: 0; line-height: 60px; text-align: center;
            z-index: 99;" Width="100%" Height="100%" BackColor="#B9CDF7">
            <asp:Image ID="img" runat="server" Width="130px" Height="60px" ImageUrl="~/img/loading.gif"
                Style="border: 0; margin-top: 70px;"></asp:Image>
        </telerik:RadAjaxLoadingPanel>
    
    </div>

    <script src="http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.js" type="text/javascript">
    
        function onDefFacClose(oWnd) {            //get the transferred arguments
            var arg = oWnd.argument;
            if (arg) {
                var facName = arg.facName;
                $get(oWnd.get_openerElementID()).innerHTML = facName;
            }
        }
        function initSplitter(sender, args) {
            sender.get_element().style.visibility = 'inherit';
        }  
 
    </script>

    </form>
</body>
</html>


how to soolve this problem it's argent 

thanks and regrads 
shanker.B
  
shanker bangari
Top achievements
Rank 1
 asked on 14 May 2010
6 answers
190 views

Dear Telerik,

                    Iam facing an issue in invoking EditPopup after I grouped any of the columns inthe radgrid. When I do this the page seemed like shadow gray color as I couldnot do any action in the PopUp window. It is caused at the of Grouping is doneotherwise I could do all operations with EditPoup window.

I am afraid of what mistake I made in my page. Herewith I notedthe siplified code for your reference.

 <div align="center"> 
            <div class="RadCustomPage" id="RadTest" runat="server">                 
                <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
                <%--<telerik:RadScriptManager ID="man1" runat="server"></telerik:RadScriptManager>--%> 
                <telerik:RadAjaxManager ID="radAjaxManager" runat="server"> 
                    <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ajaxLoadingPanel" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                    </AjaxSettings> 
                </telerik:RadAjaxManager> 
                <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Height="75px" Width="75px" 
                    HorizontalAlign="Left" BackgroundPosition="BottomLeft" Direction="LeftToRight"> 
                    <div style="position: absolute; left: 500px; top: 200px"> 
                        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading7.gif") %>' 
                            style="border: 0px;" /> 
                    </div> 
                </telerik:RadAjaxLoadingPanel> 
                <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" Skin="Vista" AutoGenerateColumns="false" 
                    OnNeedDataSource="RadGrid1_NeedDataSource"> 
                    <HeaderStyle CssClass="HeaderStyle" /> 
                    <ItemStyle CssClass="ItemStyle" /> 
                    <AlternatingItemStyle CssClass="AlternatingItemStyle" /> 
                    <ClientSettings AllowDragToGroup="true"> 
                        <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="true" 
                            ClipCellContentOnResize="false" EnableRealTimeResize="false" /> 
                        <ClientEvents OnGridCreated="GridCreated" /> 
                    </ClientSettings> 
                    <MasterTableView EditMode="PopUp" DataKeyNames="ID" CommandItemDisplay="Top"> 
                        <Columns> 
                            <telerik:GridEditCommandColumn UniqueName="EditColumn"> 
                            </telerik:GridEditCommandColumn> 
                            <telerik:GridBoundColumn HeaderText="ID" HeaderButtonType="TextButton" DataField="ID"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn HeaderText="Name" HeaderButtonType="TextButton" DataField="Name"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn HeaderText="Address" HeaderButtonType="TextButton" DataField="Address"> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                        <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Height="500px" PopUpSettings-Width="800px"> 
                            <FormTemplate> 
                                <table> 
                                    <tr> 
                                        <td> 
                                            Test Grid 
                                        </td> 
                                    </tr> 
                                </table> 
                            </FormTemplate> 
                        </EditFormSettings> 
                    </MasterTableView> 
                </telerik:RadGrid>                
            </div> 
        </div> 

protected void Page_Load(object sender, EventArgs e) 
        {             
            try 
            {                
                //Grid Grouping settings 
                RadGrid1.ShowGroupPanel = true; 
                RadGrid1.ClientSettings.AllowDragToGroup = true; 
                RadGrid1.GroupingSettings.ShowUnGroupButton = true; 
                RadGrid1.ClientSettings.Selecting.AllowRowSelect = true; 
                RadGrid1.ClientSettings.AllowGroupExpandCollapse = true; 
 
                //Column Resizing  settings                 
                RadGrid1.ClientSettings.Resizing.AllowColumnResize = true; 
                RadGrid1.ClientSettings.Resizing.AllowRowResize = false; 
                RadGrid1.ClientSettings.Resizing.ResizeGridOnColumnResize = false; 
                RadGrid1.ClientSettings.Resizing.ClipCellContentOnResize = true; 
                RadGrid1.ClientSettings.Resizing.EnableRealTimeResize = false; 
 
                //Column Reordering settings 
                RadGrid1.ClientSettings.AllowColumnsReorder = true; 
                RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder; 
                RadGrid1.ClientSettings.ReorderColumnsOnClient = false; 
 
                // Scrolling settings 
                RadGrid1.ClientSettings.Scrolling.AllowScroll = true; 
                RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = true; 
                RadGrid1.ClientSettings.Scrolling.SaveScrollPosition = true; 
                RadGrid1.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(400); 
            } 
            catch (Exception e1) 
            { 
                Response.Write(e1.Message.ToString()); 
            } 
        } 
 
        public DataTable GetData() 
        { 
            DataTable dt = new DataTable(); 
            DataColumn[] cols = new DataColumn[] { new DataColumn("ID"), new DataColumn("Name"), new DataColumn("Address") }; 
 
            dt.Columns.AddRange(cols); 
 
            for (int i = 0; i <= 50; i++) 
            { 
                DataRow dr = dt.NewRow(); 
                dr[0] = "ID :" + i; 
                dr[1] = "Name :" + i; 
                dr[2] = "Address :" + i; 
                dt.Rows.Add(dr); 
            } 
            return dt; 
        } 
        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
        { 
            this.RadGrid1.DataSource = GetData(); 
        } 

I hope the above mentioned code snippet would be enough tounderstand the scenario

-Thanks

Daniel
Telerik team
 answered on 14 May 2010
3 answers
59 views
Radtabstrip is not working fine with the mozilla browser. Please find the attached image.
And I am using the version of control is 3.6.1.0.
Yana
Telerik team
 answered on 14 May 2010
3 answers
262 views
I have a database table that represents file paths on a systems.

I just want to show the paths from the database. Can I use FileExplorer for this. Does the datasource for FileExplorer have to be a physical folder on a real machine.

I currently load my database and I wrote some C# code to run over the flat table to put everything back into and asp.net tree view control, but the fileexplorer you guys build it much cooler looking then then the asp.net tree view control.

thanks
jason
Fiko
Telerik team
 answered on 14 May 2010
3 answers
115 views

 

Hi ...could someone kindly help me. Below is my code.
I have a radCombo that does not expand when I click on the DownArrow button for expansion. I connect the radCombo to a datatable called dtAreas and it displays the first data item but I cannot expand it to view and select any other item. Also since MarkFirstmatch is true, if I start typing in it displays the item but I want to be able to use the drop down feature and I cannot. Your help is appreciated highly.
Could I be missing a setting or does anyone have an idea what I am doing wrong ?

string
AreasQuery = "select AreaID,AreaName from area order by AreaName ";

dtAreas = dbo.sqldb_select(AreasQuery, 1);

cmbAreas.DataTextField =

"AreaName";

 

 

cmbAreas.DataValueField =

"AreaID";

 

 

 cmbAreas.DataSource = dtAreas;

cmbAreas.DataBind();

Alex

 

 

 

 

 

 

Alex Odago
Top achievements
Rank 1
 answered on 14 May 2010
1 answer
119 views
Hi,

I've been using a web service bound version of the Scheduler control, and have discovered recently that another web service being called on the page is not being allowed to complete successfully, while the Scheduler is populating.

Is there a way to delay when the Scheduler initially begins populating?

Thanks,
Greg
T. Tsonev
Telerik team
 answered on 14 May 2010
1 answer
103 views
Hello All ,

If i group the grid with a field , is there any possibilities  to show only one item ( either group By or Un Group ) . if the grid doesn't grouped with that particular field i must show only "Group BY " on Header context menu and  vice versa , i dont wanna show both menu items at the same time
Any help will be appreciated
Thanks
-Prince

 
Iana Tsolova
Telerik team
 answered on 14 May 2010
6 answers
225 views
It appears that RadFileExplorer causes validation to fire when you click the Upload button... There isn't a property to disable validation. I have a validation summary in my master page and it lights up with the form validation controls every time I click upload. I worked around it, but thought I'd report it.

Regards - Jeff
Fiko
Telerik team
 answered on 14 May 2010
4 answers
187 views
Hi there, I have a strange issue, that is also difficult to explain. Let me try.
I have an application with a RadMenu, in the attached sample you see two test items. No master pages.
I click on Item 1, Item 2 is correctly displayed. I move the mouse pointer down to highlight Item 2 BUT when the mouse hovers on the label (or the corresponding empty space on the label sides) the highlight disappears and the submenu collapses, as if I moved the mouse away from the menu.
This is the code, but is nothing fancy
mnuMain.Items.Clear(); 
mnuMain.Items.Add(new Telerik.Web.UI.RadMenuItem("item 1")); 
mnuMain.Items[0].Items.Add(new Telerik.Web.UI.RadMenuItem("item 2", "funnel.aspx")); 
This is the resulting HTML
<div id="MenuContainer" class="MenuContainer"> 
<div id="mnuMain" class="RadMenu RadMenu_Web20 rmSized" style="border-style:None;width:100%;"> 
<!-- 2010.1.429.20 --><ul class="rmRootGroup rmHorizontal"> 
<li class="rmItem rmFirst rmLast"><a href="#" class="rmLink rmRootLink"><span class="rmText">item 1</span></a><div class="rmSlide"> 
<ul class="rmHorizontal rmGroup rmLevel1"> 
<li class="rmItem rmFirst rmLast"><a href="funnel.aspx" class="rmLink"><span class="rmText">item 2</span></a></li> 
</ul> 
</div></li> 
</ul><input id="mnuMain_ClientState" name="mnuMain_ClientState" type="hidden" /> 
</div> 
I tried both the latest official release and the 429 internal build.
Any suggestion?
Thanks
Luca
Yana
Telerik team
 answered on 14 May 2010
8 answers
303 views
Hi All,

Is there any function available that can get the total number of rows in a Grid on the Client side using Javascipt.

Thanks in advance,

Haroon
Yavor
Telerik team
 answered on 14 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?