Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
250 views
I've just installed the VSE with no apparent problems.

I then upgraded my machine to install SP2 of the AJAX controls.

Firing up my project and running Telerik|Install Wizard reported, correctly, that the solution was currently usinging an old version (SP1, to be precise) and I opted to upgrade.

The machine clicked and wrrred a bit and I got an error about a file no being accessible. I believe the file was "en-US.tdf" but I may be misremembering. I clicked OK, the only option, and was returned to my project.

Checking the "bin" directory it appears that the correct DLL is in place so I compiled the thing and tried to run it. I got an error saying that it couldn't load the Telerik.Web.UI.DLL, but it was looking for the previously installed version. A quick edit of the web.config file fixed that problem.

So, 2 questions:
  1. Should I worry about the inaccessible file?
  2. Why doesn't the upgrade wizard upgrade the entry in web.config.

Enquiring minds need to know...

--
Stuart
Andrey
Telerik team
 answered on 11 Sep 2009
2 answers
96 views
Hello,

How could I populate a custom attributes from a List(of Object)? Let's say that I have an class rComboItem with 3 public properties: Name, Key & Type. After populating a List(of rComboItem), I want to set the Name to the DataTextField property, Key to DataValueField, and Type to Attributes("Type"). Is it possible? Thanks in advance.

Tri
Tri Nguyen
Top achievements
Rank 1
 answered on 11 Sep 2009
5 answers
187 views
I have a RadGrid that is on a .ascx webUserControl. In that radgrid I have defined another webusercontrol that I want to use as the editor form the when the user clicks "edit" on a row in the grid.

Because I want to display validator messages on the popup form, I coded the onclick events for the insert and update buttons as such:

         <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"
            Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' 
            OnClick="btnUpdate_Click" TabIndex="6" ></asp:Button> 
         <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" 
            Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' OnClick="btnInsert_Click" 
            TabIndex="7"></asp:Button> 
         &nbsp; 
         <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
            CommandName="Cancel" TabIndex="8"></asp:Button> 
 

I have several issues related to this for processing when the user clicks insert or update:

1. messages caught on the server side are not displaying on the popup form. (e.g. foreigh key violations, etc)
2. i cannot figure out how to exit the form if the user successfully enters the data.

Here is the full ascx for this control...

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProposalPartDetails.ascx.cs" 
   Inherits="UserControls_ProposalPartDetails" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<table id="Table1" cellspacing="1" cellpadding="1" border="0" width="600px"
   <tr> 
      <td colspan="2" align="center"
         <asp:ValidationSummary ID="ValidationSummary" runat="server" Font-Bold="true" DisplayMode="BulletList" /> 
         <asp:Label ID="Message" runat="server"></asp:Label> 
         <asp:CustomValidator ID="GeneralValidator" runat="server" Display="Dynamic" /> 
      </td> 
   </tr> 
   <tr> 
      <td> 
         Part Number: 
      </td> 
      <td class="style1"
         <telerik:RadTextBox ID="PartNumber" Text='<%# Bind("PartNumber") %>' runat="server" 
            EmptyMessage="Enter a Part Number" TabIndex="1" MaxLength="21" Width="222px" SelectionOnFocus="SelectAll"
         </telerik:RadTextBox> 
         <asp:RequiredFieldValidator ID="PartNumberValidator" runat="server" ControlToValidate="PartNumber" 
            Display="Dynamic" Text="Please enter a part number" /> 
      </td> 
   </tr> 
   <tr> 
      <td> 
         Part Description: 
      </td> 
      <td class="style1"
         <telerik:RadTextBox ID="Description" Text='<%# Bind("Description") %>' runat="server" Width="222px" EmptyMessage="Enter a Part Description" 
            TabIndex="2" MaxLength="35" SelectionOnFocus="SelectAll"
         </telerik:RadTextBox> 
         <asp:RequiredFieldValidator ID="DescriptionValidator" runat="server" ControlToValidate="Description" 
            Display="Dynamic" Text="please enter a description" /> 
      </td> 
   </tr> 
   <tr> 
      <td> 
         Part Type 
      </td> 
      <td class="style1"
         <telerik:RadComboBox ID="PartType" runat="server" SelectedValue='<%# Bind("PartType") %>' 
            EmptyMessage="Select a Part Type" Height="200px" Width="300px" TabIndex="3" AllowCustomText="true" 
            MarkFirstMatch="true"
         </telerik:RadComboBox> 
         <asp:RequiredFieldValidator ID="PartTypeValidator" Text="please select a part type" 
            runat="server" ControlToValidate="PartType" /> 
      </td> 
   </tr> 
   <tr> 
      <td> 
         UOM 
      </td> 
      <td class="style1"
         <telerik:RadComboBox ID="UnitOfMeasure" runat="server" SelectedValue='<%# Bind("UnitOfMeasure") %>' 
            EmptyMessage="Select a Unit of Measure" Height="200px" Width="400px" TabIndex="4" 
            AllowCustomText="true" MarkFirstMatch="true"
         </telerik:RadComboBox> 
         <asp:RequiredFieldValidator ID="UnitOfMeasureValidator" Text="please select a unit of measure" 
            runat="server" ControlToValidate="UnitOfMeasure" /> 
      </td> 
   </tr> 
   <tr> 
      <td> 
         Comm Code 
      </td> 
      <td class="style1"
         <telerik:RadComboBox ID="CommodityCode" runat="server" SelectedValue='<%# Bind("CommodityCode") %>' 
            EmptyMessage="Select a Commodity Code" Height="200px" Width="400px" TabIndex="5" 
            AllowCustomText="true" MarkFirstMatch="true"
         </telerik:RadComboBox> 
         <asp:CustomValidator ID="CommodityCodeValidator" runat="server" /> 
      </td> 
   </tr> 
   <tr> 
      <td align="right" colspan="2"
         <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' 
            OnClick="btnUpdate_Click" TabIndex="6" ></asp:Button> 
         <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" 
            Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' OnClick="btnInsert_Click" 
            TabIndex="7"></asp:Button> 
         &nbsp; 
         <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
            CommandName="Cancel" TabIndex="8"></asp:Button> 
      </td> 
   </tr> 
   <tr> 
      <td colspan="2"
         <asp:TextBox ID="ProposalPartId" Text='<%# Bind("Id") %>' runat="server" Visible="false" 
            TabIndex="8" /> 
      </td> 
   </tr> 
</table> 
 

Here is the full code-behind for the popup control

using System; 
using System.Collections.Generic; 
using System.Data; 
using System.Web.UI; 
using Harris.Common.ModelStateWrapper_ASPNET; 
using Harris.Project.Mammoth.Domain; 
using Harris.Project.Mammoth.ServiceManager; 
using Telerik.Web.UI; 
 
public partial class UserControls_ProposalPartDetails : UserControl 
    private object _dataItem; 
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        PartNumber.Focus(); 
 
        //if (!Page.IsPostBack) 
        //{ 
        //    LoadListBoxes(); 
        //} 
    } 
    #region Web Form Designer generated code 
    override protected void OnInit(EventArgs e) 
    { 
        // 
        // CODEGEN: This call is required by the ASP.NET Web Form Designer. 
        // 
        InitializeComponent(); 
        base.OnInit(e); 
    } 
 
    /// <summary> 
    ///        Required method for Designer support - do not modify 
    ///        the contents of this method with the code editor. 
    /// </summary> 
    private void InitializeComponent() 
    { 
 
        this.DataBinding += new System.EventHandler(this.ProposalPartDetails_DataBinding); 
 
    } 
    #endregion 
 
    public object DataItem 
    { 
        get 
        { 
            return _dataItem; 
        } 
        set 
        { 
            _dataItem = value; 
        } 
    } 
 
    protected void ProposalPartDetails_DataBinding(object sender, EventArgs e) 
    { 
        LoadListBoxes(); 
    } 
 
    private void LoadListBoxes() 
    { 
        Common.SessionWrapper sessionStateWrapper = new Common.SessionWrapper(); 
 
        // populate the part type list 
        var pts = sessionStateWrapper.GetPartTypeListBoxEntries(); 
        PartType.DataSource = pts; 
        PartType.DataTextField = PartTypeConstants.DescriptionFieldname; 
        PartType.DataValueField = PartTypeConstants.CodeFieldname; 
        //PartType pt = (PartType)DataItem; 
        //string originalPartType = (string.IsNullOrEmpty(Session["originalPartType"].ToString())) ? string.Empty : Session["originalPartType"].ToString(); 
        //PartType.SelectedValue = IsPartTypeInList(pt.Code, pts) ? pt.Code : originalPartType; 
        PartType.DataBind(); 
 
        // populate the uom list 
        var uoms = sessionStateWrapper.GetUnitOfMeasureListBoxEntries(); 
        UnitOfMeasure.DataSource = uoms; 
        UnitOfMeasure.DataTextField = UnitOfMeasureConstants.DescriptionFieldname; 
        UnitOfMeasure.DataValueField = UnitOfMeasureConstants.CodeFieldname; 
        UnitOfMeasure.DataBind(); 
        object value = DataBinder.Eval(DataItem, ProposalPartConstants.UnitOfMeasureFieldname); 
        if (value == DBNull.Value) 
        { 
            UnitOfMeasure.SelectedValue = "EA"
        } 
 
        // populate the commodity code list 
        var commCodes = sessionStateWrapper.GetCommodityCodeListBoxEntries(); 
        CommodityCode.DataSource = commCodes; 
        CommodityCode.DataTextField = CommodityCodeConstants.DescriptionFieldname; 
        CommodityCode.DataValueField = CommodityCodeConstants.CodeFieldname; 
        CommodityCode.DataBind(); 
    } 
 
    private bool IsPartTypeInList(string code, IList<PartType> partTypes) 
    { 
        code = code.Trim().ToUpper(); 
 
        foreach (var partType in partTypes) 
        { 
            if (code == partType.Code) 
            { 
                return true
            } 
        } 
 
        return false
    } 
 
    protected void btnUpdate_Click(object sender, EventArgs e) 
    { 
        Message.Text = string.Empty; 
 
        string unitOfMeasure = UnitOfMeasure.SelectedValue; 
        string partType = PartType.SelectedValue; 
 
        // this section handles when the user enters a value not in the list (client side validator does not kick in) 
        Common propCode = new Common(Session, Request); 
        var modelStateWrapper = new ModelStateWrapper(propCode.GetDictionary()); 
        if (string.IsNullOrEmpty(partType)) 
        { 
            modelStateWrapper.AddError(ProposalPartConstants.PartTypeFieldname, "Please select a part type from the list."); 
        } 
 
        if (string.IsNullOrEmpty(unitOfMeasure)) 
        { 
            modelStateWrapper.AddError(ProposalPartConstants.UnitOfMeasureFieldname, "Please select a unit of measure from the list."); 
        } 
 
        if (modelStateWrapper.GetErrors().Count > 0) 
        { 
            AddErrorsToForm(modelStateWrapper); 
            return
        } 
 
        string partNumber = PartNumber.Text.Trim().ToUpper(); 
        string description = Description.Text.Trim().ToUpper(); 
        string commCode = CommodityCode.SelectedValue; 
 
        const char delim = '-'; 
        string sDelim = delim.ToString(); 
        if (unitOfMeasure.Contains(sDelim)) unitOfMeasure = unitOfMeasure.Split(delim)[0].Trim(); 
        if (partType.Contains(sDelim)) partType = partType.Split(delim)[0].Trim(); 
        if (commCode.Contains(sDelim)) commCode = commCode.Split(delim)[0].Trim(); 
 
        // get part from db 
        string sPartId = ProposalPartId.Text.Trim().ToUpper(); 
        long partId = Convert.ToInt64(sPartId); 
        var proposalPartService = new ProposalPartService(modelStateWrapper); 
        var myPart = proposalPartService.GetProposalPart(partId); 
 
        // save part to db 
        myPart.PartNumber = partNumber; 
        myPart.Description = description; 
        myPart.PartType = partType; 
        myPart.UnitOfMeasure = unitOfMeasure; 
        myPart.CommodityCode = commCode; 
        bool result = proposalPartService.EditProposalPart(myPart); 
 
        // add error messages to the form 
        if (result == false
        { 
            modelStateWrapper = (ModelStateWrapper)proposalPartService.GetModelStateWrapper(); 
            AddErrorsToForm(modelStateWrapper); 
        } 
    } 
 
    protected void btnInsert_Click(object sender, EventArgs e) 
    { 
        Message.Text = string.Empty; 
 
        string partNumber = PartNumber.Text; 
        string description = Description.Text; 
        string unitOfMeasure = UnitOfMeasure.Text; 
        string partType = PartType.SelectedValue; 
        string commCode = CommodityCode.Text; 
 
        const char delim = '-'; 
        string sDelim = delim.ToString(); 
        if (unitOfMeasure.Contains(sDelim)) unitOfMeasure = unitOfMeasure.Split(delim)[0].Trim(); 
        if (partType.Contains(sDelim)) partType = partType.Split(delim)[0].Trim(); 
        if (commCode.Contains(sDelim)) commCode = commCode.Split(delim)[0].Trim(); 
 
        // get proposal service object 
        Common propCode = new Common(Session, Request); 
        var _modelStateWrapper = new ModelStateWrapper(propCode.GetDictionary()); 
        var _proposalPartService = new ProposalPartService(_modelStateWrapper); 
 
        // save it now 
        var partId = propCode.GetCurrentProposalId(); 
        var proposalPart = new ProposalPart(partId, partNumber, description, unitOfMeasure, partType, commCode); 
        bool result = _proposalPartService.CreateProposalPart(proposalPart); 
 
        // add messages to the form 
        if (result == false
        { 
            var msw = _proposalPartService.GetModelStateWrapper(); 
            AddErrorsToForm(msw); 
        } 
        else 
        { 
            Message.Text = "Part " + partNumber + " saved.<br />You may continue adding parts.<br />Click Cancel to exit the form."
        } 
    } 
 
    private void AddErrorsToForm(IModelStateWrapper msw) 
    { 
        foreach (var error in msw.GetErrors()) 
        { 
            switch (error.Key) 
            { 
                case ProposalPartConstants.PartNumberFieldname: 
                    PartNumberValidator.ErrorMessage = error.Value; 
                    break
                case ProposalPartConstants.DescriptionFieldname: 
                    DescriptionValidator.ErrorMessage = error.Value; 
                    break
                case ProposalPartConstants.PartTypeFieldname: 
                    PartTypeValidator.ErrorMessage = error.Value; 
                    break
                case ProposalPartConstants.UnitOfMeasureFieldname: 
                    UnitOfMeasureValidator.ErrorMessage = error.Value; 
                    break
                case ProposalPartConstants.CommodityCodeFieldname: 
                    CommodityCodeValidator.ErrorMessage = error.Value; 
                    break
                default
                    GeneralValidator.ErrorMessage = error.Value; 
                    break
            } 
        } 
    } 
 

Can you help me figure out how to get these two items to behave the way I want to to?

thanks,

- John
Pavlina
Telerik team
 answered on 11 Sep 2009
1 answer
68 views
I have strange error,
Sometimes,  my tabstrip doesn't appears and instead, I see something like this : "ls" and small cubes.
Do you have an ideé ? After, I update the page, it works very well.
Do you have an idea ?

Thank you in advance,



  
Paul
Telerik team
 answered on 11 Sep 2009
1 answer
125 views
Hi,

I have a strange situation where working splines or lines in RadChart gives me the following error on Mono:
(It works fine on IIS7)

Invalid parameter passed. Number of points and types must be same.

Description: HTTP 500. Error processing request.

Stack Trace:

System.ArgumentException: Invalid parameter passed. Number of points and types must be same.  at System.Drawing.Drawing2D.GraphicsPath..ctor (System.Drawing.PointF[] pts, System.Byte[] types, FillMode fillMode) [0x00000]   at System.Drawing.Drawing2D.GraphicsPath..ctor (System.Drawing.PointF[] pts, System.Byte[] types) [0x00000]   at (wrapper remoting-invoke-with-check) System.Drawing.Drawing2D.GraphicsPath:.ctor (System.Drawing.PointF[],byte[])  at Telerik.Charting.RenderEngine.DrawLines (Telerik.Charting.ChartSeries series, Int32 index, System.Drawing.PointF[] points) [0x00000]   at Telerik.Charting.RenderEngine.RenderLineSeries (Telerik.Charting.ChartSeries series, Int32 index) [0x00000]   at Telerik.Charting.RenderEngine.Render (Telerik.Charting.ChartSeries series, Int32 index) [0x00000]   at Telerik.Charting.RenderEngine.RenderPlotAreaElements (Boolean withGrid, Boolean withTicks) [0x00000]   at Telerik.Charting.RenderEngine.Render (IContainer element) [0x00000]   at Telerik.Charting.RenderEngine.Render (Boolean shouldClone) [0x00000]   at Telerik.Charting.Chart.GetImage (Int32 width, Int32 height) [0x00000] 

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433


My code is as follows:

ChartSeries chartSeries; 
radChart.Series.Clear(); 
 
radChart.PlotArea.XAxis.Clear(); 
radChart.PlotArea.XAxis.AutoScale = false
radChart.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Between; 
radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 270; 
radChart.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Percentage(20); 
radChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top; 
 
radChart.PlotArea.YAxis.IsLogarithmic = true
 
 
chartSeries = new ChartSeries("test", ChartSeriesType.Spline); 
radChart.Series.Add(chartSeries); 
 
ChartSeriesItem chartSeriesItem = new ChartSeriesItem(12); 
chartSeries.Items.Add(chartSeriesItem); 
 
chartSeriesItem = new ChartSeriesItem(43); 
chartSeries.Items.Add(chartSeriesItem); 
 
chartSeriesItem = new ChartSeriesItem(65); 
chartSeries.Items.Add(chartSeriesItem); 


Anyone have any ideas?

Thanks,
Konrad
Giuseppe
Telerik team
 answered on 11 Sep 2009
0 answers
132 views
Telerik support kindly provided me with this client side code for supporting PageUp and PageDown key presses
for paging after the Grid has focus.  It works for the MasterTableView level.

Perhaps one of the forum members could make a server side equivalent function in C# or VB.

  <%--Handle PageUp and PageDown key presses --%>  
  <script type="text/javascript">  
    var shouldFocus = false;  
    function gridCreated(sender,args) {  
      $addHandler(sender.get_element(),"keydown",Function.createDelegate(sender,keydownHandler));  
      if(shouldFocus){  
        sender.get_element().focus();  
        shouldFocus = false;}  
      }  
      function keydownHandler(args) {  
        if(args.keyCode==33 && this.get_masterTableView().get_currentPageIndex() > 0) {                      
          this.get_masterTableView().page("prev");  
          shouldFocus = true;}  
        else if(args.keyCode==34 ) {  
          this.get_masterTableView().page("next");  
          shouldFocus = true;}                  
      }  
  </script>  
 
 
<telerik: RadGrid ID = RadGrid1 ETC.>        
      <ClientSettings AllowKeyboardNavigation="true">  
        <Selecting AllowRowSelect="true" /> 
        <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowActiveRowCycle="true" /> 
        <ClientEvents OnGridCreated="gridCreated" /> 
      </ClientSettings> 
Other Grid code
</telerik:RadGrid>  
Kevin Mason
Top achievements
Rank 1
 asked on 11 Sep 2009
1 answer
137 views
HI Everyone,

At the moment I have a split button on my toolbar with two options:

Format HTML
Format Text

By default the Format HTML is selected and displayed on the toolbar.
When a user selects Format Text a postback occurs and the Toolbar split button is updated to display the Format Text image.
Is there a way to stop a postback from occuring when the user clicks the split button?, I only want a postback to occur when the user makes a selection from the dropdown list.

I know that this is how the DropDown button operates but I can't use it as it does not update the Image displayed on the toolbar when a user makes a selection.

Any help would be appreciated

Antony


Yana
Telerik team
 answered on 11 Sep 2009
1 answer
172 views
Hi,

I'm using telerik controls in a project and I have a problem with circular reference in a master pages.
I have a master page (we can call "father master page") using some objects of telerik, and also I have another master page (we can call "son master page") that use telerik controls too. The "son master page" inherit "father master page" and it's in a paste (on that structure). The pages I have on that paste are using the "son master page".

So, when I try deploy the website, the visual studio indicate a problem with circular reference in a "son master page" at the first line, on MasterPageFile attribute. If I remove this attribute, I can deploy the website.

I realized a search about this subject and tried something like as you can see below:

- to remove @Register tag of master pages and pages and add the references in web.config by <controls> element;
- to put true for batch attribute of <compilation> element;
- to remove the keyword Register from the tags on master pages and pages.

I will put the html code of "father master page" and "son master page":
"FATHER MASTER PAGE":
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="GENTE.master.cs" Inherits="GENTE" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

<!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> .:: GENTE - Gestão Eletrônica Normalizada de Terceiros e Empregados ::. </title>
    
    <!-- Includes -->
    <uc1:HeadTag ID="HeadTag1" runat="server" />     
        
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            </Scripts>
        </telerik:RadScriptManager>
        
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Telerik" DecoratedControls="All" />
        
        <%--dsd--%>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          
          <!-- Cabeçalho -->
            <tr>
                <td  align="left">
                    Menu Superior -
                    <a href="/GENTEv1/Protegidos/Empresas/Default.aspx">Empresas</a>&nbsp;&nbsp;
                    <a href="/GENTEv1/Protegidos/Pessoas/Default.aspx">Pessoas</a>&nbsp;&nbsp;
                    <a href="/GENTEv1/Protegidos/Administracao/Default.aspx">Administração</a>&nbsp;&nbsp;
                </td>
                <td  align="right">
                    Patrocinador: <asp:Label ID="lblPatrocinador" runat="server" Text=""></asp:Label>
                    / Prestador: <asp:Label ID="lblPrestador" runat="server" Text=""></asp:Label>
                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="<%= Page.ResolveUrl("~/SelectPatPrest.aspx") %>" >Selecionar</a>&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td><img src="space.jpg" width="4" height="2" /></td>
            </tr>
          <!-- Cabeçalho -->
          
          <tr>
            <td colspan="2">
                
                <!-- -->
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td id="HeadBar" colspan="4" height="5"></td>
                    </tr>
                    <tr>
                        <td width="7"></td>
                        <td width="250" height="500"  valign="top" class="BordaFundo" id="Lateralbar">
                            <div class="Collapse"></div>
                            <table width="250" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="10"><img src="../_images/space.jpg" width="3" height="1"></td>
                                </tr>
                                <tr align="left">
                                    <td width="10"></td>
                                    <td height="30" valign="middle">
                                            
                                        <!-- INICIO - Lateral -->
                                        <asp:ContentPlaceHolder id="cphMenu" runat="server">
                                        
                                        </asp:ContentPlaceHolder>
                                        <!-- FIM - Lateral -->
                            
                                    </td>
                                    <td width="10">&nbsp;</td>
                                </tr>
                            </table>
                        
                        </td>
                        <td width="3"><img src="../_images/space.jpg" width="3" height="2"></td>
                        <td valign="top" align="left" class="Borda">
                        
                            <!-- Menu - Titulo -->
                            
                                            
                            <!-- INICIO - Conteúdo -->
                            <asp:ContentPlaceHolder id="cphConteudo" runat="server">
                            
                            </asp:ContentPlaceHolder>
                            <!-- FIM - Conteúdo -->
                            <br />
                        </td>
                    </tr>
                </table>
                <!-- -->
                
            </td>
          </tr>
        </table>
        <%--dfdsf--%>
        
    </div>
    </form>
</body>
</html>

"SON MASTER PAGE":
<%@ Master Language="C#" MasterPageFile="~/GENTE.master" AutoEventWireup="true" CodeFile="GENTE_Emp.master.cs" Inherits="Protegidos_Empresas_GENTE_Emp" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphMenu" Runat="Server">
    
    <asp:ContentPlaceHolder id="cphSubMenu" runat="server">
    
        <telerik:RadPanelBar id="RadPanelBar1" runat="server" style="float: left" skin="Telerik">
        </telerik:RadPanelBar>
    
    </asp:ContentPlaceHolder>

</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="cphConteudo" Runat="Server">

        <asp:ContentPlaceHolder id="cphSubConteudo" runat="server">
        
        </asp:ContentPlaceHolder>

</asp:Content>

Anyone can help me to solve this problem?







Carlos Eduardo Nogueira
Top achievements
Rank 1
 answered on 11 Sep 2009
1 answer
113 views
If I use the following syntax in a .js file to point to a page that contains a regular asp.net scriptmanager I get intellisense for asp.net ajax:

/// <reference path="ScriptManagerForIntellisense.aspx" /> 

If I use the same syntax to point to a page that contains a telerik ScriptManager I don't, even though methods such as $get and $addHandler will work on pages that has such a scriptmanager. Is there any solution to this, right now I have created a separate aspx-file that I reference from my js-file to get the intellisense...
Atanas Korchev
Telerik team
 answered on 11 Sep 2009
2 answers
341 views
Hi. I'm trying to clear filter values for all the columns in a grid view doing something like in the code below:

var col = masterTable.get_columns();

for (i = col.length - 1; i >= 0; i--) {
masterTable.filter(col[i].get_uniqueName(), "", 0);
};


but nothing happens. Only if I fill the first column's filter and other are empty, the above code snippet function.
How else could I clear all filters in a Grid on client-side?
Thanks and best regards, Frank.
 
Princy
Top achievements
Rank 2
 answered on 11 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?