Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
I have create a dockZone in a scrolling panel.

This works fine on my development machine (vista) and when hosted on an XP machine.

However, when I host the page on Windows Server 2003 the dockZone does not scroll with the panel.

<asp:Panel ID="plBottom" runat="server" Height="500" ScrollBars="vertical" > 
   <br /> 
    <telerik:RadDockZone ID="zone1" runat="server">  
        <telerik:RadDock ID="dock1" runat="server" Title="doc" DockMode="docked" EnableDrag="false" /> 
        </telerik:RadDockZone> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        end   
</asp:Panel> 

Any suggestions?
Damien McCarron
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
126 views
I have the control setup as following, however, the "go" button is not generating using SEO paging. Any thing I am missing?

  <telerik:RadDataPager ID="RadDataPagerTop" runat="server" Style="border: none;" SkinID="ListViewSkin" 
                            AllowSEOPaging="true" SEOPagingQueryPageKey="Page"> 
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerGoToPageField CurrentPageText="Page " TotalPageText="/" SubmitButtonText="Go" 
                                    TextBoxWidth="25" /> 
                            </Fields> 
                        </telerik:RadDataPager> 

Pavel
Telerik team
 answered on 12 Apr 2010
4 answers
130 views
Hi,

I am using rad file explorer in my project, and the problem is that when the uploading window of file explorer appears, it does not appear properly. It goes to right bottom corner of the page and when I click to drag the uploading window it disappears and height and width of page get bigger and bigger. What's the problem with it? Can I adjust its position to appear on the page properly?
Help will be greatly appriciated.

Regards
Muhammad Farjad
Muhammad Farjad
Top achievements
Rank 1
 answered on 12 Apr 2010
2 answers
98 views
Hello,
I'm trying to add nodes to the tree view as given in the example below on a button click.
http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/addremovedisable/defaultvb.aspx

But I am not able to get the value of RadTreeView1.SelectedNode.
It always returns me NULL

My .aspx page is as below
[code]

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
     <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="AddButton">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
     <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Available actions" Orientation="Vertical" Expanded="true">
            <ul >
                <li>
                    <asp:Button  ID="AddButton" runat="server" OnClick="AddButton_Click"></asp:Button>
                </li>
            </ul>
        </qsf:ConfiguratorPanel>

        <telerik:RadTreeView ID="RadTreeView1" runat="server" Height="280px" Width="300px"  />

    </form>
</body>
</html>


and my .cs code
**************************

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;


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadTreeView1.LoadContentFile("~/XMLTreeViewStructure/SuiteTemplate.xml");
    }
    protected void AddButton_Click(object sender, EventArgs e)
    {
        IRadTreeNodeContainer target = RadTreeView1;
        if (RadTreeView1.SelectedNode != null)                    // Problem :- condition is not getting satisfied even when I select a tree node
        {
            RadTreeView1.SelectedNode.Expanded = true;
            target = RadTreeView1.SelectedNode;
        }
        RadTreeNode addedNode = new RadTreeNode("Course");
        addedNode.Selected = true;
        target.Nodes.Add(addedNode)
 }
     
}


[/code]

Please advise me !

Thanks !
Nitin



Nitin Nitin
Top achievements
Rank 1
 answered on 12 Apr 2010
4 answers
291 views
Hello,

I have a page that contains a RadGrid, and I would like to be able to open a RadWindow which contains a RadFilter for the grid.  My current implementation has all 3 objects on the same page (Default.aspx).  The RadWindow does not open a new URL, instead it contains the RadFilter in a ContentTemplate declaration:

<!-- The window opened by the "Filter Builder" toolbar button --> 
    <telerik:RadAjaxPanel runat="server" ID="WindowAjaxPanel"> 
        <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" 
                runat="server" Skin="Office2007"> 
            <Windows> 
                <telerik:RadWindow ID="FilterBuilderWindow" runat="server" Behaviors="Close" Title="Filter Builder" 
                        Width="350" Height="350" EnableViewState="true"> 
                    <ContentTemplate> 
                        <asp:Panel ID="FilterContentPanel" runat="server" CssClass="filterDialogContent"> 
                            <asp:Panel ID="FilterPanel" runat="server" CssClass="filterTree"> 
                                <telerik:RadFilter runat="server" ID="FilterControl" RegisterWithScriptManager="true" 
                                        FilterContainerID="OrderFulfillmentGrid" 
                                        ShowApplyButton="false" Skin="Office2007"/> 
                            </asp:Panel> 
                            <asp:Panel ID="FilterButtonPanel" runat="server" CssClass="filterButtonPanel"> 
                                <asp:Button runat="server" ID="filterBuilderOK" OnClick="filterBuilderOK_Click" Text="OK" /> 
                                <asp:Button runat="server" ID="filterBuilderCancel" Text="Cancel" 
                                        OnClick="filterBuilderCancel_Click" /> 
                                <asp:Button runat="server" ID="filterBuilderApply" OnClick="filterBuilderApply_Click" 
                                        Text="Apply" /> 
                            </asp:Panel> 
                        </asp:Panel> 
                    </ContentTemplate> 
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
    </telerik:RadAjaxPanel> 

The RadWindow is opened with the following javascript:
// Open the Filter Builder dialog 
function openFilterBuilderDialog() { 
    window.radopen(null, "FilterBuilderWindow"); 
    return false; 
} 

The window opens just fine, and the RadFilter appears normally.  The problem is that as soon as I press the "Add expression" button on the RadFilter, the following error is thrown:
Erreur du serveur dans l'application '/'. 
-------------------------------------------------------------------------------- 
 
L'index Ã©tait hors limites. Il ne doit pas Ãªtre négatif et doit Ãªtre inférieur Ã  la taille de la collection. 
Nom du paramètre : index  
Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.  
 
Détails de l'exception: System.ArgumentOutOfRangeException: L'index Ã©tait hors limites. Il ne doit pas Ãªtre négatif et doit Ãªtre inférieur Ã  la taille de la collection. 
Nom du paramètre : index 
 
Erreur source:  
 
Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives Ã  l'origine et l'emplacement de l'exception peuvent Ãªtre identifiées en utilisant la trace de la pile d'exception ci-dessous.   
 
Trace de la pile:  
 
 
[ArgumentOutOfRangeException: L'index Ã©tait hors limites. Il ne doit pas Ãªtre négatif et doit Ãªtre inférieur Ã  la taille de la collection. 
Nom du paramètre : index] 
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +64 
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +15 
   System.Collections.Generic.List`1.get_Item(Int32 index) +7497276 
   Telerik.Web.UI.RadFilterDataFieldEditorCollection.System.Collections.Generic.IList<Telerik.Web.UI.RadFilterDataFieldEditor>.get_Item(Int32 index) +41 
   Telerik.Web.UI.RadFilterDataFieldEditorCollection.get_Item(Int32 index) +37 
   Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup) +121 
   Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source) +279 
   Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args) +196 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args) +113 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 
 
  
 
Translation of the error message: The index was out of bounds.  It cannot be negative, and must be less than the size of the collection.  Parameter name: index.

I have tried too many variations on the above code to count, and I'm all out of ideas.  Your help is greatly appreciated.
Thanks in advance,
Marc
Marc St-Laurent
Top achievements
Rank 1
 answered on 12 Apr 2010
2 answers
138 views
Hi, I've tried adjusting the z-index on the radwindow and the radtab to allow the radwindow to display on top but doesn't appear to be working (please see attached). A problem may be that the radtab exists on a different aspx page and there is a div below the tabs (again see attached) that is used to display other pages. I'm creating the radwindow in a page being displayed in the div. In addition, the radwindow modal=true. Please advise. Thanks.
Robert Simpson
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
607 views
Hi,

I would like to implement the following:

Disable the edit button for a particular row, based on a specific value in its column.

For ex. If a grid has 3 columns A,B,C and if B contains "Apple", the edit button for that row must be disabled.

Thanks
Sarvanan
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2010
3 answers
89 views
Hello,

I've been following the example given in:


and have encountered the error:

ERROR [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Must declare the scalar variable "@EmployeeID".

on execution. My code is virtually identical to the example, only the ConnectionString and ProviderNames have been changed (and the header and footer stuff of course).

Cheers
Pavlina
Telerik team
 answered on 12 Apr 2010
1 answer
97 views
Hello,
How can i fetch the DataField Id Bound to Menu before navigating to the Navigate URL?


Regards,
Naga Sridhar Madiraju


Shinu
Top achievements
Rank 2
 answered on 12 Apr 2010
4 answers
196 views

Guys, this might be a bug...

I searched everywhere for this topic, but it seems like im the only one. For what I understand, you can Bind a GridDropDownColumn with an objectDataSource that includes a DataSet, and then use the ListDataMember to point to the right DataTable in the DataSet... right???

Well, I get an error that says that I should leave the property empty so DefaultView can be used. After debugging for a while, I noticed that it selects the first table and its named DefaultView.

This is my code:

 
<!--DataSources-->    
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"      
 EnablePaging="false" SelectMethod="SelectCatalog"      
 TypeName="XXX.Web.Common.clCatalogs"      
 onselecting="ObjectDataSource2_Selecting">      
</asp:ObjectDataSource>      
      
<!--Column Definition-->    
<telerik:GridDropDownColumn HeaderText="Substrate" DataField="SubstrateId" DataSourceID="ObjectDataSource2" ListDataMember="catSubstrate"      
DataType="System.Int32" ListTextField="Code" ListValueField="Id" UniqueName="colSubstrate">      
</telerik:GridDropDownColumn>      
      
    
//Business Object Class     
[DataObject(true)]      
public class clCatalogs      
{     
public clCatalogs(){}      
[DataObjectMethod(DataObjectMethodType.Select, true)]      
public static DataSet SelectCatalogs()      
{     
 return (DataSet)HttpContext.Current.Cache["dsCatalogs"];      
}     
}    

 

Anybody see's anything weird? One thing tough, is that if I use DataTable as a return type it works, but im interested in DataSet.

Thanx for the help
Victor

 

Pavlina
Telerik team
 answered on 12 Apr 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?