Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
257 views
hello

        i am a beginner of this Rad controls and working on Chart controls for our major project in college. i have already added three references " chart , core and premitives" but when try to add chart controls in toolbox from source then this pop-up appear  


                                            There are no controls in C:\program Files\ telerik\RadControls for windows phone 7 Q2 2012\Binaries\windows phone\telerik.windows.controls.chart.dll that can be placed on the toolbox. 

"sorry it should be in Windows Phone Forum forgive me"

  please help me  . Thank you
Lalit
Top achievements
Rank 1
 answered on 10 Jul 2012
8 answers
717 views
I'm using a RadGrid with a GridNumericColumn as: 

<telerik:GridNumericColumn DataField="VALUE" HeaderText="Testing Decimal Value" DecimalDigits="6" DataType="System.Decimal" UniqueName="VALUE" NumericType="Number" />

When I enter a decimal value as 1.000015 it is accepted and I'm able to successfully process this value when accessing the hash table in my custom update command. However, when I try to enter a value with as 0.000015 or -0.000015 it turns into scientific notation (0.5E-05) when attempting to update the value and errors out. I have tried setting the AllowRounding to true or false as well as setting the KeepNotRoundedValue to true or false without any change. This problem only occurs if I use a value starting with a 0 and using more than 3 zeros in the precision, i.e. 0.00001. 

I see in the Q1 2012 BETA there is a fix that may resolve my issue? (Fixed: RadNumericTextBox applies scientific notation on focus and wrong value on blur when DecimalDigits and AllowRounding are set and value like 0.0000001 is entered)

I'm unable to update to the BETA at this time and need to know if there is a possible workaround for this precision problem? Any help would be appreciated.

Thanks,
Brandon 
Robert
Top achievements
Rank 1
 answered on 10 Jul 2012
0 answers
87 views
I am building a Repository of user-control and wanted to find out the best way to server the CSS classes.

1. Should I load them ALL into 1 giant External CSS File and load it whenever a given user-control is rendered?
2. Should I load them into 1 External CSS File per user control?
3. Should I embed the CSS into the Markup of the user-control with RadCodeBlocks?

I cant see doing inline as a benefit as it would make a nightmare to modify an tweak.

This is open to all users to give me some pros and cons of each...

I'm leaning to #3 for manageability...
David Beck
Top achievements
Rank 1
 asked on 10 Jul 2012
1 answer
93 views
Hey, I am trying to figure out if it is possible to construct a grid and use the export to excel functionality without using it in a webform. I just want to get the functional feature of exporting without visually displaying it in the web. Is that possible?

I know there is a TelerikData.dll that contains ExportToExcelML, so I'm looking for something like that, but probably in the ASP.NET version...

Thanks!
Eyup
Telerik team
 answered on 10 Jul 2012
0 answers
56 views
Hi everybody,

I'm new on Telerik.

I wrote this code below, for CRUD operations:

The insert command worked perfectly, but Update did not.

On first attemp (TextBox)e.Item.FindControl("txtComponente");  return null, and I do not understand why 
On second attemp item.UpdateValues(obj);  do nothing

Anybody can help me?

Thanks in advance.

 
public void RadGrid1_ItemComand(Object sender , GridCommandEventArgs e)
       {
           switch (e.CommandName)
           {
               case "Insert" :
                   try
                   {
                       TextBox txtComponente = (TextBox)e.Item.FindControl("txtComponente");
                       TextBox txtDescricaoComponente = (TextBox)e.Item.FindControl("txtDescricaoComponente");
                       Inserir(txtComponente.Text, txtDescricaoComponente.Text);
 
                       DisplayMessage(false, "Sucess!");
                       Response.Redirect("ConsultaComponente.aspx");
                   }
                   catch ( Exception ex)
                   {
                       DisplayMessage(true, ex.Message);
                   }
                   break;
 
               case "Update" :
                   try
                   {
 
                       //First attempt
                       var ID = item.GetDataKeyValue("IdComponente").ToString();
                        
                       TextBox txtComponente = (TextBox)e.Item.FindControl("txtComponente");
                       TextBox txtDescricaoComponente = (TextBox)e.Item.FindControl("txtDescricaoComponente");
                       Update(ID,txtComponente.Text, txtDescricaoComponente.Text);
                        
                        
                       //Second attempt
 
                       GridEditableItem item = e.Item as GridEditableItem;
                        
                       var ID = item.GetDataKeyValue("IdComponente").ToString();
 
                       Componente obj = ComponenteController.Consulta(Convert.ToInt32(ID));
                       
                       item.UpdateValues(obj);
 
                       Update(obj)
                   }
                   catch (Exception ex)
                   {
                       DisplayMessage(true, ex.Message);
                   }
                   break;
           }
Duan
Top achievements
Rank 1
 asked on 10 Jul 2012
1 answer
147 views
Now I don't know if something has mysteriously happened since the upgrade came out, but I upgraded this morning and have had a whole host of problems, most of which I have sorted out, however, when trying to place the htmlchart on to the page via drag and drop, nothing is happening, and when pasting the code from the demo onto the page, it's erroring. Here is a copy of my web config file:

<?xml version="1.0" encoding="utf-8"?> 
<!--   For more information on how to configure your ASP.NET application,
 please visit
  http://go.microsoft.com/fwlink/?LinkId=169433   
old connection string  <add name="dbtestConnectionString" 
connectionString="Data Source=MNEWEY1\SQLEXPRESS;Trusted_Connection=Yes;
Initial Catalog=dbtest;Integrated Security=True" providerName="System.Data.SqlClient"/>
  
server connection string <add name="dbtestConnectionString" 
connectionString="Data Source=DEBDEV1\SQLEXPRESS;Trusted_Connection=Yes;Initial Catalo
g=dbtest;Integrated Security=True" providerName="System.Data.SqlClient"/>
  -->
<configuration>   
<
appSettings>     
<
add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />   
<
add key="Telerik.Skin" value="Transparent" />   
</
appSettings>   
<
connectionStrings>     
<
add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />     
<
add name="dbtestConnectionString" connectionString="Data Source=MNEWEY1\SQLEXPRESS;Trusted_Connection=Yes;Initial Catalog=dbComplaints;Integrated Security=True" providerName="System.Data.SqlClient" />     
<!--
<add name="dbComplaintsEntities" connectionString="metadata=res://*/DAL.ComplaintsData.csdl|res://*/DAL.ComplaintsData.ssdl|res://*/DAL.ComplaintsData.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=MNEWEY1\SQLEXPRESS;initial catalog=dbComplaints;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />   -->  
 </
connectionStrings>  
 <
system.web>     
<
customErrors mode="Off" />     
<
httpHandlers>       
<
add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />       
<
add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />       
<
add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />       
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />       
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />       
<
add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />       
<
add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />     
</
httpHandlers>     
<
compilation debug="true" strict="false" explicit="true" targetFramework="4.0">       
<
assemblies>         
<
add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />         
<
add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />         
<
add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />     
<
add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />         
<
add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />         
<
add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />         
<
add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />         
<
add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />       
</
assemblies>       
<
buildProviders>         
<
add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />       
</
buildProviders>     
</
compilation>     
<
authentication mode="Windows" />     
<
authorization>       
<
deny users="?" />     
</
authorization>     
<
identity impersonate="true" />     
<
membership>       
<
providers>         
<
clear />         
<
add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />       
</
providers>     
</
membership>     
<
profile>       
<
providers>         
<
clear />         
<
add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />       
</
providers>     
</
profile>     
<
roleManager enabled="false">       
<
providers>         
<
clear />         
<
add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />         
<
add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />       
</
providers>     
</
roleManager>     
<
pages maintainScrollPositionOnPostBack="true">       
<
controls>         
<
add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />         
<
add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />       
<
add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />       
</
controls>     
</
pages>   
<
httpModules />   
</
system.web>   
<
system.webServer>     
<
modules runAllManagedModulesForAllRequests="true" />     
<
validation validateIntegratedModeConfiguration="false" />     
<
handlers>       
<
remove name="ChartImageHandler" />              
<
remove name="ChartImage_axd" />       
<
remove name="Telerik_Web_UI_SpellCheckHandler_axd" />       
<
remove name="Telerik_Web_UI_DialogHandler_aspx" />       
<
remove name="Telerik_RadUploadProgressHandler_ashx" />       
<
remove name="Telerik_Web_UI_WebResource_axd" />
<
add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />       
<!--
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*"    type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />     -->       
<
add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />       
<
add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />       
<
add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />       
<
add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />       
<
add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />       
<
add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />     
</
handlers>   
</
system.webServer>
</
configuration>
Miles
Top achievements
Rank 1
 answered on 10 Jul 2012
7 answers
264 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
289 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
84 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
254 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?