Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
294 views
Hi,

I'm trying to get RadDock working in an MVC3 application.
Everything looks fine in VS but when I run the application I get the following error (see below).
I have followed the steps described in the help file "RadControls for ASP.NET AJAX Documentation", section "Integrating RadControls in ASP.NET MVC" > "Getting Started".

Has anyone got suggestions where the problem lies?
Has anybody got the RadDock working in MVC3?


Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Views/Home/Index.aspx


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Exclamation
Top achievements
Rank 1
 answered on 10 Jul 2012
3 answers
338 views
I have a RadButton in an ItemTemplete with the button type set to link. If the text in the button is too long it wraps outside of the control.

This can be reproduced on the button demo on this site (see attached screen shot)

The text is set dynamically on my page and could contain multiple lines of text, so I need the button to expand as needed.

Any help or tips welcome.

Regards,

Mark
Scott
Top achievements
Rank 1
 answered on 10 Jul 2012
0 answers
114 views
We have a number of controls that work perfectly on my dev machine when testing. When i deploy to our test server I get errors on two seperate pages. The first error happens when trying to insert into a grid:

Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object.
   at Account1_UserRegistration.radgrdUserList_ItemCommand(Object sender, GridCommandEventArgs e) in e:\Build\24-7\24-7 Web Application\Randox247Website\Account1\UserRegistration.aspx.cs:line 458
   at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


The second happens on a page with numerous rad controls:

  Exception type: ArgumentOutOfRangeException 
    Exception message: Selection out of range
Parameter name: value
   at Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource)
   at Telerik.Web.UI.RadComboBox.PerformSelect()
   at Configuration_EDI.rebindClearCombo() in e:\Build\24-7\24-7 Web Application\Randox247Website\EDI\Configuration.aspx.cs:line 792
   at Configuration_EDI.btnNewRecord_Click(Object sender, EventArgs e) in e:\Build\24-7\24-7 Web Application\Randox247Website\EDI\Configuration.aspx.cs:line 139
   at Telerik.Web.UI.RadButton.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Both builds on my machine and on test are pointing towards the same database so it cannot be a data issue. Any help on this would be greatly appreciated.
Michael
Top achievements
Rank 1
 asked on 10 Jul 2012
1 answer
289 views
Hello

I'm having some problems trying to find the right code to display an image conditionally within a GridImageColumn.  I have looked through all of your examples and guides, and cannot find one that I can relate to.

All of my code is written in C# and the grid is generated programatically.

private readonly GridTableView detailTable;
private readonly RadGrid grid = new RadGrid();
 
private void InitialiseGrid()
        {
            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "SearchGrid", Resources.SearchGrid, true);
 
            grid.ID = "grid";    
 
            grid.PagerStyle.AlwaysVisible = true;
 
            this.grid.ClientSettings.ClientEvents.OnRowDblClick = "SearchGridRowDoubleClick";
 
            this.grid.MasterTableView.Name = "Jobs";
            this.grid.MasterTableView.DataKeyNames = new[] { "BatchId" };
            this.grid.MasterTableView.ClientDataKeyNames = new[] { "Id" };
            this.grid.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerOnDemand;
             
            this.grid.NeedDataSource += GridNeedDataSource;
            this.grid.DetailTableDataBind += GridDetailTableDataBind;
 
            this.grid.Columns.Add(new GridImageColumn { ImageUrl = "Images/Tasks.ico" });

The code above shows (with some properties stripped out) the Master Table View being initialised, and the use of the ImageUrl as one of the columns.  This works fine, showing an image directly from a stored location.  What I'm trying to do is set this value to what is stored within one of the Jobs object properties.

When I call the this.grid.NeedDataSource, this calls another method to calculate and populate the Jobs.  This runs the following code to populate the securityImage variable, which is then set into the Jobs Object and returned in the data source:

var securityImage = userHasSecurityLevel ? "Images/Edit1.png" : "Images/Delete.png"

All of my other columns are added using the following code:

this.grid.Columns.Add(new GridBoundColumn { DataField = "Surname", HeaderText = Resources.SurnameColumnText });
this.grid.Columns.Add(new GridBoundColumn { DataField = "Forename", HeaderText = Resources.FornameColumnText });

I have tried using the following to set the image, but this just throws an error, as the value is expecting to be received in an array format.  Are you able to help me understand whether this is the correct code to use, and if so, how to use it properly?

this.grid.Columns.Add(new GridImageColumn { DataImageUrlFields = "SecurityImage" });

Many thanks,

Mark
Mark
Top achievements
Rank 1
 answered on 10 Jul 2012
1 answer
97 views
Hello All,

Facing weird issue in RadGrid, I have a grid with custom Pager that the page size could be chosen by user, and the Next, Last, First, Back arrows are there to ease the List operations. Here the problem is the Paging arrow Last & Next comes in Left hand side and First & Before comes in Right hand side. Look at the attached screenshot for better understanding. I have no clue that which property causing this problem. I have see demos and other sites. It all looks correct. Can any one help me out here. 
The ASPX code is 

<telerik:RadGrid ID="gridView" EnableEmbeddedSkins="false" Skin="Web20" Width="800px" 
                            AutoGenerateColumns="False" AllowSorting="true" OnNeedDataSource="gridView_NeedDataSource"
                            OnPageIndexChanged="PageIndexChanged" OnSortCommand="gridView_Sorting"
                            OnItemDataBound="gridView_ItemDataBound" DataSourceID="" AllowMultiRowEdit="false"
                            AllowMultiRowSelection="true" MasterTableView-RetrieveAllDataFields="true" runat="server"
                            EnableOutsideScripts="false" EnableAJAX="false" EnableAJAXLoadingTemplate="false"
                            PagerStyle-Mode="NumericPages" PagerStyle-PagerTextFormat="" PageSize="10" AllowPaging="true">
                            <MasterTableView>
                                <RowIndicatorColumn Visible="False">
                                </RowIndicatorColumn>
                                <PagerStyle Mode="NextPrevAndNumeric" />
<Columns>
</<Columns> 
.......

Regards,
Ilayaraja.C
Andrey
Telerik team
 answered on 10 Jul 2012
5 answers
147 views
Hi,

There is a very interesting problem! I open the page and i run related events in the panel by pressing the buttons. But after 1 or 2 minute I don't click any button. while whating without anything. then when i click any button, button events don't work; but loading panel is loading... What could be the problem... Does not postback?
Andrey
Telerik team
 answered on 10 Jul 2012
1 answer
96 views
Hi,
     I want advanced form while inserting in radscheduler. How can I accomplish this.
Princy
Top achievements
Rank 2
 answered on 10 Jul 2012
1 answer
110 views
Hi there,
     I have a radmenu in which I want to hide the icon column to the left of each menu item. How can I do it. Thanks in advance.
RT
Princy
Top achievements
Rank 2
 answered on 10 Jul 2012
1 answer
119 views
I am using the RadFormDecorator to decorate Selects, RadioButtons, and CheckBoxes, and this has been fine, but after the newest update for Chrome was released, it no longer works for the RadioButtons or CheckBoxes. The Selects still work. Any update or fixes released for this?

Thanks
Bozhidar
Telerik team
 answered on 10 Jul 2012
1 answer
92 views
Hi,
     I want to retrieve the value from aggregate and show the value as a label text in another place. How do i manage this. Anybody got idea? Pls share
Thanks and Regards
Savyo
Shinu
Top achievements
Rank 2
 answered on 10 Jul 2012
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?