

I need to create the following page layout with Splitters and Panes; the entire browser window should be occupied with the splitter and must grow and shrink with the browser. The page would have 3 main sections: top, middle, bottom. The top section will have a menu, the bottom section would have a table or a DocZone. The middle part is divided into two sections, left and right with a Splitbar to be able to move it to the right or left. Here is what’s really important:
Your help with this layout would be much appreciated,
-Sam
|
|
//Client side function called by my button in the first tab:triggerMyThridTab: function() { this._needToAdd = true; this._tabs.get_tabs().getTab(2).set_selected(true);}//.... calling the selected functiononTabSelected: function(sender, args){ if(this._needToAdd){ sender._userControl._needToAdd = true; sender._userControl._myThridTab.raise_load(); }}//In my thirdTab usercontrol load function....raise_load: function(){ if(this._needToAdd){ var myAction = "addNewEntry"; eval("var exec = function() { $find(window.idAjaxManager).ajaxRequestWithTarget('" + this._triggerUniqueID + "', '\\{ \\'Action\\':\\'" + myAction + "\\'}' ); }"); ExecRequeteAjax(this, exec, 5, null);//This calls the postback }}'This is the userControl contained in the third tabPrivate Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If ValidateEventArguments() Then 'I must open the grid in insert mode MyGrid.MasterTableView.IsItemInserted = True MyGrid.Rebind() End IfEnd Sub<telerik:RadGrid ID="MyGrid" runat="server" > <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/MyAddItemCustomUC.ascx" /> <Columns>....</Columns></telerik:RadGrid>Protected Sub MyGrid_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles MyGrid.ItemCreated If TypeOf e.item Is GridEditFormInsertItem Then Dim control As MyCustomEditUC = DirectCast(e.Item.FindControl(GridEditFormInsertItem.EditFormUserControlID), MyCustomEditUC) control.SomePropreties = PropretiesInViewState End IfEnd Sub<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="200px" Width="300px" DropDownWidth="520px" EmptyMessage="Select Item" HighlightTemplatedItems="true" EnableLoadOnDemand="True" RadComboBoxImagePosition="Right" AllowCustomText="true" DataTextField="hardware_no" DataValueField="id_comp" SelectedValue='<%# Eval("id_comp") %>' Text='<%# Eval("hardware_no") %>' AutoPostBack="False" DataSourceID="SqlDataSource1" > <HeaderTemplate> <table style="width: 480px" cellspacing="0" cellpadding="0"> <tr> <td style="width: 20px;"> </td> <td style="width: 35px;"> Amount</td> <td style="width: 100px;"> Hardware Nr</td> <td style="width: 160px;"> Department</td> <td style="width: 140px;"> Person</td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width: 480px" cellspacing="0" cellpadding="0"> <tr> <td style="width: 20px;"> <asp:CheckBox runat="server" ID="chk1" Checked="false" /> </td> <td style="width: 35px;"> <asp:TextBox ID="TextBoxAmount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "amount") %>' Width="25" ></asp:TextBox> </td> <td style="width: 100px;"> <%# DataBinder.Eval(Container.DataItem, "no_h")%> </td> <td style="width: 160px;"> <%# DataBinder.Eval(Container.DataItem, "dept")%> </td> <td style="width: 140px;"> <%# DataBinder.Eval(Container.DataItem, "person")%> </td> </tr> </table> </ItemTemplate> </telerik:RadComboBox>
<telerik:RadGrid runat="server" AllowPaging="True" ID="grdSPFilters" OnNeedDataSource="grdSPFilters_NeedDataSource" Width="350px" OnRowDrop="grdSPFilters_RowDrop" AllowMultiRowSelection="false" OnEditCommand="grdSPFilters_EditCommand" AutoGenerateColumns="false"><EditFormSettings UserControlName="FilterMatchRuleBuilder.ascx" EditFormType="WebUserControl"> <EditColumn UniqueName="FilterMatchRuleBuilder01"> </EditColumn> </EditFormSettings>public void grdSPFilters_EditCommand(object sender, GridCommandEventArgs e) { // snip...
GridDataItem item = (GridDataItem)e.Item;
FilterMatchRuleBuilder frb = item.FindControl("FilterMatchRuleBuilder01") as FilterMatchRuleBuilder;grdSPFilters_EditCommand method e.Item.IsInEditMode is always equal to false.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.master.cs" Inherits="Automation.Main" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <link href="Styles/CssReset.css" rel="stylesheet" /></head><body > <form ids="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1"></telerik:RadScriptManager> <div class="header"> <h1>Your Name Here</h1> <h2>My Personal Site</h2> <div class="menua"> </div> </div> <div class="context" > <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"> <telerik:RadPane runat="server" ID="RadPane1" Width="70%"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </telerik:RadPane> <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Backward" /> <telerik:RadPane runat="server" ID="Radpane2" Width="330px"> </telerik:RadPane> </telerik:RadSplitter> </div> <div class="footerbg"> <div class="footer"> </div> </div> </form></body></html>
Webform:
<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Automation.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="content">
<h3>Request an Account</h3>
<p>Accounts will be activated pending the approval of the Administrator.</p>
</div>
</asp:Content>
I'm using a RadHtmlChart based on HTML5 from telerik. I'm using a Pie Chart, and I want to display the method's values. How should I save the values -- maybe as a list? It shouldn't have a big impact on the method itself, because I need this method for some report stuff.
public double GetBookedVacation(int year)
{
int counter = 0;
if (this.AnnualVacations.Any())
{
foreach (HtVacationDay vacationDay in HtVacationDays)
{
foreach (DateTime vacationDayDate in vacationDay.GetDates())
{
if (vacationDayDate.Year == year)
{
counter++;
}
}
}
}
return counter;
}
Thanks for help and fast answer.