Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
144 views
I have followed the example here: http://demos.telerik.com/aspnet-ajax/combobox/examples/programming/customattributes/defaultvb.aspx

This adds images to each item nicely. However, I am not sure how to add an image to the selected item. In other words, if you go to the above link and change the avatar combo box selection, it shows text. I would like the selected item to show an image as well.

Is this possible?

Also, after adding an item template, the highlight no longer appears when hovering over items.
Greg
Top achievements
Rank 1
 answered on 06 Oct 2010
2 answers
109 views
Hi,

we have a requirement to display a set of rows in a grid. The data that will be displayed consists of two types of entities(say active entities and inactive entities). When these entities are displayed in the single grid, i need to highlight the inactive entities by using a custom font-color (say red). But this custom font color will not be reqired for the other entities(active entities). Is there anyway to achieve this in telerik rad grid control in the server side code?

Ex: if the grid has 6 rows, i need the below listed functionality

Row 1 (active row) [normal color]
Row 2 (active row) [normal color]
Row 3 (inactive row) [red color]
Row 4 (active row) [normal color]
Row 5 (inactive row) [red color]
Row 6 (active row) [normal color]

Thanks,
Manoj
Manoj
Top achievements
Rank 1
 answered on 06 Oct 2010
2 answers
66 views
Hi there,
I have one question can i use ajax telerik controls in Sharepoint 2010  webpart with all features of Controls like radGrid,Radtooltip and radscheduler ?
well i can use Spradgrid but i dont want to do that for now .
Please advise me.


Ronak
Ronak
Top achievements
Rank 1
 answered on 06 Oct 2010
1 answer
58 views
Hi,

I'm wonder if I can hide (close) the raddock after 5 second (for example) of displaying it. In other words, the code must count 5 seconds and then close the raddock (The raddock is displayed immediately after opening the page).

Please, if it is possible, send me the required code,

Regrads,
Bader
Pero
Telerik team
 answered on 06 Oct 2010
5 answers
156 views
We are running ASP.NET AJAX controls on a VMWare virtual server running Windows Server 2008 R2 with (1) 2.30 GHz CPU and 2 GB RAM.  We have noticed that the website seems to hang each time you click on a new tab or load new data.  Looking at the CPU usage on the server, we have noticed spikes in CPU to 100% that correspond to each click on the client side.  I'd like to know if we need to beef up our server or if we need to optimize our site better.  It seems like we've done a good job of optimizing, we just haven't found hardware requirements for the RadControls and may be missing something there.  Please help!

Thanks!
Martin
Telerik team
 answered on 06 Oct 2010
2 answers
61 views
I use user controls to edit/insert items within a radgrid.  I am having the following issues

- On insert/update, I want to automatically collapse the usercontrol and I am not sure how to do this
- I want to ensure that the user can only edit one radgrid item at a time.. so if the user clicks on edit for row 2 and row 1 was in edit, I want to collapse(take out of edit) row 1

Any help you can provide will be greatly appreciated.
Patrick Williams
Top achievements
Rank 1
 answered on 06 Oct 2010
7 answers
331 views

 

I've been getting the error below on my production server only ever since I upgraded to the RADControls for ASP.NET Q2 release, file version 2010,2,713,40.  By adding the try/catch below I was able to indetify what assembly was causing the error

 "Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

The problem is this assembly version does not exist on either my dev or production environment.  This happens everytime I make an update to my prod box and I can usually resolve it by resetting the app pool or resetting IIS but it doesn't always work the first time.  All of my projects are set up under the 4.0 framework and I've cleaned the solution several times but the issue persists.  Also, this error only occurs on pages that use the Entity Framwork to databind.  Any help would be greatly appreciated,

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
Stack Trace: 
  
  
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +585
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +76
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.GridView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
  
  

try
       {       
           RadScheduler1.DataSource = TED.BLL.Appointment.Appointments(SafeValue.SafeInt(ddlView.SelectedValue),SafeValue.SafeInt(ddlCategory.SelectedValue),SafeValue.SafeInt(ddlClientName.SelectedValue),Users,RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd);
           RadScheduler1.DataKeyField = "ID";
           RadScheduler1.DataStartField = "Start";
           RadScheduler1.DataEndField = "End";
           RadScheduler1.DataSubjectField = "Subject";
           RadScheduler1.DataDescriptionField = "Description";
           RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
           RadScheduler1.DataRecurrenceField = "RecurrenceRule";
           RadScheduler1.DataBind();
       }
       catch (Exception ex)
       {
           ReflectionTypeLoadException exception = ex as ReflectionTypeLoadException;
           if (exception == null)
           {
               using (TextWriter tw = new StreamWriter(Server.MapPath("~/Scheduler/EDSLog.txt")))
               {
                   tw.WriteLine("Not a ReflectionTypeLoadException ex.");
               }
           }
           else
           {
               foreach (Exception loaderException in exception.LoaderExceptions)
               {
                   using (TextWriter tw = new StreamWriter(Server.MapPath("~/Scheduler/EDSLog.txt")))
                   {
                       tw.WriteLine(loaderException.Message);
                       tw.WriteLine(loaderException.StackTrace);
                   }
               }
           }
       }
Timothy Kruszewski
Top achievements
Rank 1
 answered on 06 Oct 2010
1 answer
100 views
I'm baffled and confused. I have several radgrids on my site where I use a linqdatasource declared in aspx and modify the result of it through different grid events. Everything works well there. But now I have to bind the grid from the code-behind, but when a user clicks a button... So I understand that just using radgrid.bind will not work well for sorting/filtering/editing, when I try that the grid loses all the values and I have a blank grid until another postback is caused. 

So I read that I must use the onneeddatasource event, but i need the grid to be rebound on button click event, how do i make it work? I suppose i could add some flags when button is clicked and when needdatasource occurs then bind depending on the flag?

Please help.
Pavlina
Telerik team
 answered on 06 Oct 2010
1 answer
318 views
Hi,

we are using the telerik grid's exporttoexcel() method to export the grid to excel. When it exports to excel, if a text is too long for the column it wraps the text. Is there a way to set the wrap to false? I tried setting the itemstyle.wrap = false but that didn't work.

Thanks,
Sridhar.
Daniel
Telerik team
 answered on 06 Oct 2010
1 answer
118 views

I want some sample coding for scenario...

My Requirement is,

  •                     If click on the Name column(Link buttons), then it should fire the (Header_Click) event handler.
  • If I click on the other column(link buttons), then it should fire the (Detail_Click)event handler,

Name

2007

2008

2009

2010

Alexis

100

200

300

400

Bharath

150

200

250

300

Deepak

200

250

300

350

Sangeetha

250

300

350

400





Plz Help me on this regard…. We need this solution on or before coming Sunday(10/03/2010)…

Thanks

Alexis

Iana Tsolova
Telerik team
 answered on 06 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?