Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
94 views
Problem solved.
Curry
Top achievements
Rank 2
 asked on 19 May 2008
2 answers
150 views
I want my splitter to remain at 100% height of my browser page at all times.  I have seen your examples where this can be achieved but when I adapt those examples to a Master page, content page scenario the splitter will never stay at a static 100% height and it always resizes to the height of the content page. 

Below is the master page:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="FCi.master.cs" Inherits="fciweb.FCi" EnableTheming="true" %> 
 
<%@ Register Assembly="Telerik.Web.UI, Version=2008.1.515.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    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>Untitled Page</title> 
    <style type="text/css">  
        .style1  
        {  
            background-color: #FFB300;  
            padding: 0;  
            text-align: left;  
            border-style: none;  
              
        }  
    </style> 
      
    
</head> 
  <body sstyle="margin:0px;height:100%;overflow:hidden;"s>     
        <form id="Form1" method="post" runat="server" style="height:100%" >   
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
          
         <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">  
            <tr> 
                <td class="style1">  
                    image  
                </td> 
                <td class="style1" style="text-align:right">  
                login status  
                      
                </td> 
            </tr> 
            </table> 
           
        <telerik:RadSplitter id="MainSplitter" runat="server"  height="100%" width="100%">  
            <telerik:RadPane id="LeftPane" runat="server" Width="250px" Height="100%" >    
                    <!-- Place the content of the pane here -->    
                      
                 <telerik:RadPanelBar ID="RadPanelBar1" Runat="server"   
                        EnableAjaxSkinRendering="true" Skin="Default2006" > 
                    <collapseanimation duration="100" type="None" /> 
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="item1">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="Click Me" NavigateUrl="test.aspx">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="item2">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="item3">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="item4">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="item5">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="item6">  
                        </telerik:RadPanelItem> 
                    </Items> 
                    <expandanimation duration="100" type="None" /> 
                </telerik:RadPanelBar>   
                    </telerik:RadPane>   
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" />     
              
              
            <telerik:RadPane ID="mainPane" runat="server" >    
                    <!-- Place the content of the pane here -->    
                   <asp:ContentPlaceHolder ID="main" runat="server"></asp:ContentPlaceHolder> 
                </telerik:RadPane>    
            </telerik:RadSplitter>   
          
      
        </form>     
    </body>    
</html>    
   


Here is the empty Default page, load this up first to see sizing issue - i.e. splitter is not at 100% height.
<%@ Page Language="C#" MasterPageFile="~/FCi.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="fciweb.Default" Title="Untitled Page" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="main" runat="server">  
     
</asp:Content> 

Finally, a content page (Click the Click Me link in the panel bar), that shows how the splitter resizes.
<%@ Page Language="C#" MasterPageFile="~/FCi.Master" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="fciweb.test" Title="Untitled Page" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="main" runat="server">  
 
    <div id="ContentDiv">  
    <br /> 
    top line here  
    <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
     <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
     <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
      <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
     <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
     <br /> 
    Content here  
    <br /> 
    Content here  
    <br /> 
    last line here  
    <br /> 
    </div> 
 
</asp:Content> 
 

Thanks very much.

Pino
Pino
Top achievements
Rank 1
 answered on 19 May 2008
2 answers
253 views
I use Prometheus RadGrid, RadCalendar, etc. in my applications.  But I do not use Charting. However, Prometheus automatically inserts Telerik.Charting assembly into my web.config.

<add assembly="Telerik.Charting, Version=1.7.2.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763" /> 

It doesn't cause a problem on my localhost, because the assembly is in GAC. But it fails my application on the production server, because the assembly is not there..

Steve Elsbury
Top achievements
Rank 1
 answered on 19 May 2008
2 answers
135 views

I need to be able to drag and drop between a radGrid and radTreeview; each are in different panes of a radSplitter

The radSplitBar resizes the window at run-time as expected until I add the following declarative code to the radGrid:

<ClientSettings AllowRowsDragDrop="true" > 
     <Resizing AllowColumnResize="True"  /> 
     <ClientEvents OnRowContextMenu="ShowContextMenu" /> 
</ClientSettings> 

After I add that declaration to the radGrid, the radSplitBar in the radSplitter no longer functions to resize the panes.

What am I missing here?

Charles Forsyth
Top achievements
Rank 2
 answered on 19 May 2008
4 answers
207 views
My treeview needs to be limited to 4 levels deep. I want to allow a user to rearrange the nodes using drag and drop, as long as doing so does not cause any nodes to exceed the 4 level limit.

I want to use javascript to determine the greatest level of all child/grandchild/greatgrandchild nodes of the node being drug, then compare that to the level of the desitination node, and thereby ensure the total combination does not exceed 4 levels.

Any help in doing this would be appreciated!
Missing User
 answered on 19 May 2008
4 answers
169 views
I have a master detail grid along with some controls and edit button on the form.
I render my controls in view only mode and on click of edit button they are enabled.

I recursively disable the controls on page load and then recursively enable them on edit button click.

something like :

public

void DisableEditableControls(ControlCollection controls)

{

Type[] interfaces;
{
Type t = control.GetType();


if

(t.Name == typeof(RadGrid).Name)

{

RadGrid radGrid = (RadGrid)control;

radGrid.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.None;

radGrid.Columns.FindByUniqueNameSafe(

"EditCommandColumn").Display = false;

radGrid.Columns.FindByUniqueNameSafe(

"DeleteColumn").Display = false;

DisableEditableControls(radGrid.Controls);

if (radGrid.MasterTableView.HasDetailTables)

{

foreach (GridTableView gtv in radGrid.MasterTableView.DetailTables)

{

gtv.CommandItemDisplay =

GridCommandItemDisplay.None;

gtv.Columns.FindByUniqueNameSafe(

"EditCommandColumn").Display = false;

gtv.Columns.FindByUniqueNameSafe(

"DeleteColumn").Display = false;

gtv.Columns.FindByUniqueNameSafe("SelectColumn").Display = false;
DisableEditableControls(gtv.Controls);

}

}

continue;

}
}

The problem I am facing is I have a client select(for multiple rows) column, and when my controls are enabled the checkboxes still show disabled.if I do any operation on the grid like a sort, the check box is enabled.
Why is this happening?

Please let me know what am I missing here?

newbie
Top achievements
Rank 1
 answered on 19 May 2008
2 answers
295 views
Hi,

When I apply Width="100%" to the RadChart, it shrinks the chart rather than filling the div for example:

<div id="chartPlaceholder" style="width:100%;" >
    <telerik:RadChart ID="RadChart2" SkinsOverrideStyles="true" runat="server"
    Width="100%">
        <PlotArea>
            <XAxis MaxValue="5" MinValue="1" Step="1">
            </XAxis>
            <YAxis MaxValue="3" Step="0.5" AxisMode="Extended">
            </YAxis>
            <YAxis2 MaxValue="5" MinValue="1" Step="1">
            </YAxis2>
        </PlotArea>
        <Series>
            <telerik:ChartSeries Name="Series 1" Type="Line">
                <Items>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 20">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="2" Name="Item 100">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 100">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 20">
                    </telerik:ChartSeriesItem>
                </Items>
            </telerik:ChartSeries>
            <telerik:ChartSeries Name="Series 2" Type="Line">
                <Items>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 80">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 10">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 10">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 80">
                    </telerik:ChartSeriesItem>
                </Items>
            </telerik:ChartSeries>
        </Series>
    </telerik:RadChart>
</div>

Is there a way where I can get the chart to fill the containing DIV tag.

Thanks
Bleddyn
Ves
Telerik team
 answered on 19 May 2008
2 answers
178 views
Hi,

I have a page contains a RadAjaxPanel and a RadWindowManager.  The RadAjaxPanel contains a button (call Edit) to open a modal window to allow user to edit some data.  I want the RadAjaxPanel to refresh after the user click on the save button in the popup window.

I have three problems:
  1. When I click on the Edit button, the RadAjaxPanel always refresh before showing the window.  How can I prevent this?
  2. I cannot re-open the popup window anymore by clicking on the Edit button after I close the previous popup window (either by click the Save button or the X button).
  3. If I put the RadWindowManager inside the RadAjaxPanel then the popup window automatically closed right after click on the Edit button.

Thank you,

Vincent

Parent Page:

<script type="text/javascript" language="javascript">
function
CallBackFunction(radWindow, returnValue)
{
    var ajaxPanel = $find( "<%=rapPanel.ClientID %>" );
    ajaxPanel.ajaxRequest(
"");
}
</script>

<
asp:ScriptManager runat="server" ID="scriptMgr" />
<telerik:RadAjaxPanel runat="server" ID="rapPanel">
        <asp:TextBox ID="txt1" runat="server" />
        
<asp:Button ID="btnEdit" runat="server" Text="Edit" />
</telerik:RadAjaxPanel>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    
<Windows>
        
<telerik:RadWindow ID="radWin1" runat="server" 
                
OpenerElementID="<%#btnEdit.ClientID %>"
                NavigateUrl="~/Popup.aspx" 
 
                
Modal="true" ReloadOnShow="true"
                
ClientCallBackFunction="CallBackFunction">
        
</telerik:RadWindow>
    
</Windows>
</telerik:RadWindowManager>


==========================================
Popup.aspx

<

script type="text/javascript" language="javascript">
function
GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) 
        oWindow = window.radWindow;
    else if (window.frameElement.radWindow) 
        oWindow =  window.frameElement.radWindow;
    return oWindow;
}

</script>

<
asp:TextBox ID="txt1" runat="server" />
<asp:TextBox ID="TextBox1" runat="server" />
<br />
<asp:Button ID="btnOK" Text="Save" runat="server" onclick="btnOK_Click" />
<asp:Button ID="btnCancel" Text="Cancel" runat="server" OnClientClick="GetRadWindow().close(); return false;" />

vn
Top achievements
Rank 1
 answered on 19 May 2008
3 answers
143 views
I'm having an issue embedding a RadMenu within a RadGrid cell.  Its within a TemplateColumn and binds correctly through the ItemDatabound event, but there's something off on the rendering. 

I've got scrolling enabled, but the RadMenus render past the defined boundaries of the RadGrid.  The same effect can be seen by adding standard ASP Button controls instead.  I changed the RadGrid back to the RadControls ASP.NET Q1-2008 as a fix for now.. is there a fix for this?
Dimo
Telerik team
 answered on 19 May 2008
1 answer
162 views
I am trying to show and image only on row mouse over.  and once the row is click(as stated above), keep this picture showing.  onrowmouseout, the image would disappear.  Not just mousing over the image, but mouse over the row.  Any help would be greatly appreciated.

Thanks for you help.

Joshua
Dimo
Telerik team
 answered on 19 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?