Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
hi,

how to close a radwindow on radalert ok button click.
thanks in advance..

geetha priya
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
161 views
Hi i am facing a problem when open root file its not open,

Here is my code:

<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="734px" Height="400px"
                        EnableOpenFile="true" OnExplorerPopulated="RadFileExplorer1_ExplorerPopulated"
                        VisibleControls="Grid,TreeView,ContextMenus,Toolbar">
                        <Configuration ViewPaths="~/UserData/FacilityFile/" DeletePaths="~/UserData/FacilityFile/"
                            UploadPaths="~/UserData/FacilityFile/" SearchPatterns="*.pdf" />
                    </telerik:RadFileExplorer>

protected void Page_Load(object sender, EventArgs e)
        {
                if (!IsPostBack)
                {
                    RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName;
                    RadFileExplorer1.InitialPath = Page.ResolveUrl("~/UserData/FacilityFile/" + Id.ToString() + "/");

                    string[] DocPaths = new string[] { RadFileExplorer1.InitialPath };
                    RadFileExplorer1.Configuration.ViewPaths = DocPaths;
                    RadFileExplorer1.Configuration.UploadPaths = DocPaths;
                    RadFileExplorer1.Configuration.DeletePaths = DocPaths;
                }
                InitializeComponent();            
        }
protected override void OnInit(EventArgs e)
        {
            RadFileExplorer1.Localization.SetString("Common_ConfirmDelete", "Are you sure you want to Delete?");
        }

        private void InitializeComponent()
        {
            DirectoryInfo nd = new DirectoryInfo(Server.MapPath("~/UserData/FacilityFile/" + Id.ToString()));
            if (!nd.Exists)
            {
                nd.Create();
            }
        }        

        protected void RadFileExplorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
        {
            //implement sorting for the custom Date column
            string sortingColumn = e.SortColumnName;
            if (sortingColumn == "Date")
            {
                DateComparer dc = new DateComparer();
                e.List.Sort(dc);
                if (e.SortDirection.IndexOf("DESC") != -1)
                {
                    //reverse order
                    e.List.Reverse();
                }
            }
        }

        public class DateComparer : IComparer<FileBrowserItem>
        {
            int IComparer<FileBrowserItem>.Compare(FileBrowserItem item1, FileBrowserItem item2)
            {
                //treat folders separate from files
                DateTime date1 = DateTime.Parse(item1.Attributes["Date"]);
                DateTime date2 = DateTime.Parse(item2.Attributes["Date"]);
                if (item1 is DirectoryItem)
                {
                    if (item2 is DirectoryItem)
                    {
                        return DateTime.Compare(date1, date2);
                    }
                    else
                    {
                        return -1;
                    }
                }
                else
                {
                    if (item2 is DirectoryItem)
                    {
                        return 1;
                    }
                    else
                    {
                        return DateTime.Compare(date1, date2);
                    }
                }
            }
        }

        public class CustomColumnsContentProvider : FileSystemContentProvider
        {
            public CustomColumnsContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)
                : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)
            {
                // Declaring a constructor is required when creating a custom content provider class
            }
        }




Fiko
Telerik team
 answered on 25 May 2010
1 answer
192 views
Hi,

      I have a RadTextBox inside my RadGridTemplate Column , The RadText box is not maintaining the value , this Problem occurs in
IE 8 , in my Vista machine ... Other browsers could able retain the values ..

   Please Help me to retain values ,when browsed in IE 8 . .

i have attached sample code and screen shots ...

Note: - 
   In my IE 8 browser , when i change to Compatability Mode , radtextBox inside radgrid retains values , but not in Normal mode ...


Imports System.Data  
Imports Telerik.Web.UI  
 
Partial Class Filter  
    Inherits System.Web.UI.Page  
 
    Private m_objDTColumns As New DataTable  
    Private m_objDTColumns1 As New DataTable  
    Private m_objDTFilter As New DataTable  
    Private m_strReturn As String = String.Empty  
    Private l_intRowCount As Integer = 0  
    Private l_strColumns() As String 
    Private arr As New ArrayList  
 
    
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
          
 
        m_objDTFilter.Columns.Add("Operator")  
        m_objDTFilter.Columns.Add("Value")  
        m_objDTFilter.Columns.Add("Logical")  
 
 
        If Not Page.IsPostBack Then 
            m_objDTFilter.Rows.Add()  
            gvFilter.DataSource = m_objDTFilter  
            gvFilter.DataBind()  
        End If 
    End Sub 
 
    Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click  
        FilterAddRow()  
    End Sub 
 
    Private Sub FilterAddRow()  
 
        Dim gridRows As GridItemCollection = gvFilter.Items  
        For Each data As GridDataItem In gridRows  
 
 
            Dim l_objDDLOperator As RadComboBox = DirectCast(data.FindControl("ddlOperator"), RadComboBox)  
            Dim l_objDDLLogical As RadComboBox = DirectCast(data.FindControl("ddlLogical"), RadComboBox)  
            Dim l_objTxtValue As RadTextBox = DirectCast(data.FindControl("txtValue"), RadTextBox)  
 
            m_objDTFilter.Rows.Add(New Object() {l_objDDLOperator.SelectedValue.ToString(), l_objTxtValue.Text, l_objDDLLogical.SelectedValue.ToString})  
        Next 
 
 
        m_objDTFilter.Rows.Add()  
 
        gvFilter.DataSource = m_objDTFilter  
        gvFilter.Rebind()  
 
    End Sub 
 
    Protected Sub gvFilter_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gvFilter.ItemCreated  
 
 
    End Sub 
    Protected Sub gvFilter_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gvFilter.ItemDataBound  
 
        Dim l_intRCnt As Integer = e.Item.ItemIndex  
        Dim l_objDDLColumnName As RadComboBox  
        Dim l_objDDLOperator As RadComboBox  
        Dim l_objDDLLogical As RadComboBox  
        Dim l_objTxtValue As RadTextBox  
 
 
        Dim l_objDDLRowID As Label  
        Dim l_intRIndex As Integer 
        If (e.Item.ItemType = GridItemType.Item Or e.Item.ItemType = GridItemType.AlternatingItem) Then 
            e.Item.Attributes.Add("onclick", "javascript:GetRowID('" + e.Item.ItemIndex.ToString() + "');")  
            l_objDDLColumnName = CType(e.Item.FindControl("ddlColumn"), RadComboBox)  
            l_objDDLOperator = CType(e.Item.FindControl("ddlOperator"), RadComboBox)  
            l_objTxtValue = CType(e.Item.FindControl("txtValue"), RadTextBox)  
            l_objDDLLogical = CType(e.Item.FindControl("ddlLogical"), RadComboBox)  
            l_objDDLRowID = CType(e.Item.FindControl("lblRowID"), Label)  
 
            l_intRIndex = e.Item.ItemIndex + 1  
            l_objDDLRowID.Text = l_intRIndex.ToString()  
 
            l_objDDLOperator.SelectedValue = m_objDTFilter.Rows(l_intRCnt)(0).ToString()  
            l_objTxtValue.Text = m_objDTFilter.Rows(l_intRCnt)(1).ToString()  
            l_objDDLLogical.SelectedValue = m_objDTFilter.Rows(l_intRCnt)(2).ToString()  
        End If 
 
    End Sub 
    Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click  
 
        If radGridColumnsFilter.Value <> "" Then 
            l_strColumns = radGridColumnsFilter.Value.Split(",")  
 
            For index = 0 To l_strColumns.Length - 1  
                arr.Add(l_strColumns(index).ToString)  
            Next 
        Else 
            Exit Sub 
        End If 
 
        For l_intRCnt = 0 To l_strColumns.Length - 1  
            m_objDTColumns.Rows.Add(New Object() {l_strColumns.GetValue(l_intRCnt).ToString().ToLower(), l_strColumns.GetValue(l_intRCnt).ToString().ToLower()})  
        Next 
 
        'If Not Page.IsPostBack Then  
        m_objDTFilter.Rows.Add()  
        gvFilter.DataSource = m_objDTFilter  
        gvFilter.DataBind()  
    End Sub 
 
      
    
End Class 
 
<%@ Page Language="VB" EnableViewState="true" AutoEventWireup="false" CodeFile="Filter.aspx.vb" enableEventValidation="false" Inherits="Filter" %> 
 
<%@ 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 runat="server">  
    <title></title>  
 
     <script type ="text/javascript" src="FilterRadWindow.js" > 
     </script> 
 
    <script language="javascript" type="text/javascript">  
// <!CDATA[  
 
        function GetRadWindow()   
        {  
            var oWindow = null;  
            if (window.radWindow)  
                oWindow = window.radWindow;  
            else if (window.frameElement.radWindow)  
                oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
          
        function returnArg(arg1)   
        {  
              
            var oWnd = GetRadWindow();  
            oWnd.close(arg1);  
 
        }  
          
        function Close()  
         {  
             var oWnd = GetRadWindow();  
             oWnd.close();  
            }  
 
            function GetRowID(iRowID) {  
                try { document.getElementById("hidSelectedRow").value = iRowID; } catch (e) { }  
            }     
          
        
// ]]> 
    </script> 
</head> 
<body > 
    <form id="form1" runat="server">  
    <div> 
      <table cellpadding="1" cellspacing="1">  
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            </asp:ScriptManager> 
            <tr> 
                <td> 
                    &nbsp;</td> 
            </tr> 
            <tr valign="top">  
                <td> 
                    <asp:UpdatePanel ID="AjxGrid" UpdateMode="Conditional" runat="Server" > 
                        <ContentTemplate> 
                            <table> 
                                <tr valign="top">  
                                    <td> 
                                        <asp:Panel ID="pnlNewCriteria" runat="server" GroupingText="New Filter Criteria" 
                                            CssClass="pnlClass1">  
                                            <telerik:RadGrid ID="gvFilter" runat="server"  AutoGenerateColumns="false" CssClass="gvHeaderClass">  
                                          <MasterTableView runat ="server"  > 
                                                <Columns >    
                                                <telerik:GridTemplateColumn > 
                                                <ItemTemplate > 
                                                <asp:Label ID="lblRowID" runat="Server" CssClass="lblClass"></asp:Label> 
                                                </ItemTemplate> 
                                                  <ItemStyle Font-Bold="False" Font-Names="Arial" Font-Size="Small" /> 
                                                </telerik:GridTemplateColumn>                                            
                                                   
                                                        <telerik:GridTemplateColumn HeaderText="Operator">  
                                                            <ItemTemplate> 
                                                                <telerik:RadComboBox  ID="ddlOperator" runat="server" CssClass="ddlClass" AutoPostBack="true" 
                                                                    EnableViewState="true">  
                                                                    <Items > 
                                                                      
                                                                    <telerik:RadComboBoxItem Text="Equals" Value="="/>  
                                                                    <telerik:RadComboBoxItem Text="Greater Than" Value=">"/>  
                                                                     <telerik:RadComboBoxItem Text="Less Than" Value="<" /> 
                                                                     <telerik:RadComboBoxItem Text="> Than or Equal" Value="&gt;="/>  
                                                                    <telerik:RadComboBoxItem Text="< Than or Equal" Value="<="/>  
                                                                     <telerik:RadComboBoxItem Text="Doesn't Equal" Value="<>"/>  
                                                                     <telerik:RadComboBoxItem Text="Start With" Value="=%"/>  
                                                                    <telerik:RadComboBoxItem  Text="Anywhere" Value="=%="/>  
                                                                   <telerik:RadComboBoxItem  Text="End With" Value="%="/>  
                                                                    </Items> 
                                                                   </telerik:RadComboBox>   
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>     
                                                         <telerik:GridTemplateColumn HeaderText="Value">  
                                                            <ItemTemplate> 
                                                            <telerik:RadTextBox  ID="txtValue" runat="server" EnableViewState="true" style="position:relative;" /> 
                                                             </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>    
                                                         <telerik:GridTemplateColumn HeaderText="Logical">  
                                                            <ItemTemplate> 
                                                               <telerik:RadComboBox ID="ddlLogical" runat="server" AutoPostBack="true" EnableViewState="true">  
                                                               <Items > 
                                                                                                                      
                                                                   <telerik:RadComboBoxItem Text="And" Value="And" />                                                        
                                                                   <telerik:RadComboBoxItem Text="Or" Value="Or" /> 
                                                                   </Items> 
                                                                 </telerik:RadComboBox> 
                                                            </ItemTemplate> 
                                                       </telerik:GridTemplateColumn>    
                                                   </Columns> 
                                                   </MasterTableView> 
                                                    <HeaderStyle BackColor="Control" Font-Bold="False" Font-Names="Arial" Font-Size="Smaller" /> 
                                                </telerik:RadGrid> 
                                        </asp:Panel> 
                                    </td> 
                                </tr> 
                               <tr valign="top">  
                                    <td align="center">  
                                        <asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="btnClass" /> 
                                    </td> 
                                </tr> 
   
                            </table> 
                        </ContentTemplate> 
                    </asp:UpdatePanel> 
                </td> 
            </tr> 
        </table> 
         <input type="hidden" runat="server" name="h_col" id="h_col" value="" /> 
        <input type="hidden" runat="server" name="h_filter" id="h_filter" value="" /> 
        <input type="hidden" name="h_ScrName" id="h_ScrName" runat="server" value="" /> 
        <input type="hidden" runat="server" name="h_count" id="h_count" value="0" /> 
        <asp:HiddenField ID="hidSelectedRow" runat="Server" /> 
        <asp:HiddenField runat ="server"  id="radGridColumnsFilter"/>  
        <asp:LinkButton ID="LinkButton1" runat="server"></asp:LinkButton> 
    </div> 
    </form> 
</body> 
</html> 
 
Nikita Gourme
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
117 views

Hi,

Usually I simple create an ASP.NET web site in Visual Studio. This time I created a Telerik C Sharp Web Application and cannot successfully move it to my shared host. 

I see a difference is that in the Web Application, all classes are surrounded by a namespace where regular web sites are not, for example.

Thus I have:

<%@ Page Title="" Language="C#" MasterPageFile="~/SiteV1.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="preTOPS.Home" %> 

Rather than:

<%@ Page Title="" Language="C#" MasterPageFile="~/SiteV1.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Home" %> 
Attempting to run the site on the shared host produces:

Parser Error Message: Could not load type 'preTOPS.SiteV1'.  
 
Source Error:   
 
Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteV1.master.cs" Inherits="preTOPS.SiteV1" %>  
Line 2:    
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
I'm on a tight deadline - can you help quickly?

Thank you

Lini
Telerik team
 answered on 25 May 2010
1 answer
66 views
Hello,

Strange behavior: when "Add New Record" button is pressed on the RadGrid Command Item, EditForm (template) appears which contains "Update" and "Cancel" buttons. When clicking "Update", InsertCommand of the object data source or radgrid is not fired. What gets fired is the "UpdateCommand"
Has it been observed before? Would be grateful for any thoughts.

Thanks.
Princy
Top achievements
Rank 2
 answered on 25 May 2010
2 answers
93 views
What parameter can change the direction of the floating
Have a look at the image
thank you
w j
Top achievements
Rank 1
 answered on 25 May 2010
5 answers
288 views
I am using a RadTabStrip in combination with the RadMultiPage on a  page using the embedded skin "Gray" and would like to give the appearance of a form with a thin border around the multipage.  To accomplish this I use the follow css class (also shown control declaration on the aspx page):

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Gray" Width="700px" MultiPageID="RadMultiPage1" SelectedIndex="0" OnTabClick="RadTabStrip1_TabClick">
    </telerik:RadTabStrip>
    <telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="0" Width="700px" CssClass="multiPage" OnPageViewCreated="RadMultiPage1_PageViewCreated">
    </telerik:RadMultiPage>

.multiPage
{
    width: 700px;
    height: 335px;
    border: solid 1px #cccccc;
    background: #ffffff;
    padding: 10px 10px 0px 10px;
}

This accomplishes the objective except for one detail.  On the highlighted tab the border extends across the base of the tab since as you can see from the css I have created the border around the entire multiplage.  I could just create a border just around the left, bottom, and right side but I want the multipage to extend a little wider than the tabstrip to the right.  So if I did this there would be a missing border on the top right side of the form.  I'm sure there is a simple solution for this, but so far it has escaped me.  Thanks for any help you can give.

Regards,
Keith
Yana
Telerik team
 answered on 25 May 2010
2 answers
181 views
Hi,

I was wondering if someone would be able to help me - I have a Radgrid which displays some data and have used a nestedviewtemplate to display additional data when the user clicks on a grid row which all works fine however, when you click on a different row to view its additional data the previous rows additional data is still visible.  Is there a way to make the last parameter viewed minimize when a user clicks on another parameter in the grid?

Thanks
Steve
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
162 views
Hi,

I am trying to display a ThinkGeoMap inside radsplitter and ajaxify it using RadAjax Manager. The map works fine if I use Asp.Net UpdatePanels. Once I remove Updatepanels and use RadAjax Manager my map is invisible.

If I replace map with Image everything works fine. Why  am I having problem with a dynamic control like map? Given below is my code and mark up.

Thanks,
Prava
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
using System.Data.SqlClient; 
using System.Data; 
using ThinkGeo.MapSuite.Core; 
using ThinkGeo.MapSuite.WebEdition; 
using System.Drawing; 
namespace NextGenWebApp 
{ 
    public partial class Test : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
                openMap(); 
        } 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            DataGridPane.Collapsed = false; 
            DataGridPane.Splitter.SplitBarsSize = 6; 
            MapRadSplitBar.CollapseMode = SplitBarCollapseMode.Both; 
 
 
        } 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
            DataGridPane.Collapsed = true; 
            DataGridPane.Splitter.SplitBarsSize = 6; 
            MapRadSplitBar.CollapseMode = SplitBarCollapseMode.None; 
 
        } 
        void openMap() 
        { 
            string connectionString = "Data Source=MAPCOM071\\SQLEXPRESS2008;Initial Catalog=Lakeland;Integrated Security=True"; 
            MsSql2008FeatureLayer fsl = new MsSql2008FeatureLayer(connectionString, "msiOverview", "ID"); 
            fsl.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Canal1; 
            fsl.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; 
            fsl.Open(); 
            RectangleShape currentExtent = fsl.GetBoundingBox(); 
            fsl.Close(); 
            PointShape center = currentExtent.GetCenterPoint(); 
            fsl.Srid = 0; 
            Map1.MapUnit = GeographyUnit.Feet; 
            LayerOverlay staticOverlay = new LayerOverlay(); 
            staticOverlay.Layers.Add(fsl); 
            Map1.CustomOverlays.Add(staticOverlay); 
            Map1.CurrentExtent = currentExtent; 
            Map1.BackColor = Color.DarkGoldenrod; 
            Map1.CenterAt(center); 
        } 
 
         
      
 
    } 
} 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="NextGenWebApp.Test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register assembly="WebEdition" namespace="ThinkGeo.MapSuite.WebEdition" tagprefix="cc1" %> 
<!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  runat="server"> 
    <style type="text/css" > 
        html, body, form 
        { 
            height: 100%; 
            margin: 0; 
            padding: 0; 
            overflow: hidden; 
        } 
         .TitleRadSplitBar 
        { 
           margin :0px;  
           overflow:hidden; 
        } 
        
    </style> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script> 
    </head> 
    <body> 
    <form id="form1" runat="server"> 
   <asp:ScriptManager ID="ScriptManager1" runat="server"> 
    </asp:ScriptManager> 
      <%--  <%--Code below centralize the map and covers 100% of  RadPanel container--%> 
           <script type="text/javascript">   
            $(document).ready(function() { 
                SendPostBack(); 
            }); 
            function SendPostBack() { 
               <%=Page.GetPostBackEventReference(btnDummy)%>; 
            } 
             </script> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"    > 
        <AjaxSettings> 
           <telerik:AjaxSetting  AjaxControlID="MapDivSplitter"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="MapDivSplitter" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="Button1"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="MapDivSplitter" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="Button2"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="MapDivSplitter" /> 
                </UpdatedControls> 
                </telerik:AjaxSetting> 
                 <telerik:AjaxSetting AjaxControlID="btnDummy"> 
                <UpdatedControls> 
                   <%--   <telerik:AjaxUpdatedControl ControlID="Panel1" />--%> 
                  <telerik:AjaxUpdatedControl ControlID="Map1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%"   
        Width="100%" PanesBorderSize="0"  BorderSize="0"   
             Orientation="Horizontal" Skin="Vista" LiveResize="true"  
        VisibleDuringInit="false" ResizeWithBrowserWindow="true"  > 
        <telerik:RadPane ID="TitleBarPane" runat="server" Locked="true" Height="94px"> 
                 <asp:Image ID="logoImage" ImageUrl="theme/default/Logo.JPG"  alt="Company Logo" runat="server" /> 
                <asp:Image id="logoStretch" ImageUrl="theme/default/LogoStretch.JPG" alt="Fill Image"   runat="server" Height="95px" Width="100%" /> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="TitleRadSplitBar" runat="server"  /> 
        <telerik:RadPane ID="ContentPane" runat="server" Scrolling="None"> 
            <telerik:RadSplitter ID="ContentRadSplitter" runat="server" Skin="Vista" PanesBorderSize="0"  BorderSize="0" > 
                <telerik:RadPane ID="LeftRadPane" runat="server" Width="230" BackColor="White" Scrolling="None"> 
                     <asp:Button ID="Button1" runat="server" Text="Display Second Image "   onclick="Button1_Click"/> 
                     <asp:Button ID="Button2" runat="server" Text="Hide Second Image "   onclick="Button2_Click"/> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="NavRadSplitBar" runat="server" CollapseMode="Forward"  /> 
                <telerik:RadPane ID="MapRadPane" runat="server" Scrolling="None"   > 
                             <telerik:RadSplitter ID="MapDivSplitter" runat="server" Orientation="Horizontal" Skin="Vista" LiveResize="true" VisibleDuringInit="false" PanesBorderSize="0"  BorderSize="0"   > 
                                <telerik:RadPane ID="MapPane" runat="server" Scrolling="None" > 
                                  <%--<asp:Panel ID="Panel1" runat="server" Height="100%" Width="100%"  style="padding:0px; margin:0px;"  BackColor="Black">--%> 
                                      <cc1:Map ID="Map1" runat="server"   Height="100%" Width="100%"  > 
                                       </cc1:Map> 
                                      <%--<asp:Image ID="Image1" ImageUrl="theme/default/Logo.JPG"  alt="Company Logo" runat="server" height="100%" width="100%"  /> 
                                    </asp:Panel>--%> 
                                  <asp:Button ID="btnDummy" runat="server" Style="display: none;" /> 
                                </telerik:RadPane> 
                                <telerik:RadSplitBar ID="MapRadSplitBar" runat="server" CollapseMode="None" /> 
                                <telerik:RadPane ID="DataGridPane" runat="server" MinHeight="100" Height="130" Scrolling="Both" Collapsed="true">  
                                    <asp:Image ID="Image2" ImageUrl="theme/default/Logo.JPG"  alt="Company Logo" runat="server" height="100%" width="100%"  /> 
                                </telerik:RadPane> 
                            </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 
Iana Tsolova
Telerik team
 answered on 25 May 2010
2 answers
120 views
How to modify the image that appears as a custom command's icon. I tried the sample customdockcommand but it doesnt work for me, any other way of doing it?
suvina paul
Top achievements
Rank 1
 answered on 25 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?