Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
283 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
133 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
596 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
78 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
95 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
194 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
4 answers
159 views
Hi,

I'm using a toolbar with a SplitButton and several Buttons (see attached image).
When a button is clicked, its css state remains 'clicked' until another button is clicked. That's great. I would like to have the same behavior also to the SplitButton. If we refer to the attached image, it means that the SplitButton 'test 1' should appear 'Clicked' (same as the 'test 6' button) once it is clicked or one of its selection buttons are clicked.

Thanks for any help.
eyal   
eyal
Top achievements
Rank 1
 answered on 12 Apr 2010
3 answers
160 views
Hi,
Based on the screenshot below, is it possible to make the header(highlighted) to be click-able to expand/collapse the grouping?
http://img535.imageshack.us/img535/6148/gridgroupclick.png
Daniel
Telerik team
 answered on 12 Apr 2010
1 answer
291 views
I used the progress bar of the RadUpload for a process which is really time consuming. it works fine for smaller amount of time, but otherwise it stucks and I receive Javascript error as detailed below.


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; chromeframe; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; FDM)
Timestamp: Mon, 12 Apr 2010 07:54:50 UTC

Message: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
Line: 15
Char: 9936
Code: 0
URI: http://www.sellercloud.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3a76254418%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a68f76a79%3a874f8ea2%3a2a2fc429%3a19620875%3a39040b5c%3af85f9819

 

The operation  where error occured can take upto 10 minutes or so to complete. Sometimes, the operation continues even error appears (Please note its not a messagebox, I just see Bottom left of the IE window where script error icon appears) and othertime, the progress just stucks even though time continues to elapse.

Is there any way to avoid the issue (the progressbar stucks at a certian position)?

Dimitar Milushev
Telerik team
 answered on 12 Apr 2010
3 answers
290 views
Hi,

I have upgrated my VS 2005 application to VS 2010. But On my aspx page load I am getting following error.

Error: 'Sys.WebForms.PageRequestManager' is null or not an object

What are all the possible ways of getting this error? And I am not able to select any row in the RADGrid, not able open combobox.

Iana Tsolova
Telerik team
 answered on 12 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?