Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
125 views
Hi

I am building a RadGrid dynamically, thus:

protected void Page_Init(object source, System.EventArgs e)
        {
            this.phRadGrid1.Controls.Add(DefineGridStructure());
            RadAjaxManager manager = new RadAjaxManager();
            manager.ID = "RadAjaxManager1";
            manager.DefaultLoadingPanelID = "RadAjaxLoadingPanel1";
            this.Page.Form.Controls.Add(manager);
        }

and then in the Page_Load event I am setting the Ajax to the Grid

// ajaxify Grid
            RadGrid1 = (RadGrid)phRadGrid1.FindControl("RadGrid1");
            RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
            manager.AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1);

This works 100%.

The grid is made up of Parent and Child Rows - I want to DISABLE the Ajax when I am working in the Child Rows.
I think I need to be more specific in defining the AjaxSettings above ie in this line:
manager.AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1);

I am not sure how to begin to do this. My first thought is to catch the Ajax Begin and End Response events in the Javascript and only pass them on when active in the parent rows of the grid, but I am not sure if this will work?

Some pointers would be much appreciated.

Regards
Simon
Simon
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
91 views
I'm having a problem implementing Load On Demand for TabStrip. I've implemented everything on the demo page but when I run my code I'm getting an error in the code behind on the function:

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab.Text);
    e.Tab.PageView.Selected = true;
}

The error is "Multiple controls with the same ID 'Subdomains' were found. FindControl requires that controls have unique IDs.". Basically when the page loads first and you click on the tabs everything is great and working but if you re-click a tab that you already have clicked then you get this error. It's almost like the JS code below isn't running and yes my RadTabStrip is calling OnClientTabSelecting="onTabSelecting".

<script type="text/javascript">
function onTabSelecting(sender, args)
{
    if (args.get_tab().get_pageViewID())
    {
        args.get_tab().set_postBack(false);
    }
}
</script>

Any help would be greatly appreciated. Thanks!
Dimitar Terziev
Telerik team
 answered on 06 Sep 2011
4 answers
195 views
Hi,
  I hava create a RadGrid to Bind something using DetailsTable , set the AutoGenerateColumns as true .
 It display well at first time , but when I Rebind the datasource(the columns is not as same as the first) , The Columns of DetailsTable don't change  .

The Code like below :

1.aspx:
    
    <div> 
        <asp:DropDownList ID="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true"
        <asp:ListItem Value="1" Text="MoreParams"></asp:ListItem> 
        <asp:ListItem Value="0" Text="LessParams" ></asp:ListItem> 
        </asp:DropDownList> 
        <rad:RadGrid ID="rgBug"  runat="server" AutoGenerateColumns="true" ondetailtabledatabind="rgBug_DetailTableDataBind" onneeddatasource="rgBug_NeedDataSource" > 
           <ClientSettings AllowExpandCollapse="true"></ClientSettings> 
            <MasterTableView  HierarchyDefaultExpanded="true" HierarchyLoadMode="Client"
                <DetailTables> 
                <rad:GridTableView  runat="server"></rad:GridTableView> 
                </DetailTables> 
            </MasterTableView> 
        </rad:RadGrid> 
    </div> 


2.cs:
    
   protected DataTable LessDataTable() 
        { 
            DataTable dt = new DataTable(); 
            DataColumn dc = new DataColumn(); 
            dc.Caption = "ID"
            dc.ColumnName = "ID"
            DataColumn dc2 = new DataColumn(); 
            dc2.Caption = "Name"
            dc2.ColumnName = "Name"
            dt.Columns.Add(dc); 
            dt.Columns.Add(dc2); 
 
            DataRow row = dt.NewRow(); 
            row[0] = 1; 
            row[1] = "Bruce Lee"; 
 
            dt.Rows.Add(row); 
            return dt; 
        } 
 
        protected DataTable MoreDataTable() 
        { 
            DataTable dt = new DataTable(); 
            DataColumn dc = new DataColumn(); 
            dc.Caption = "ID"
            dc.ColumnName = "ID"
            DataColumn dc2 = new DataColumn(); 
            dc2.Caption = "Name"
            dc2.ColumnName = "Name"
            DataColumn dc3new DataColumn(); 
            dc3.Caption = "Age"
            dc3.ColumnName = "Age"
            dt.Columns.Add(dc); 
            dt.Columns.Add(dc2); 
            dt.Columns.Add(dc3); 
 
            DataRow row = dt.NewRow(); 
            row[0] = 1; 
            row[1] = "Hyden Panetieer"; 
            row[2] = 23; 
 
            dt.Rows.Add(row); 
            return dt; 
        } 
 
        protected void rgBug_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e) 
        { 
            if (DropDownList1.SelectedIndex != 0) 
                rgBug.DataSource = LessDataTable(); 
            else 
                rgBug.DataSource = MoreDataTable(); 
        } 
 
        protected void rgBug_DetailTableDataBind(object source, Telerik.WebControls.GridDetailTableDataBindEventArgs e) 
        { 
            if (DropDownList1.SelectedIndex != 0) 
                 e.DetailTableView.DataSource = LessDataTable(); 
            else 
                 e.DetailTableView.DataSource = MoreDataTable(); 
        } 
 
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            rgBug.Rebind(); 
        } 


========

The code is easy , but it cant do best for me
 





Dheeraj
Top achievements
Rank 1
 answered on 06 Sep 2011
5 answers
565 views
Hi all,

why does onupdatecommand and onitemupdated not fierd ?? here is the codes : 

aspx :
        <telerik:RadGrid ID="RadGrid1" runat="server" OnItemUpdated="companyGridUpdated" 
            AllowPaging="True" AllowSorting="True" OnUpdateCommand="companyGridUpdate" 
            AutoGenerateColumns="False" GridLines="None" Skin="Vista" AllowAutomaticUpdates="True">
                <MasterTableView ShowFooter="True" DataKeyNames="ID">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="False">
                        </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn UniqueName="CompanyID" DataField="CompanyID" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Notes" DataField="Notes" UniqueName="Notes">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="IP Address" DataField="IPAddress" UniqueName="IPAddress">
                        </telerik:GridBoundColumn>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                        </telerik:GridEditCommandColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                        <FormTemplate>
                            <table id="Table1" style="padding:5px;">
                                <tr valign="top">
                                    <td colspan="2">
                                        <br />
                                        <b>Edit details for 
                                            <asp:Label Id="Label1" Text='<%#Bind("Name") %>' runat="server"></asp:Label>
                                        </b><br />
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td>
                                        Node Server Name : 
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat="server" Text='<%#Bind("Name") %>'
                                        ID="RadEditNodeName" DataTextField="Name"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td>
                                        Node Server Details : 
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat="server" Text='<%#Bind("Notes") %>' 
                                         ID="RadEditNodeNotes" DataTextField="Notes"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td colspan="2">
                                      <asp:Button ID="btnUpdate" Text="Update" runat="server" CausesValidation="False" CommandName="Update">
                                   </asp:Button>
                                   <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                </MasterTableView>
        </telerik:RadGrid>
<asp:HiddenField ID="GridEditableValue" runat="server" />
CS : 
        protected void Panel_Load(object sender, System.EventArgs e)
        {
            BTServerNode[] nodes = (BTServerNode[])ViewState["NODES"];

            if (nodes == null)
            {
                BTServerNodeFactory nodeFactory = new BTServerNodeFactory(ConnectionString);
                nodes = nodeFactory.GetNodesByCompany(AdminUser.CompanyID);
                ViewState["NODES"] = nodes;
            }

            RadGrid1.DataSource = nodes;
            RadGrid1.DataBind();
        }

        protected void companyGridUpdate(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName.Equals("Update"))
            {
                RadTextBox nameBox = (RadTextBox)e.Item.FindControl("RadEditNodeName");
                RadTextBox notesBox = (RadTextBox)e.Item.FindControl("RadEditNodeNotes");
                GridEditableValue.Value = nameBox.Text + ";" + notesBox.Text;
            }
        }

        protected void companyGridUpdated(object sender, Telerik.Web.UI.GridUpdatedEventArgs e)
        {
//TODO: save the values from GridEditableValue to db.
        }
Jai
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
45 views
I have the basic scheduler working fine, shows grouped resources, but want to scheduler to show/display one group at a time, how I might be able to control which resource I 'filter' on.
Plamen
Telerik team
 answered on 06 Sep 2011
2 answers
69 views
We're using the asp.net radscheduler (day and weekview). It's populated through a webservice.

1) Is it possible to make certain cells have another background color? As an example, make 08:00-10:00, 10:30-12:00, 13:00-15:00, 15:30-17:00 (mon - fri) light green while the rest of the cells are light red?

2) Can you format the contents of the appointment in a better way? It seems now both the appointment content and the tooltip uses the Subject property. If you use html-tags in the Subject the tooltip will look bad (showing the tags).

3) The date in the headers gets written in english (like "monday"), we would like this to be swedish. We tried setting the Culture property to "sv-SE", but didn't seem to have an effect. Calling System.DateTime.Now.ToString() on the asp.net webpage prints in swedish so we don't think it's a server setting/issue.

Thanks
Plamen
Telerik team
 answered on 06 Sep 2011
5 answers
145 views
Hi,

I have a page where I am using an AjaxManager, and a RadGrid. I have added a loading panel, so that it will display when I am doing an Ajax update on the grid.
However, whatever I try, the loading panel will just not display. I have used these before, and I can't see any differences in my other projects than what I have done here - other than this project uses the latest version of the controls (Q2 2011)

HTML for my page is below (Script manager is in the Master page)

Can anybody spot anything obvious? this has been driving me mad for nearly 2 days now!

Thank you

Paul

<%@ Page Title="" Language="C#" MasterPageFile="~/Master Pages/XLogix_SmallHeader_Flat.master" AutoEventWireup="true" CodeFile="WHLocations.aspx.cs" Inherits="WHLocations" %>
<%@ MasterType VirtualPath="~/Master Pages/XLogix_SmallHeader_Flat.master"  %>
<%@ Register Assembly="PACWebControls" Namespace="PACWebControls" TagPrefix="pac" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="headercontentarea" Runat="Server">
  <script type="text/javascript">
 
 
  </script>
 
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="maincontentarea" Runat="Server">
 
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    DefaultLoadingPanelID="GridLoadingPanel">
    <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="WarehouseCombo">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SearchPanel" />
          <telerik:AjaxUpdatedControl ControlID="LocationsGrid" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="SearchBtn">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="LocationsGrid" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="FilterRadio">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SearchPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="SingleRadio">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SearchPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="ActiveCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="SingleCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="PickFaceCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="PackagingCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="SinBinCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="QuarantineCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="LoadBayCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="TransitCheck">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="SettingsPanel" />
        </UpdatedControls>
      </telerik:AjaxSetting>
    </AjaxSettings>
  </telerik:RadAjaxManager>
  <div class="Label" style="left: 20px; width: 280px; position:absolute; top: 0px; height: 25px">Warehouse</div>
  <div style="left: 150px; width: 280px; position:absolute; top: 0px; height: 25px">
    <telerik:RadComboBox ID="WarehouseCombo" runat="server"
      EnableEmbeddedSkins="False" Skin="XLogixBlue" AutoPostBack="True"
      onselectedindexchanged="WarehouseCombo_SelectedIndexChanged">
    </telerik:RadComboBox>
  </div>
 
  <div class="PanelArea" id="SearchArea" style="left: 0px; width: 980px; position:absolute; top: 30px; height: 80px">
    <div class="PanelTopLeft"></div>
    <div class="PanelBottomLeft"></div>
    <div class="PanelBottomRight"></div>
    <div class="PanelTopRight"></div>
 
    <asp:Panel ID="SearchPanel" style="position: absolute; top: 0px; left: 0px; width: 980px; height: 80px;" runat="server" >
 
      <div style="left: 920px; position: absolute; top: 15px">
        <pac:PACWebImageBtn ID="SearchBtn" runat="server" ImageDisabledName="Search_Lge_Btn_DIS.png"
          ImageDownName="Search_Lge_Btn_DN.png"
          ImageHighlightName="Search_Lge_Btn_HL.png" ImageNormalName="Search_Lge_Btn.png"
          ImagePath="/Warehousing/Images/Icon_Buttons_48/" Style="z-index: 100; left: 0px; position: absolute;
          top: 0px" ToolTip="Search" Enabled="True" onclick="SearchBtn_Click"
          />
      </div>
 
      <div style="left: 20px; width: 150px; position:absolute; top: 12px; height: 25px">
        <asp:RadioButton ID="FilterRadio" CssClass="BoldLabel" runat="server"
          Text="Filter Locations" GroupName="SearchMode" Checked="true"
          AutoPostBack="True" oncheckedchanged="FilterRadio_CheckedChanged" />
      </div>
      <div style="left: 20px; width: 150px; position:absolute; top: 47px; height: 25px">
      <asp:RadioButton ID="SingleRadio" CssClass="BoldLabel" runat="server"
          Text="Single Location" GroupName="SearchMode"
          AutoPostBack="True" oncheckedchanged="SingleRadio_CheckedChanged" />
      </div>
 
      <div class="Label" style="left: 190px; width: 120px; position:absolute; top: 15px; height: 25px">Aisle</div>
      <div style="left: 240px; width: 200px; position:absolute; top: 12px; height: 25px">
        <telerik:RadComboBox ID="AislesCombo" runat="server" EnableEmbeddedSkins="False" Skin="XLogixBlue">
        </telerik:RadComboBox>
      </div>
 
      <div class="Label" style="left: 440px; width: 280px; position:absolute; top: 15px; height: 25px">Column</div>
      <div style="left: 500px; width: 170px; position:absolute; top: 12px; height: 25px">
        <telerik:RadNumericTextBox ID="ColumnEdit" runat="server"
          EnableEmbeddedSkins="False" Skin="XLogixBlue" LabelCssClass="" MaxLength="3"
          Width="100px">
        </telerik:RadNumericTextBox>
      </div>
 
      <div class="Label" style="left: 670px; width: 280px; position:absolute; top: 15px; height: 25px">Row</div>
      <div style="left: 720px; width: 200px; position:absolute; top: 12px; height: 25px">
        <telerik:RadComboBox ID="RowsCombo" runat="server" EnableEmbeddedSkins="False" Skin="XLogixBlue">
        </telerik:RadComboBox>
      </div>
 
      <div class="Label" style="left: 170px; width: 280px; position:absolute; top: 50px; height: 25px">Location</div>
      <div style="left: 240px; width: 280px; position:absolute; top: 47px; height: 25px">
        <telerik:RadTextBox ID="LocationEdit" runat="server"
          EnableEmbeddedSkins="False" Skin="XLogixBlue" LabelCssClass="" MaxLength="10"
          Width="150px" Enabled="false">
        </telerik:RadTextBox>
      </div>
 
 
    </asp:Panel>
  </div>
 
  <telerik:RadAjaxLoadingPanel ID="GridLoadingPanel" Runat="server" style="position:absolute;" IsSticky="true"
    Skin="Office2007" >
  </telerik:RadAjaxLoadingPanel>
 
  <div class="PanelArea" id="GridArea" style="left: 0px; width: 980px; position:absolute; top: 130px; height: 300px">
    <div class="PanelTopLeft"></div>
    <div class="PanelBottomLeft"></div>
    <div class="PanelBottomRight"></div>
    <div class="PanelTopRight"></div>
    <div id="GridContainer" style="position: absolute; width: 960px; height: 400px; left: 10px; top: 10px">
 
      <telerik:RadGrid ID="LocationsGrid" runat="server" AutoGenerateColumns="False"
        CellSpacing="0" AllowSorting="True" Height="280px"
        EnableEmbeddedSkins="False" GroupingEnabled="False" Skin="XLogixBlue"
        GridLines="None" AllowMultiRowSelection="True" >
        <ClientSettings AllowExpandCollapse="False" AllowKeyboardNavigation="True">
          <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />
          <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView>
        <CommandItemSettings ExportToPdfText="Export to PDF"
            AddNewRecordImageUrl="AddRecord.gif" ExportToCsvImageUrl="ExportToCsv.gif"
            ExportToExcelImageUrl="ExportToExcel.gif" ExportToPdfImageUrl="ExportToPdf.gif"
            ExportToWordImageUrl="ExportToWord.gif" RefreshImageUrl="Refresh.gif"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
 
          <Columns>
            <telerik:GridClientSelectColumn UniqueName="LGClientSelectColumn">
              <HeaderStyle Width="30px" />
            </telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn DataField="warehouseid" Display="True"
              UniqueName="LGWarehouseID" HeaderText="W/H">
              <HeaderStyle Width="30px" HorizontalAlign="Center" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="locationid" Display="True"
              UniqueName="LGLocationID" HeaderText="Loc">
              <HeaderStyle Width="60px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="description" Display="False"
              HeaderText="Job Type" UniqueName="LGDescription" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="totalcapacity" Display="False"
              HeaderText="Priority" UniqueName="LGTotalCapacity" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="totalweight" Display="False"
              UniqueName="LGTotalWeight" >
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="allowsphysical" Display="False"
              UniqueName="LGAllowsPhysical" >
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="allowsquarantine" Display="False"
              UniqueName="LGAllowsPhysical" >
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="allowsrejected" Display="False"
              UniqueName="LGAllowsPhysical" >
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="active" Display="True"
              UniqueName="LGActive" HeaderText="Active" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
           <telerik:GridCheckBoxColumn DataField="singlebatchonly" Display="True"
              UniqueName="LGSingleBatch" HeaderText="Single" >
              <HeaderStyle Width="40px"  HorizontalAlign="Center"/>
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="gridreference" Display="False"
              UniqueName="LGGridReference" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="auditoperation" Display="False"
              HeaderText="Pallet" UniqueName="JGSerialNo" >
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="iscapacityused" Display="False"
              UniqueName="LGCapacityUsed" >
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="isweightused" Display="False"
              UniqueName="LGWeightUsed" >
            </telerik:GridCheckBoxColumn>
             <telerik:GridCheckBoxColumn DataField="istransitlocation" Display="True"
              UniqueName="LGTransitLocation" HeaderText="Tran" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="issublocation" Display="True"
              UniqueName="LGSubLocation" HeaderText="S/Loc" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="isloadingbay" Display="True"
              UniqueName="LGLoadingBay" HeaderText="L/Bay" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="issinbin" Display="True"
              UniqueName="LGSinBin" HeaderText="SinBin" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="isquarantine" Display="True"
              UniqueName="LGQuarantine" HeaderText="Q/tn" >
              <HeaderStyle Width="30px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="pickface" Display="True"
              UniqueName="LGPickFace" HeaderText="Pick" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridCheckBoxColumn DataField="packaging" Display="True"
              UniqueName="LGPackaging" HeaderText="Active" >
              <HeaderStyle Width="40px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="area" Display="False"
              HeaderText="Area" UniqueName="LGArea" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="category" Display="True"
              HeaderText="Cat"  UniqueName="LGCategory" >
              <HeaderStyle Width="30px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="palletcategory" Display="False"
              HeaderText="P/Cat"  UniqueName="LGPalletCategory" >
              <HeaderStyle Width="30px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="pallettype" Display="True"
              HeaderText="P/Type"  UniqueName="LGPalletType" >
              <HeaderStyle Width="30px" />
              <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="priority" Display="false"
              HeaderText="Priority" UniqueName="LGPriority" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="aisle" Display="false"
              HeaderText="Aisle" UniqueName="LGAisle" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="column" Display="false"
              HeaderText="Column" UniqueName="LGColumn" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="row" Display="false"
              HeaderText="Row" UniqueName="LGRow" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="height" Display="True"
              UniqueName="LGHeight" HeaderText="Height" >
              <HeaderStyle Width="40px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="serialnumber" Display="True"
              UniqueName="LGSerialNumber" HeaderText="Pallet" >
              <HeaderStyle Width="120px" />
            </telerik:GridBoundColumn>
          </Columns>
 
          <EditFormSettings>
          <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif" FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
          </EditFormSettings>
 
        </MasterTableView>
 
        <FilterMenu EnableImageSprites="False" EnableEmbeddedSkins="False"></FilterMenu>
 
        <HeaderContextMenu EnableEmbeddedSkins="False" CssClass="GridContextMenu GridContextMenu_XLogixBlue"></HeaderContextMenu>
 
      </telerik:RadGrid>
    </div>
 
 
  </div>
 
 
  <div class="PanelArea" id="Div1" style="left: 0px; width: 980px; position:absolute; top: 490px; height: 180px">
    <div class="PanelTopLeft"></div>
    <div class="PanelBottomLeft"></div>
    <div class="PanelBottomRight"></div>
    <div class="PanelTopRight"></div>
 
    <asp:Panel ID="SettingsPanel" style="position: absolute; top: 0px; left: 0px; width: 980px; height: 180px;" runat="server" >
 
      <div style="left: 20px; position: absolute; top: 15px">
        <pac:PACWebImageBtn ID="EditBtn" runat="server" ImageDisabledName="Edit_Btn_DIS.png"
          ImageDownName="Edit_Btn_DN.png"
          ImageHighlightName="Edit_Btn_HL.png" ImageNormalName="Edit_Btn.png"
          ImagePath="/Warehousing/Images/Icon_Buttons_48/" Style="z-index: 100; left: 0px; position: absolute;
          top: 0px" ToolTip="Search" Enabled="True" onclick="EditBtn_Click"
          />
      </div>
       
      <div style="left: 120px; width: 200px; position:absolute; top: 17px; height: 25px">
        <asp:CheckBox ID="ActiveCheck" runat="server" cssclass="BoldLabel"
          Text="Location Active" AutoPostBack="True"
          oncheckedchanged="ActiveCheck_CheckedChanged" Enabled="False" />
      </div>
 
      <div class="Label" style="left: 120px; width: 280px; position:absolute; top: 47px; height: 25px">Pallet Category</div>
      <div style="left: 150px; width: 280px; position:absolute; top: 67px; height: 25px">
        <telerik:RadComboBox ID="PalletCatsCombo" runat="server"
          EnableEmbeddedSkins="False" Skin="XLogixBlue" Enabled="False">
        </telerik:RadComboBox>
      </div>
      <div class="Label" style="left: 120px; width: 280px; position:absolute; top: 107px; height: 25px">Put-Away Category</div>
      <div style="left: 150px; width: 280px; position:absolute; top: 127px; height: 25px">
        <telerik:RadComboBox ID="PutawayCatsCombo" runat="server" EnableEmbeddedSkins="False" Skin="XLogixBlue" Enabled="false">
        </telerik:RadComboBox>
      </div>
 
      <div style="left: 420px; width: 200px; position:absolute; top: 17px; height: 25px">
        <asp:CheckBox ID="SingleCheck" runat="server" cssclass="Label"
          Text="Single Pallet (Rack)" AutoPostBack="True"
          oncheckedchanged="SingleCheck_CheckedChanged" Enabled="False" />
      </div>
      <div style="left: 420px; width: 200px; position:absolute; top: 47px; height: 25px">
        <asp:CheckBox ID="PickFaceCheck" runat="server" cssclass="Label"
          Text="Pick Face" AutoPostBack="True" Enabled="False"
          oncheckedchanged="PickFaceCheck_CheckedChanged" />
      </div>
      <div style="left: 420px; width: 200px; position:absolute; top: 77px; height: 25px">
        <asp:CheckBox ID="PackagingCheck" runat="server" cssclass="Label"
          Text="Packaging" AutoPostBack="True" Enabled="false"
          oncheckedchanged="PackagingCheck_CheckedChanged" />
      </div>
      <div style="left: 420px; width: 200px; position:absolute; top: 107px; height: 25px">
        <asp:CheckBox ID="SubLocCheck" runat="server" cssclass="Label"
          Text="Sub-Location" AutoPostBack="True" Enabled="false"
          oncheckedchanged="SubLocCheck_CheckedChanged" />
      </div>
      <div class="Label" style="left: 423px; width: 280px; position:absolute; top: 137px; height: 25px">Height (m)</div>
      <div style="left: 520px; width: 200px; position:absolute; top: 134px; height: 25px">
        <telerik:RadNumericTextBox ID="HeightEdit" runat="server"
          EnableEmbeddedSkins="False" Skin="XLogixBlue" LabelCssClass="" MaxLength="6"
          Width="70px" Enabled="false">
        </telerik:RadNumericTextBox>
      </div>
 
      <div style="left: 690px; width: 200px; position:absolute; top: 17px; height: 25px">
        <asp:CheckBox ID="SinBinCheck" runat="server" cssclass="Label" Text="Sin Bin"
          AutoPostBack="True" oncheckedchanged="SinBinCheck_CheckedChanged"
          Enabled="False" />
      </div>
      <div style="left: 690px; width: 200px; position:absolute; top: 47px; height: 25px">
        <asp:CheckBox ID="QuarantineCheck" runat="server" cssclass="Label"
          Text="Quarantine" AutoPostBack="True"
          oncheckedchanged="QuarantineCheck_CheckedChanged" Enabled="False" />
      </div>
      <div style="left: 690px; width: 200px; position:absolute; top: 77px; height: 25px">
        <asp:CheckBox ID="LoadBayCheck" runat="server" cssclass="Label"
          Text="Loading Bay" AutoPostBack="True"
          oncheckedchanged="LoadBayCheck_CheckedChanged" Enabled="False" />
      </div>
      <div style="left: 690px; width: 200px; position:absolute; top: 107px; height: 25px">
        <asp:CheckBox ID="TransitCheck" runat="server" cssclass="Label"
          Text="Transit Location" AutoPostBack="True"
          oncheckedchanged="TransitCheck_CheckedChanged" Enabled="False" />
      </div>
 
      <div style="left: 920px; position: absolute; top: 15px">
        <pac:PACWebImageBtn ID="SaveBtn" runat="server" ImageDisabledName="OK_Lge_Btn_DIS.png"
          ImageDownName="OK_Lge_Btn_DN.png"
          ImageHighlightName="OK_Lge_Btn_HL.png" ImageNormalName="OK_Lge_Btn.png"
          ImagePath="/Warehousing/Images/Icon_Buttons_48/" Style="z-index: 100; left: 0px; position: absolute;
          top: 0px" ToolTip="Search" Enabled="False" onclick="SaveBtn_Click"
          />
      </div>
 
    </asp:Panel>
  </div>
 
 
</asp:Content>

Iana Tsolova
Telerik team
 answered on 06 Sep 2011
1 answer
36 views
I have an image inside an anchor tag e.g.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

<telerik:RadEditor ID="RadEditor1" runat="server">

<Content>

<a href="#"><img src="clip_image004.jpg" /></a>

</Content>

</telerik:RadEditor>

In IE9 you can click on the "a" in the tag inspector and the correct property inspector will appear for the anchor tag, however for IE8 (or IE9 in compatibility mode), the property inspector displays the image properties instead of the anchor tag properties.

 

 

 

Rumen
Telerik team
 answered on 06 Sep 2011
2 answers
323 views
Hello,
Is there a way to set an exact width for template column?
Thank you.
Kiara
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
118 views
Hi,

I have a radchart ( a bar chart ) and I disabled the legend because I do not need it but disabling it  creates extra space on the right ....see the image attached .... What do I have to do to center the plot ?


Seabus
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 06 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?